fix(ui): settle single search header before overlap checks#944
Merged
Conversation
Production UI failed when gotoHome waited on header#search during a transient dual-mount from the landing-preference router.replace. Pin mode=answer and require exactly one banner before measuring overlaps. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
Contributor
📝 WalkthroughWalkthroughThe Playwright ChangesUI navigation test
Estimated code review effort: 1 (Trivial) | ~3 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Keep main's single-header settle wait and retain the mode=answer pin so landing-preference router.replace cannot reintroduce a dual header#search. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
7 tasks
cursor Bot
pushed a commit
that referenced
this pull request
Jul 19, 2026
Adopt mode=answer pin + single header#search wait from #944 so Production UI overlap checks avoid landing-preference dual-mount flakes. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
cursor Bot
pushed a commit
that referenced
this pull request
Jul 19, 2026
Note the plan-scoped header gutter fix and the compare-dock pointer poll after integrating latest main differentials work. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
1 task
cursor Bot
pushed a commit
that referenced
this pull request
Jul 20, 2026
Add ledger rows for the documents search header redesign and the ui-overlap dual-header flake fix after squash merge and remote prune. Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
11 tasks
cursor Bot
pushed a commit
that referenced
this pull request
Jul 20, 2026
Note the plan-scoped header gutter fix and the compare-dock pointer poll after integrating latest main differentials work. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Hardens
tests/ui-overlap.spec.tsgotoHomeso Production UI cannot flake on a transient dualheader#searchduring the home landing-preferencerouter.replace.Main already waits for a single banner (from #934). This PR adds the missing root-cause pin: navigate to
/?mode=answersoGlobalSearchShellskips the preference redirect that reintroduces two banners.Root cause (from CI triage on #936)
locator('header#search')strict-mode violation (2 elements) while the shell applied a stored landing preference.Fix
toHaveCount(1)settle./?mode=answerso landing preference cannotrouter.replacemid-setup.Verification
npm run verify:pr-local -- --files tests/ui-overlap.spec.ts— runtime/format/lint/typecheck/unit (2961 passed) + RAG fixturesnode scripts/run-playwright.mjs tests/ui-overlap.spec.ts --project=chromium→ 12/12verify:uinot required for a test-only helper change; hosted Production UI on this PR covers the suite.Risk and rollout
Summary by CodeRabbit