Skip to content

feat(web): link the docs portal from the app footer and sidebar - #969

Merged
artempartos merged 1 commit into
developfrom
feature/379-docs-link-footer-sidebar
Dec 2, 2026
Merged

artempartos merged 1 commit into
developfrom
feature/379-docs-link-footer-sidebar

Conversation

@aixle-com

@aixle-com aixle-com Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

What and why

Users did not know the docs portal exists: in the logged-in app /docs was linked only from the step editor and three integration modals (demo feedback, Nov 2026). This adds two entry points, as the card's Tech Design specifies:

  • App footer (layouts/AuthLayout.tsx): a "Docs" anchor next to <LegalLinks />, as a sibling in a Group, so it shows even where settings.legalPages is off. LegalLinks is unchanged, so the login page is unaffected.
  • All Projects sidebar, Library group (shared/ui/AppSidebar.tsx): a "Docs" item with IconBook after Workflow Catalog. NavItem gets an external flag; external items render as a plain <a target="_blank" rel="noopener noreferrer"> (an Inertia <Link> would visit in place), are never active and carry no aria-current, in both the expanded and the collapsed rail variants. The project nav is unchanged.

Both links open in a new tab, like the step editor's docs link.

Docs kept in step: user-guide-outline.md and changelog-product-areas.md (portal page and docs/product/ mirror) no longer say there is no docs item in the app, and now name the public site's label as it is (Docs). CHANGELOG entry under Unreleased → Added (Docs).

Card: https://flow.aixle.com/company/projects/56/board?n=379

Tests

  • layouts/AuthLayout.test.tsx: the footer contains a "Docs" link to /docs with target="_blank" and rel with noopener, with legalPages on and off.
  • shared/ui/AppSidebar.test.tsx: company nav has "Docs" right after "Workflow Catalog" with href="/docs", target="_blank", rel="noopener noreferrer", no aria-current; the collapsed rail keeps it; the project nav has none.

Checks

  • Not run: Vitest (AuthLayout.test.tsx, AppSidebar.test.tsx), make lint_check_all (eslint, tsc, steiger) and test/lib/changelog_test.rb. Docker is not available in the agent container, and AGENTS.md forbids running node/ruby tooling on the host. CI on this PR is the first run.
  • No generated files changed (docsPath() already exists in shared/routes.ts).

🤖 Generated with Claude Code

@aixle-com

aixle-com Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

Code Review — round 1 — PASS

Reviewed git diff origin/develop...HEAD on feature/379-docs-link-footer-sidebar (1 commit, 9 files) against the Tech Design, AGENTS.md and docs/testing.md.

Critical issues

None.

The change follows the Tech Design:

  • Footer (app/frontend/layouts/AuthLayout.tsx:112-123): a "Docs" Anchor to docsPath() with target="_blank" rel="noopener noreferrer" sits next to <LegalLinks /> in a Group. It is not inside LegalLinks, so it shows when legalPages is off and does not appear on the login page.
  • Sidebar (app/frontend/shared/ui/AppSidebar.tsx): NavItem.external is added. "Docs" with IconBook is the last item of the company Library group. SidebarNav renders external items as a plain <a> with new-tab attributes in both the expanded and the collapsed branches. It never marks them active or sets aria-current, and it keeps onClick={onNavigate} so the mobile drawer still closes. The project nav is unchanged.
  • Tests are frontend component tests (RTL role queries), the layer docs/testing.md prescribes. They cover the footer link with legalPages on and off, the sidebar item's href, target, rel, missing aria-current and position after "Workflow Catalog", the collapsed rail, and the absence of Docs in project navigation.
  • Rules: the changelog entry is under ### Added with the existing Docs area. The docs mirror pairs (user-guide-outline.md, changelog-product-areas.md) are updated in both docs/product/ and app/frontend/pages/Docs/data/pages/ with identical content. shared/routes.ts, a generated file, is not touched (docsPath already exists). The commit message is a Conventional Commit, and the one new comment explains a constraint that a reader would not see from the code.

Non-critical suggestions

  1. Not-an-Inertia-link check (optional in the Tech Design). AppSidebar.test.tsx asserts the anchor attributes but does not click "Docs" and check that router.visit is not called. That test would catch a regression back to an Inertia <Link> more directly.
  2. Library group scope. The sidebar test checks that Docs comes right after "Workflow Catalog" in the list of all links. It does not check that Docs is inside the Library group. The adjacency is a good proxy, so this is optional.
  3. Unverified locally. The implementation comment says Vitest, tsc, eslint, steiger and the changelog test did not run because Docker was unavailable. Two places to watch on CI: the 'a' | Link union element type (LinkEl) in tsc, and the PR, which is still a draft.

@dvislov
dvislov marked this pull request as ready for review December 2, 2026 09:26
@dvislov
dvislov requested a review from artempartos December 2, 2026 09:26
Users did not know /docs existed: in the logged-in app it was linked
only from the step editor and three integration modals.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Aixle Flow <[email protected]>
Signed-off-by: Artem Petrov <[email protected]>
@artempartos
artempartos force-pushed the feature/379-docs-link-footer-sidebar branch from 813d0e2 to bee45ed Compare December 2, 2026 14:16
@artempartos
artempartos merged commit a2cc9b7 into develop Dec 2, 2026
18 checks passed
artempartos added a commit that referenced this pull request Dec 2, 2026
* origin/develop: (23 commits)
  ci(images): publish web, otlp-ingest and runner-relay for linux/arm64 (#983)
  fix(k8s): give a pod's image pull its own start budget (#979)
  build(dev): pull published agent images instead of building them (#980)
  fix(deps): bump coder-cli to v2.34.22 (CVE fixes) (#956)
  chore(agents): raise agent CLI pins for canary #943 (#975)
  docs(runners): record the §12.5 staging validation of the coder runner (row 18) (#978)
  build(dev): run local Temporal on the CLI dev server image (#954)
  fix(deps): websocket-driver 0.9.2 security batch, cross-spawn and tar re-resolve (#976)
  feat(web): link the docs portal from the app footer and sidebar (#379) (#969)
  feat(onboarding): Getting started page and product tour (#51) (#879)
  feat(dashboard): keep the table's sort in the URL (#974)
  fix(kiro): offer the models the account has today, not those of its last login (#973)
  feat(dashboard): keep the period and filters in the URL (#972)
  feat(company-settings): confirm worker count changes before saving (#971)
  feat(runners): the Coder runner in the UI: form, Environments section and docs (runners 17e, #315) (#963)
  docs(trackers): tech design for trackers chosen per session (#959)
  chore: remove the integrations backfill tooling left from #298 (#964)
  feat(runners): a coder runner created from the console (runners 17d, #309) (#960)
  chore(release): 1.23.0 (#961)
  feat(coder): Coder services for a second consumer, in the layers of runner-layers.md (runners 17b, #304) (#919)
  ...

# Conflicts:
#	CHANGELOG.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant