Skip to content

Fix mobile edge-to-edge content when chrome hides#899

Merged
BigSimmo merged 5 commits into
mainfrom
codex/update-app-for-edge-to-edge-layout
Jul 18, 2026
Merged

Fix mobile edge-to-edge content when chrome hides#899
BigSimmo merged 5 commits into
mainfrom
codex/update-app-for-edge-to-edge-layout

Conversation

@BigSimmo

@BigSimmo BigSimmo commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • Release the phone bottom composer reserve only when the bottom dock is actually hidden, so content fills the edge-to-edge viewport after Safari chrome collapses.
  • Keep the full reserve while the differentials compare addon stays pinned, and while menus, scope sheets, or composer focus keep the dock visible.
  • Update the clinical-dashboard merge-artifact guard for the renamed visible-reserve / bottomComposerHidden structure.

Verification

  • npm run verify:pr-local — CI Unit coverage + Static PR checks will re-run after the fix push; local merge-artifact unit proof pending in this babysit pass.
  • UI verification not run: layout reserve change is covered by unit merge-artifact guards and CodeRabbit/Codex review findings about dock visibility; full npm run verify:ui not required to land the CI/unit fix.

Risk and rollout

  • Risk: medium; phone scroll-hide spacing on clinical search shell could under-reserve if bottom-composer hidden reporting drifts from MasterSearchHeader.
  • Rollback: revert the merge commit on main.
  • Provider or production effects: None.

Clinical Governance Preflight

  • Source-backed claims still require linked source verification before clinical use
  • No patient-identifiable document workflow was introduced or expanded without explicit governance approval
  • Supabase target remains Clinical KB Database (sjrfecxgysukkwxsowpy)
  • Service-role keys and private document access remain server-only
  • Demo/synthetic content remains clearly separated from real clinical sources
  • Source metadata, review status, and outdated/unknown-source behavior remain conservative
  • Deployment classification/TGA SaMD impact was checked when clinical decision-support behavior changed

Notes

Summary by CodeRabbit

  • Bug Fixes
    • Improved mobile clinical dashboard layout when the bottom search composer hides during scrolling.
    • Refined bottom spacing behavior to match the composer’s actual visibility and device safe-area constraints, reducing unwanted empty space near the bottom.
  • Tests
    • Strengthened coverage for reserved mobile composer space to better prevent regressions in bottom padding behavior.

@supabase

supabase Bot commented Jul 18, 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 ↗︎.

@coderabbitai

coderabbitai Bot commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 0856bc51-6b69-4a5e-924b-451e7dd1d261

📥 Commits

Reviewing files that changed from the base of the PR and between 1aede4f and 059543f.

📒 Files selected for processing (1)
  • src/components/clinical-dashboard/master-search-header.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/components/clinical-dashboard/master-search-header.tsx

📝 Walkthrough

Walkthrough

The mobile search header now reports when its bottom composer is hidden. The global search shell uses that state to select between the visible composer reserve and a reduced safe-area-based reserve, with merge-artifact tests guarding the updated declarations.

Changes

Mobile composer reserve

Layer / File(s) Summary
Hidden-state propagation
src/components/clinical-dashboard/master-search-header.tsx, src/components/clinical-dashboard/global-search-shell.tsx
MasterSearchHeader exposes and invokes an optional hidden-state callback, and the global search shell stores the reported phone composer state.
Reserve calculation and regression guards
src/components/clinical-dashboard/global-search-shell.tsx, tests/clinical-dashboard-merge-artifacts.test.ts
The shell separates visibleMobileComposerReserve from the final reserve and uses a smaller safe-area-based value when the composer is hidden; source assertions enforce the updated declarations.

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

Possibly related PRs

  • BigSimmo/Database#900: Adjusts the same mobile composer reserve calculations in global-search-shell.tsx.
  • BigSimmo/Database#704: Modifies the plumbing between the search header’s hidden state and the global search shell.
  • BigSimmo/Database#684: Changes related composer hide-on-scroll handling and mobile content padding.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring 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 name Status Explanation
Title check ✅ Passed The title is concise and accurately reflects the main mobile layout fix in the PR.
Description check ✅ Passed The description matches the required template and includes summary, verification, risk, governance, and notes sections.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/update-app-for-edge-to-edge-layout

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

@BigSimmo
BigSimmo marked this pull request as ready for review July 18, 2026 18:49
@BigSimmo
BigSimmo enabled auto-merge (squash) July 18, 2026 18:49

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

Copy link
Copy Markdown

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

ℹ️ 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 thread src/components/clinical-dashboard/global-search-shell.tsx Outdated
@BigSimmo

Copy link
Copy Markdown
Owner Author

@codex resolve actionable Codex review findings for this pull request and current head using the repository instructions. This is the pull request's single automatic repair pass: do not perform a fresh review, create new standalone findings, or request another review. Work only the existing unresolved Codex threads on the current head. Always fix P0 and P1 findings. For P2 and lower findings, fix only clear, scoped, low-risk issues; otherwise disposition them with a concise reason. After fixing or dispositioning a thread, reply in that thread with as the first line, followed by a concise summary; that marker authorizes the workflow to close that exact thread. If human input or new authorization is required, do not use the marker and leave the thread open with the blocker. Finish only after every actionable thread is fixed or dispositioned and closed, or explicitly left open for a human decision. Do not update the branch from main, address unrelated reviews, broaden scope, or create more than one scoped fix commit. Do not use external APIs, paid services, credentials, dependency changes, or broad refactors unless explicitly authorized. Add targeted tests where behavior changes and run the narrowest relevant validation.

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

Actionable comments posted: 1

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

Inline comments:
In `@src/components/clinical-dashboard/global-search-shell.tsx`:
- Around line 274-282: Update the mobileComposerReserve logic in the global
search shell to reduce the reserve only when the composer is actually hidden,
not solely when phoneScrollHide.hidden is true. Reuse the final
bottomComposerHidden state or its shared gating predicate from
master-search-header.tsx so active menus, scope sheets, and composer focus
retain visible-composer spacing.
🪄 Autofix (Beta)

✅ Autofix completed


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: deac897f-1119-44c6-873f-0c2300ba5d83

📥 Commits

Reviewing files that changed from the base of the PR and between ef042ca and eeec2d9.

📒 Files selected for processing (1)
  • src/components/clinical-dashboard/global-search-shell.tsx

Comment thread src/components/clinical-dashboard/global-search-shell.tsx Outdated

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

Copy link
Copy Markdown

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

ℹ️ 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 thread src/components/clinical-dashboard/global-search-shell.tsx Outdated
Comment thread src/components/clinical-dashboard/global-search-shell.tsx
@github-actions

Copy link
Copy Markdown

CI triage

CI failed on this PR. Automated classification of the 2 failed job(s):

  • Unit coverageneeds investigation: inspect the failing step and uploaded diagnostics; rerun only after classifying the cause.
  • PR requiredneeds investigation: inspect the failing step and uploaded diagnostics; rerun only after classifying the cause.

Compared with main CI run #3471 (success).

Classification is evidence routing, not permission to ignore a failure. Exact quarantined Playwright identities remain governed by the flake ledger.

@coderabbitai

coderabbitai Bot commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Note

Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it.

Fixes Applied Successfully

Fixed 2 file(s) based on 1 unresolved review comment.

Files modified:

  • src/components/clinical-dashboard/global-search-shell.tsx
  • src/components/clinical-dashboard/master-search-header.tsx

Commit: 294f02972d88009a668e0d6d6c78dba82f65393c

The changes have been pushed to the codex/update-app-for-edge-to-edge-layout branch.

Time taken: 6m 12s

coderabbitai Bot and others added 4 commits July 18, 2026 19:11
Fixed 2 file(s) based on 1 unresolved review comment.

Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
Only shrink --mobile-composer-reserve when MasterSearchHeader reports the bottom dock is hidden, so pinned compare addons and open menus keep content clearance.

Co-authored-by: Cursor <cursoragent@cursor.com>
Keep a single bottomComposerHidden signal and the updated unit guard after concurrent auto-fix.

Co-authored-by: Cursor <cursoragent@cursor.com>
@BigSimmo
BigSimmo merged commit 8242fa6 into main Jul 18, 2026
16 checks passed
@BigSimmo
BigSimmo deleted the codex/update-app-for-edge-to-edge-layout branch July 18, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant