Skip to content

fix(ui): keep burger menu in universal phone header - #1708

Merged
BigSimmo merged 2 commits into
mainfrom
cursor/universal-header-burger-menu-545b
Aug 7, 2026
Merged

fix(ui): keep burger menu in universal phone header#1708
BigSimmo merged 2 commits into
mainfrom
cursor/universal-header-burger-menu-545b

Conversation

@BigSimmo

@BigSimmoBigSimmo commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Restore the usual burger menu (Open Clinical Guide menu) as the universal phone header’s top-left control on nested information pages and differentials submitted-search views.
  • Remove the temporary back-arrow override (mobileLeadingAction="back") plus unused infoPageBackHref / mobileBackHref helpers.
  • Leave page-owned back controls unchanged (differentials detail header, DocumentViewer, information-page breadcrumbs).
  • Sync with origin/main so a fresh CI head replaces the stale cancelled PR required from the draft→ready retrigger.

Verification

  • npm run verify:pr-local
  • Hosted PR required green on head 6bff4b2f (run 31208494525)
  • UI verification not run locally: leading-icon swap in existing chrome only; hosted Production UI (1)/(2)/(3) + critical passed on the synced head.
  • npm run verify:release before release or handoff confidence claims

Risk and rollout

  • Risk: Low. Universal leading control always opens the Clinical Guide menu; users still navigate up via page-owned back chrome.
  • Rollback: Revert this commit.
  • Provider or production effects: None

Notes

  • Aligns with docs/search-chrome-behaviour.md: universal top bar is mode, new chat, menu; back belongs in page-owned chrome.
  • Remaining red check is advisory only: Lighthouse budget (advisory) fails closed on Chrome 151 vs baseline Chrome 150 UA drift (evidence incomplete — refresh baselines with --update in a dedicated change). Not caused by this header icon swap.
Open in WebOpen in Cursor

Summary by CodeRabbit

  • Changes
    • Simplified mobile navigation in the clinical dashboard.
    • Mobile headers now consistently display the sidebar menu button instead of a contextual back button.
    • Removed mobile back-navigation behavior for search and information pages.

Stop swapping the top-left control to a back arrow on information
pages and differentials search results. Page-owned back controls remain
the navigation path; the universal bar stays mode, new chat, menu.
@coderabbitai

coderabbitaiBot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The change removes mobile back-navigation helpers and props from the clinical dashboard search components. The mobile header always opens the Clinical Guide menu. Related back-navigation tests are deleted.

Changes

Mobile search navigation removal

Layer / File(s)Summary
Remove back-navigation contracts and wiring
src/components/clinical-dashboard/global-search-shell.tsx, src/components/clinical-dashboard/master-search-header.tsx
The shell no longer exports mobile back-navigation helpers. MasterSearchHeader no longer accepts or derives mobile back-navigation props.
Use the menu as the mobile leading control
src/components/clinical-dashboard/master-search-header.tsx
The mobile leading control always opens the Clinical Guide menu and renders the Menu icon.
Remove obsolete back-navigation tests
tests/global-search-shell-back-href.test.ts
The back-navigation test file is deleted.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested reviewers:claude, cursoragent, copilot

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check nameStatusExplanationResolution
Docstring Coverage⚠️ WarningDocstring coverage is 0.00% which is insufficient. The required threshold is 80.00%.Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check nameStatusExplanation
Title check✅ PassedThe title clearly identifies the UI change to keep the burger menu in the universal phone header.
Description check✅ PassedThe description covers the change, verification, UI verification rationale, risk, rollback, effects, and notes.
Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cursor/universal-header-burger-menu-545b

Comment @coderabbitai help to get the list of available commands.

@supabase

supabaseBot commented Aug 7, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project sjrfecxgysukkwxsowpy because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@BigSimmo
BigSimmo marked this pull request as ready for review August 7, 2026 18:18
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@BigSimmo
BigSimmo enabled auto-merge (squash) August 7, 2026 18:19
Clear the stale cancelled PR-required check left by the draft-to-ready
CI retrigger, and sync the branch tip with main.

@coderabbitaicoderabbitaiBot 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.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/components/clinical-dashboard/master-search-header.tsx (1)

199-199: 🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win

Gate the mobile menu trigger when no handler exists. Both production callers pass onOpenMobileSidebar, and no removed props remain. Test callers omit the callback, so the button renders with onClick={undefined}. Make the callback required or render the button only when it exists.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@src/components/clinical-dashboard/master-search-header.tsx` at line 199,
Update the master search header component’s mobile menu trigger to require and
validate onOpenMobileSidebar before rendering or wiring the button; preserve the
existing behavior for production callers while preventing a trigger with an
undefined onClick in test callers.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In `@src/components/clinical-dashboard/master-search-header.tsx`:
- Line 199: Update the master search header component’s mobile menu trigger to
require and validate onOpenMobileSidebar before rendering or wiring the button;
preserve the existing behavior for production callers while preventing a trigger
with an undefined onClick in test callers.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: ac5f047b-8d54-4589-8ca1-6ae444ee68ac

📥 Commits

Reviewing files that changed from the base of the PR and between 0847adc and 6bff4b2.

📒 Files selected for processing (3)
  • src/components/clinical-dashboard/global-search-shell.tsx
  • src/components/clinical-dashboard/master-search-header.tsx
  • tests/global-search-shell-back-href.test.ts
💤 Files with no reviewable changes (2)
  • tests/global-search-shell-back-href.test.ts
  • src/components/clinical-dashboard/global-search-shell.tsx

@BigSimmo
BigSimmo merged commit bc05eea into mainAug 7, 2026
31 of 32 checks passed
@BigSimmo
BigSimmo deleted the cursor/universal-header-burger-menu-545b branch August 7, 2026 19:00
Sign up for freeto 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.

2 participants

@BigSimmo@cursoragent