Skip to content

fix(ui): align navigation tests with rail design - #179574

Closed
steipete wants to merge 1 commit into
mainfrom
fix/ui-navigation-rail-e2e-expectations
Closed

steipete wants to merge 1 commit into
mainfrom
fix/ui-navigation-rail-e2e-expectations

Conversation

@steipete

@steipete steipete commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Whole-scope Wave Ten census: unchanged by this test-only repair. Production source was verified unchanged from the census checkpoint d9387f6a through this branch's base ecb53855. C/E/U/N = candidate / allowed exception / unknown / native. The migration remains incomplete.

Family Files Production LOC 1 handlers 2 lifecycle 3 reads C/E/U/N 4 commands C/E/U/N 5 lazy 6 collections 7 JSX 8 context 9 Reveal 10 owner APIs
Agents editor / non-memory 22 5,307 0 0 11C/0E/0U/1N 6C/0E/0U/1N 0 0 0 0 0 0
Agents memory 12 2,702 0 0 4C/0E/0U/1N 2C/0E/0U/0N 0 0 0 0 0 0
Config Appearance / shared 13 4,005 0 0 4C/1E/0U/3N 3C/1E/0U/0N 0 0 0 0 0 0
Config other 30 5,192 0 0 4C/0E/0U/0N 4C/1E/0U/0N 0 0 0 0 0 0
Config health 3 1,273 0 0 0C/0E/0U/1N 1C/0E/0U/0N 0 0 0 0 0 0
Config memory 5 1,279 0 0 0C/1E/0U/1N 2C/0E/0U/0N 0 0 0 0 0 0
Config Talk 4 1,471 0 0 1C/0E/0U/2N 2C/0E/0U/0N 0 0 0 0 0 0
Sessions 22 3,982 0 0 2C/0E/0U/2N 8C/0E/0U/0N 0 0 0 0 0 0
Total 111 25,211 0 0 26C/2E/0U/11N 28C/2E/0U/1N 0 0 0 0 0 0

What Problem This Solves

Two Control UI E2E assertions still require the navigation design that main replaced in #179214 and #179218, making current navigation controls fail CI.

User Impact

No product behavior changes. The tests continue to protect visible keyboard focus, menu placement, and agent scope/navigation using the current rail design.

Why This Change Was Made

Desktop agent menus now open beside the rail, aligned with the card's top. The scope case checks that placement and retains the original below-card/overlap bounds for the mobile drawer before selecting Writer and continuing the existing scope/settings flow.

The rail's Inbox now uses a visible 2px outline instead of a box shadow. The native titlebar case checks outline width, style, and visible color, then opens Inbox with Enter as before. Its existing nontransparent hover check waits for the background transition introduced by #179214. Compact identity clipping bounds are unchanged.

Evidence

Proof Result
Exact named cases on base ecb53855 Both fail on the stale assertions (2 failed, 16 skipped; 216.7s)
Same two cases after repair Both pass (2 passed, 16 skipped); desktop/mobile placement, keyboard focus, agent scope/navigation retained
UI E2E test leaf typecheck (tsrs) Passed
Scoped lint and formatting Passed (core lint config; formatting)
Independent P0–P2 review Scoped clean; no accepted/actionable findings
Full PR CI run 39620133592 Both repaired navigation cases pass; sole failure is the compact identity menu case below
Production/lazy/startup changes None; production LOC 25,211 → 25,211, production imports/styles unchanged

Only the two named cases run locally with one worker through the standard UI E2E config. A head attempt reached no tests: the wrapper timed out while waiting behind plugin SDK declaration preparation. The same frozen head was restarted serially after core lint completed. Node is selected for these Playwright E2E fixtures. The E2E test leaf passed tsrs. Scoped lint uses config/tsconfig/oxlint.core.json, which includes UI source and avoids unrelated plugin-boundary declaration preparation (that preparation timed out in the initial lint attempt). The harness owns its production fixture build; no independent full build, broad E2E suite, parity run, or performance rerun is added.

Touched test LOC: 1,084 → 1,120 (+36). No dependencies, generated outputs, translations, or production files change. No screenshots are required for this test-only correction.

The only full-CI failure is compact identity menu > keeps common actions visible with nine native gateways and opens an unclipped keyboard switcher. The latest completed scheduled main run 39635924183 at ac842435 fails the identical test name and identical expectUnclipped assertion (expected false to be true, line 45 / call 94). The annotation messages match byte for byte. This meets the matching-names requirement for the native inherited-failure route; the compact-menu test and production code are untouched by this PR. The separate Menu repair remains responsible for fixing that product failure.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 21, 2026
@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T15:01:48.539445Z 78a3a50 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 21, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 78a3a50f5b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +324 to +328
railGap: Math.round(menu.x - (rail.x + rail.width)),
alignedWithCard: Math.abs(menu.y - card.y) <= 1,
inViewport: menu.x >= 0 && menu.x + menu.width <= page.viewportSize()!.width,
};
})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Remove the duplicate desktop menu-placement check

This adds an expensive full-Control-UI E2E assertion for the same desktop rail contract already covered by ui/src/components/app-sidebar-rail-menus.browser.test.ts:61-69, including the 8px rail gap and top alignment. Since this case immediately switches to mobile to exercise the distinct responsive behavior, repeating the desktop check adds no transport or lifecycle coverage and needlessly increases the runtime and failure surface of an already slow E2E suite; leave the desktop contract at its focused browser-owner test and retain only the mobile assertion here.

AGENTS.md reference: AGENTS.md:L78-L80

Useful? React with 👍 / 👎.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 21, 2026
@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR updates Control UI navigation tests for desktop rail menus, mobile drawer placement, and Inbox keyboard focus.

Example: Keyboard focus reaches Inbox in the native web titlebar layout.

  • Before: The test rejects box-shadow: none despite the visible focus outline.
  • After: The test requires a visible solid 2px outline and retains Enter activation.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful test repair supported by source contracts and CI evidence, with redundant desktop coverage and an inherited red gate.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored test repair changes no production owner; the body records base failures and repaired-case passes, while inspected screenshots establish only the preceding rail redesign.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Navigation CI rejects the intended rail layout and visible Inbox focus styling.
Reason: The maintainer-authored repair follows merged design decisions and preserves the meaningful navigation and keyboard contracts.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it repairs stale navigation expectations without changing production behavior, and no correctness defect was found; the remaining CI failure also occurs on main.

Priority: P3
Reviewed head: 78a3a50f5b62122eb9ee6b38aeb98210f0328fc9

Before merge

None.

Findings

None.

Tests

  • Low-value test ui/src/e2e/agent-page-scope.e2e.test.ts: Remove the added desktop rail-gap and top-alignment block: app-sidebar-rail-menus.browser.test.ts already protects that contract; retain the distinct mobile placement and scope flow.
Agent review details

How this fits together

The browser E2E suites load the Control UI with a mocked Gateway, perform navigation and keyboard actions, and check layout, focus, and agent-scoped requests.

flowchart LR
  A[Browser E2E suite] --> B[Control UI shell]
  B --> C[Navigation rail]
  B --> D[Mobile drawer]
  C --> E[Menus and Inbox]
  D --> E
  E --> F[Mock Gateway requests]
Loading

Technical review

Best possible solution:

Retain the mobile scope and Inbox focus repairs while leaving desktop placement coverage in its existing browser-owner test.

Do we have a high-confidence way to reproduce the issue?

The original assertions contradict current rail CSS and placement contracts, and scheduled-main annotations show both stale expectations failing; no target code was executed during this review.

Is this the best way to solve the issue?

Updating the tests is appropriate because the production changes were intentional; the added desktop geometry block duplicates focused browser coverage.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against f2c7e8dd3370.

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 6023621 adds ui/src/e2e/agent-page-scope.e2e.test.ts:311 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 602362169f51; files: ui/src/e2e/agent-page-scope.e2e.test.ts)
  • Vyctor H. Brzezowski: Raw commit c42e11e adds ui/src/components/app-sidebar-rail-menus.browser.test.ts:63 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c42e11eec155; files: ui/src/components/app-sidebar-rail-menus.browser.test.ts)

PR surface

Tests +36. Total +36 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 42 6 +36
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 42 6 +36

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is test maintenance for an intentional UI redesign, with no production behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Remove the duplicated desktop geometry block and retain the mobile scope flow.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 21, 2026, 11:49 AM ET / 15:49 UTC.

@steipete

Copy link
Copy Markdown
Contributor Author

Superseded by #179711, merged as 23ce56cd3bbc1273d44defd163b9006e1cd3b423.

I verified the current source includes both repairs proposed here: the agent menu is measured against the rail with an 8px gap and zero top offset, and native navigation checks the visible 2px solid focus outline instead of the removed shadow. It also preserves the newer nested Writer settings selector. Replaying this older patch would conflict with those changes.

Both targeted cases passed this PR's local proof and full CI run 39620133592; its only failing case was the separately inherited compact identity clipping test. Closing this duplicate rather than adding a mobile-only coverage follow-up.

@steipete steipete closed this Oct 21, 2026
@RomneyDa
RomneyDa deleted the fix/ui-navigation-rail-e2e-expectations branch October 22, 2026 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui ci:full Keep ordinary native-locale CI selection on the next PR run. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant