Skip to content

fix(platform): open every rail section on its overview - #4514

Merged
yannickmonney merged 7 commits into
mainfrom
fix/navigation-entry-points
Oct 8, 2026
Merged

yannickmonney merged 7 commits into
mainfrom
fix/navigation-entry-points

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

What changes

Every section tile opens its overview. A rail tile (and its phone tab) always lands on the section's first page — never the record or tab you last had open, also when you click the section you are already in:

Tile Lands on
Home a new chat (/chat?new=true; on a phone, the Home list)
Knowledge Documents
Automations the automation list
Settings Account — the Settings panel's first row, for every role

This removes the per-section memory from #3959 (detail-memory.ts, project-memory.ts, knowledge-tab-memory.ts, the navRestore history flag and their redirects) and the role-based Settings landing (getDefaultSettingsRoute). The rail's logo and a desktop /home also open a new chat; the organization's own address still resumes the last chat.

An automation opened from a project shows its project. From a project's Automations tab the trail reads <Project> / Automations / <automation> (plus / Run on a run page); the project links to the project, Automations to its Automations tab (also the phone's back arrow). The rail marks Automations, not Home. Long names truncate with a tooltip; when the project can't be read the trail falls back to the organization list. Switching organization from such a page lands on the other organization's Automations list. The project automation URLs are unchanged.

Screen readers: each rail tile carries aria-current="page" by the same rule as the highlight pill (Knowledge's other tabs, Home pages and project automation pages announced no current section before).

Docs (EN/DE/FR), the design doc (design/docs/app.md) and the manual boxes (NAV-F1/F16/F18/F41, NAV-A9, NAV-B19, SET-F1, RESP-F1, AUTO-F53/F56, AUTO-F57, AUTO-B12) are updated.

Why

Owner call (2026-10-08): "All side navigation items should show the first / overview page of its kind — automations → list, knowledge → first tab, home → new chat, settings → first menu item" and "when clicking an automation in a project's automations tab it does not show it's from that project, and the side navigation stays on Home". This reverses #3959's section memory and the earlier "project automations stay under Home" layout.

Verification

  • Unit: 151 files / 1426 tests across the touched areas; after the final changes 29 files / 169 and 135 targeted tests pass.
  • Chromium (vitest browser): sidebar-nav.browser.test.tsx (the owner's click path, exactly one current tile) and automation-breadcrumbs.browser.test.tsx (trail, exact-match ancestors, tooltip, long names) — both shown to fail against the unfixed code.
  • Typecheck, oxlint, knip, lint:manual, lint:links, check-guide clean.
  • Driven in a real browser on a fresh stack: a project's Automations tab → the automation shows Getting started / Automations / Triage GitHub issues with the Automations tile lit; automation → Knowledge → Automations lands on the list; Settings lands on Account; Home opens /chat?new=true; Websites → Knowledge lands on Documents.
  • Not run locally: the Playwright e2e navigation.spec.ts change (CI).

Behaviour users will notice: desktop Home no longer resumes the last chat; owners/admins/developers now land on Account in Settings.

A rail or tab-bar tile now always lands on its section's first page,
from another section and from inside it: Home a fresh chat, Knowledge
Documents, Automations the list, Settings its landing. The remembered
automation, project and Knowledge tab are gone with their modules,
history state and self-heal redirects; the rail's logo and a desktop
visit to /home open a fresh chat too.

Each rail tile sets aria-current from the rule that places the pill,
so a screen reader hears the current section on every Knowledge tab
and Home page, not only where the URL starts with the tile's link.
An automation opened from a project's Automations tab now starts its
trail at the project: <project> / Automations / <name>. The project's
name returns to the project and Automations to the project's own
Automations tab, which the phone's back arrow follows too; a project
that cannot be read leaves a Projects crumb, and a long name truncates.

The page belongs to the Automations section, so the rail and the tab
bar light Automations there instead of Home (isProjectAutomationPage,
which also replaces showsHomePanel), and switching organization from
it lands on the other organization's Automations list. The project
automation URLs are unchanged.
An automation opened under a project whose read answers without it
(deleted, or out of the reader's reach) now gets the organization's
trail: Automations and the phone's back arrow lead to the org list
instead of a project page that only says it was not found. A failed
read keeps the project trail, whose tab offers a retry.

Long project and automation names in the trail are capped, so the
Run title on a run page keeps its room, and a cut name shows whole in
a tooltip on hover or keyboard focus.
The workflow editor page said the rail marks Automations "either way"
right after naming two crumbs that both lead to Home pages; it now says
the rail marks Automations whether the automation was opened from a
project or from the list. The chat basics page told phone users to
choose Home again for a new chat, which opens the Home list there; it
now names New chat first and Home only on a computer. EN, DE and FR.
The comment on the rail's Settings entry said the index route lands
admins on organization settings and everyone else on Account, leaving
out Developers, who land on Connectors.
The rail's Settings tile now lands on Account, the Settings panel's first row, for owners, admins, developers and members alike, instead of a role-dependent page. The role-based landing helper and its test are removed.
The breadcrumb read the project through a query hook on every automation page, so an automation opened from the organization's list needed a query client for a read it skips. The project read now mounts only on a page opened inside a project.
@yannickmonney
yannickmonney merged commit 337ac40 into main Oct 8, 2026
@yannickmonney
yannickmonney deleted the fix/navigation-entry-points branch October 8, 2026 04:58
yannickmonney added a commit that referenced this pull request Oct 8, 2026
Main gained the navigation fix (#4514); both changes append boxes to the automations manual suite, kept in ID order (AUTO-F57 then AUTO-F58+).
@yannickmonney

Copy link
Copy Markdown
Contributor Author

FINDINGS

  1. BLOCKING — criterion 4 (main CI is not green at the pinned merge commit). At read time 2026-10-08 05:12:35Z, PR head c83f220f806f33dae6ad4961767384c275d42154 had all seven required aggregators passing: CI ready (Build), (CLI), (Checks), (Commitlint), (E2E), (SAST), and (Security), all completed/success. However, the required main CI for 337ac408e59b45ab6d69cfa7465c0a2e3ac6d1cc was run 37730057990, concluded cancelled at 05:04:09Z. Its Unit and UI aggregators concluded failure (annotations state platform/workspace lanes and all UI shards ended cancelled); other required work was cancelled or still queued/in progress in the contemporaneous check-runs read. This is an acceptance blocker until a settled main run at the exact pinned SHA has every required CI aggregator passing. Evidence: check-runs API for both SHAs and annotations for check-runs 113158064882 and 113157979639.

Criterion review

Criterion Result
1. Intent/scope PASS. Body, changed files (60), and implementation align: rail overview destinations, removal of section-memory redirects, project automation breadcrumbs, docs/manual updates. I found no unrelated product changes.
2. Behavior PASS by source and browser-test inspection. useNavigationItems makes Home use {new:true}, Knowledge use Documents, Automations use its list, and Settings use its index; SidebarNavItem applies the same isItemActive rule to aria-current; project automation paths map to Automations; breadcrumb links use exact matching and project-read fallback; cross-org reset maps project automation details to the target org Automations list. Permission gating remains on the Automations rail/tab and project automation query. Deep-link, back-arrow, and permission/error paths are covered in the changed browser/unit/manual tests.
3. Tests PASS. Added/updated unit and Chromium browser tests for rail destinations/current semantics and project automation breadcrumbs (including deep links, exact ancestors, mobile back, truncation/tooltips), plus the navigation E2E spec and manual cases. The PR explicitly records the Playwright navigation.spec.ts change as CI-only/not run locally; that limit is retained here.
4. CI BLOCKED as described above: PR-head seven aggregators pass; pinned main CI is cancelled with failed aggregators.
5A. Part A PASS by inspected source/tests/docs/manual coverage: navigation UX, exact breadcrumb/back behavior, focus/landmarks (aria-current, labelled nav), responsive phone behavior, and EN/DE/FR docs/manual cases.
5B. Part B PASS by inspected source/tests and PR-head checks: routing, permission guards, removal of memory persistence, org-switch handling, and performance-sensitive memoization/limited project read. No unrelated files were found.

Unrun/limits: no checkout or local execution (API-only as required); Playwright E2E navigation was not run locally and is represented by the PR-head CI evidence. Main-CI failure/cancellation remains unresolved.

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