Fix therapy home grey block and colour mismatch - #957
Conversation
The Therapy Compass workspace wraps every /therapy-compass/* route in `.tc-root`, which paints a grey `--surface-chrome` chrome background over the shell's white `--background`. That chrome is correct for the interior nav-bearing routes, but the home route renders `ModeHomeMain` — a full-height white `--background` canvas identical to every other mode home. On phones `ModeHomeMain` is only content-height, so the grey chrome showed through below the fold as a large mismatched block, unlike the seamless white of the other home pages. Tag the workspace wrapper with `tc-root--home` on the home route and override its background to `--background`, so the therapy home matches the other mode homes. Interior routes keep the grey chrome unchanged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0114JmM94CoBSn19qU3Crv4F
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe Therapy Compass workspace now marks the ChangesTherapy Compass home route
Estimated code review effort: 1 (Trivial) | ~3 minutes Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
This pull request has been ignored for the connected project Preview Branches by Supabase. |
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Uh oh!
There was an error while loading. Please reload this page.
Summary
/therapy-compass/*route in.tc-root, which paints a grey--surface-chromebackground (#f7f8fa) over the shell's white--background(#ffffff).ModeHomeMain— a full-height white--backgroundcanvas identical to every other mode home.ModeHomeMainis only content-height (min-h-0), so below the fold the grey.tc-rootchrome showed through as a large mismatched block, and the whole home read as a different colour from the other home pages.tc-root--homeon the home route and override its background to--background, so the therapy home is a seamless white canvas like the other mode homes. Interior routes are untouched and keep the grey chrome.Files changed:
src/components/therapy-compass/workspace.tsx— addtc-root--hometo the wrapper on the home route only.src/components/therapy-compass/therapy-compass.css— scoped.tc-root.tc-root--home { background: var(--background); }with an explanatory comment.Verification
npm run typecheck— passesnpm run lint— passes.tc-rootnow computesrgb(255,255,255), matchingModeHomeMain; interior routes (/pathways,/recommend) still computergb(247,248,250)(grey chrome preserved). Before/after screenshots confirm the grey bottom block is gone.npm run verify:ui— the environment's pre-installed Chromium (build 1194) does not match the version Playwright 1.61.1 pins, andplaywright installis disallowed here; targeted browser checks were run against the pre-installed executable instead.Risk and rollout
Clinical Governance Preflight
N/A — this change does not touch ingestion, answer generation, search/ranking, source rendering, document access, privacy, production env, or clinical output. It is a home-page background colour fix.
Notes
.tc-root .tc-workspace-006descendant rule (identical to the base.tc-rootrule but never matching, since the element is not nested under another.tc-root) was left as-is to keep this change minimal.🤖 Generated with Claude Code
https://claude.ai/code/session_0114JmM94CoBSn19qU3Crv4F
Generated by Claude Code
Summary by CodeRabbit