Skip to content

refactor(frontend): tokenize the shell-header viewport offset (--shell-header-h)#1038

Merged
BigSimmo merged 2 commits into
mainfrom
claude/frontend-shell-header-token-123366
Jul 21, 2026
Merged

refactor(frontend): tokenize the shell-header viewport offset (--shell-header-h)#1038
BigSimmo merged 2 commits into
mainfrom
claude/frontend-shell-header-token-123366

Conversation

@BigSimmo

Copy link
Copy Markdown
Owner

Summary

Follow-up to #1036. Replaces the duplicated calc(100dvh - 4rem) app-shell/header-height literal with a single --shell-header-h: 4rem token across ~13 production files + therapy-compass.css, so the header height and the page-fill floors below it (calc(100dvh - var(--shell-header-h))) cannot silently drift apart. (RESP-01 / DSD-04)

Zero visual change by construction: the token value equals the literal it replaces, so every computed height is byte-identical. No capture-chrome-parity run is required for this slice.

Also updates 3 source-string-pinning assertions in mobile-interaction-regressions.test.ts to the token form (guard intent preserved, not weakened).

Scope note

Deliberately limited to the value-identical 4rem shell-header offset. The rest of RESP-01 — the non-4rem composer-dock subtrahends (11/12.5/13.5rem) and RESP-02's sticky-header top offsets (69/80/92/96px) — are not value-identical, so tokenizing them changes pixels and needs the running-server byte-parity capture; left as a documented follow-up rather than risk visual drift.

Verification

npm run typecheck ✓ · npm run lint ✓ · full unit+jsdom suite npm run test339 files / 3065 passed / 1 skipped / 0 failed ✓ · check:design-system-contract ✓ · format:check ✓. Chromium verify:ui runs in CI.

Clinical-governance preflight

N/A — pure CSS/layout tokenization. No ingestion, answer generation, search/ranking, source rendering, document access, privacy, or clinical-output changes.

🤖 Generated with Claude Code

Replace the duplicated `calc(100dvh - 4rem)` app-shell-height literal (~13
production files + therapy-compass.css) with a single `--shell-header-h: 4rem`
token, so the header height and the page-fill floors below it cannot silently
drift apart (RESP-01/DSD-04). The token value equals the literal it replaces,
so computed heights are byte-identical — no visual change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@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.

@supabase

supabase Bot commented Jul 21, 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 21, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@BigSimmo, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 19 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 3e92ebed-27eb-489c-8868-c8eb329bd009

📥 Commits

Reviewing files that changed from the base of the PR and between 8ab5885 and 530bd5b.

📒 Files selected for processing (15)
  • src/app/globals.css
  • src/components/clinical-dashboard/favourites-command-library-page.tsx
  • src/components/clinical-dashboard/global-search-shell.tsx
  • src/components/clinical-dashboard/medication-record-page.tsx
  • src/components/differentials/differential-presentation-workflow-page.tsx
  • src/components/differentials/differential-stream-page.tsx
  • src/components/forms/form-detail-page.tsx
  • src/components/formulation/formulation-ui.tsx
  • src/components/mode-home-page-skeleton.tsx
  • src/components/mode-home-template.tsx
  • src/components/services/service-detail-page.tsx
  • src/components/specifiers/specifier-ui.tsx
  • src/components/therapy-compass/therapy-compass.css
  • src/components/ui-primitives.tsx
  • tests/mobile-interaction-regressions.test.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/frontend-shell-header-token-123366

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

@BigSimmo
BigSimmo enabled auto-merge (squash) July 21, 2026 02:41
@BigSimmo
BigSimmo merged commit 819ea7a into main Jul 21, 2026
17 checks passed
@BigSimmo
BigSimmo deleted the claude/frontend-shell-header-token-123366 branch July 21, 2026 02:50
Sign up for free to 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.

1 participant