Skip to content

Standardize mode home sizing and slim the search pill for phones - #329

Merged
BigSimmo merged 1 commit into
mainfrom
claude/home-page-responsive-sizing-b50ha9
Jul 6, 2026
Merged

Standardize mode home sizing and slim the search pill for phones#329
BigSimmo merged 1 commit into
mainfrom
claude/home-page-responsive-sizing-b50ha9

Conversation

@BigSimmo

Copy link
Copy Markdown
Owner

Summary

  • All eight mode homes (Answer, Documents, Services, Forms, Favourites, Differentials, Medication, Tools) now render the shared compact ModeHomeHero at identical sizes: Favourites gains the compact flag, Tools replaces its bespoke hero markup with the shared component, and Differentials drops its extra max-w-6xl px-1 wrapper.
  • Short mode homes centre their hero + search block mid-screen on phones (ChatGPT-style), for both dashboard-hosted and standalone routes; ModeHomeMain's phone min-height now nets out the real phone chrome instead of the incorrect 4rem desktop-header calc. Content-rich hubs (Favourites, Tools) stay top-aligned with the standardized hero.
  • The ask/search pill slims from 3.8rem to 3.25rem tall (3.5rem from sm:) with a flat borderless "+" action button and a lighter shadow, closer to a ChatGPT-style input bar; 44px tap targets and the 16px input font are preserved.
  • The mode-home route-loading skeleton matches the compact hero so loading → loaded no longer jumps.
  • Playwright: the mobile and tablet mode-home loops gain Documents and Medication entries, the phone loop asserts the search sits in a centred band, and a new hero-parity test verifies all eight modes share identical icon size and type scale at 390×820.

Verification

  • npm run verify:cheap
  • npm run verify:ui when UI, routing, styling, browser behavior, reduced-motion, or forced-colors behavior changed
  • npm run verify:release before release or handoff confidence claims
  • npm run format:check
  • npm run eval:retrieval:quality (must stay 23/23) when retrieval, ranking, selection, chunking, or scoring behavior changed — not applicable: no retrieval/ranking/selection/chunking/scoring changes
  • npm run eval:rag -- --limit 15 + npm run eval:quality -- --rag-only — not applicable: no answer-generation changes
  • npm run check:production-readiness — not applicable: UI chrome/layout only
  • npm run check:deployment-readiness — not applicable: no deployment changes

Clinical Governance Preflight

Not applicable — this change touches mode-home layout, hero sizing, and composer styling only; no ingestion, answer generation, search/ranking, source rendering, document access, privacy, production env, or clinical output behavior changed.

Notes

  • Deliberate sm+ change: the Tools heading converges from its bespoke 2.7rem to the shared 2.45rem (2.9rem at lg:) so all heroes match at every breakpoint.
  • Phone screenshots at 390×820 confirm the Answer home centres like the reference and Favourites/Tools/Services heroes render at identical scale.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JrqMMyWff7uicA1v9gUhfx


Generated by Claude Code

All eight mode homes now render the shared compact ModeHomeHero at
identical sizes: Favourites gains the compact flag, Tools swaps its
bespoke hero markup for the shared component, and Differentials drops
its extra max-w-6xl wrapper. Short mode homes centre their hero and
search block mid-screen on phones (both dashboard-hosted and
standalone routes), replacing the top-anchored treatment and the
phone-wrong 4rem header calc. The composer pill slims from 3.8rem to
3.25rem (3.5rem from sm) with a flat action button and lighter shadow,
and the route-loading skeleton now matches the compact hero so pages
no longer jump on load. The mobile Playwright loop gains Documents and
Medication entries plus a hero-parity test across all eight modes.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JrqMMyWff7uicA1v9gUhfx
@supabase

supabaseBot commented Jul 6, 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 July 6, 2026 14:13
@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.

@BigSimmo
BigSimmo merged commit 586a827 into mainJul 6, 2026
5 checks passed
@BigSimmo
BigSimmo deleted the claude/home-page-responsive-sizing-b50ha9 branch July 8, 2026 16:15
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@claude