Skip to content

test(ui): await refresh-card imports before checking navigation layout - #178535

Merged
vyctorbrzezowski merged 1 commit into
mainfrom
brzezowski/fix-navigation-refresh-import-readiness
Oct 20, 2026
Merged

vyctorbrzezowski merged 1 commit into
mainfrom
brzezowski/fix-navigation-refresh-import-readiness

Conversation

@vyctorbrzezowski

Copy link
Copy Markdown
Member

What Problem This Solves

The navigation layout test can check the floating refresh card before its lazy module has loaded.

User Impact

No user-visible change. This only corrects readiness in a browser test.

Why This Change Was Made

Wait for dynamic imports to settle before querying the card. The existing 8px spacing, non-overlap, and control assertions remain intact.

Evidence

  • Focused Chromium test passed: 36ms test, 442ms runner duration. An independent replay through node scripts/run-vitest.mjs ui/src/app/navigation-surface.browser.test.tsx --maxWorkers=1 passed in 1.82s wrapper wall time.
  • UI app typecheck and formatting passed. Focused lint reported zero errors and three existing warnings.
  • Independent review found no actionable defects.
  • The original local replay also passed; this is not a deterministic local red-to-green reproduction. Full PR CI is pending.

@clawsweeper

clawsweeper Bot commented Oct 20, 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.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review October 20, 2026 16:02
@vyctorbrzezowski
vyctorbrzezowski enabled auto-merge (squash) October 20, 2026 16:06
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. 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-repro Preliminary submission classification; full source review pending. labels Oct 20, 2026
@clawsweeper

clawsweeper Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR waits for dynamic imports to settle before checking the floating refresh card in the navigation layout test.

Example: The Chromium test renders collapsed navigation at 1280×800 with refreshRequired=true.

  • Before: The test polls for the refresh card using vi.waitFor.
  • After: The test awaits dynamic imports, then checks card presence, non-overlap, and at least 8px spacing.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and preserves coverage; reported browser validation supports it, while the claimed timing failure remains unreproduced.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored test-only PR changes no shipped behavior; its body reports focused Chromium validation of the preserved layout assertions.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: An asynchronous refresh-card import can make navigation layout validation depend on the polling wait's readiness budget.
Reason: A minimal readiness adjustment preserves useful layout coverage, introduces no production machinery, and has maintainer-authored direction.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it makes a focused test-readiness change while preserving every layout assertion, and I found no actionable defect.

Priority: P3
Reviewed head: 836fea889a3ada59360c0af38bd7a3375e55c3c5

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The reported focused Chromium runs pass, but a failing baseline reproduction is explicitly unavailable.
Agent review details

How this fits together

The browser fixture mounts FloatingUpdateCard, whose lazy import supplies the refresh-card renderer, and then measures its DOM against the shell controls.

flowchart LR
  A[Browser fixture] --> B[FloatingUpdateCard]
  B --> C[Lazy module import]
  C --> D[Refresh card DOM]
  D --> E[Layout assertions]
Loading

Technical review

Best possible solution:

Keep the existing lazy renderer and use the import-settling wait without weakening the layout contract.

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

No high-confidence failing reproduction is established: the PR reports that both the original and changed tests passed locally, although source confirms the lazy import being awaited.

Is this the best way to solve the issue?

The change is appropriately small: it uses the existing test runner's import-settling operation and retains the independent browser geometry assertions.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Tests +1. Total +1 across 1 file. Added test files: 0.

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

Labels

Label changes:

  • add P3: This is a narrowly scoped browser-test readiness improvement with no production behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a narrowly scoped browser-test readiness improvement 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.

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 20, 2026, 12:17 PM ET / 16:17 UTC.

@vyctorbrzezowski
vyctorbrzezowski merged commit 4c7a165 into main Oct 20, 2026
142 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/fix-navigation-refresh-import-readiness branch October 20, 2026 16:48
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

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 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