Clarify shared mode headings — remove subtitle and use explicit mode titles - #1826
Conversation
This pull request has been ignored for the connected project Preview Branches by Supabase. |
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in:6 minutes Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab. How can I continue?After more reviews become available, a review can be triggered using the 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 configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughShared home modes now use concise clinical titles without subtitles. ChangesShared home copy and rendering
Chrome scroll test behavior
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
CI triageCI failed on this PR. Automated classification of the 2 failed job(s):
Compared with main CI run #9747 (failure). Classification is evidence routing, not permission to ignore a failure. Exact quarantined Playwright identities remain governed by the flake ledger. |
There was a problem hiding this comment.
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/lib/ui-copy.ts`:
- Around line 23-24: Change the answer.title value in src/lib/ui-copy.ts at
lines 23-24 from “Clinical Guidance” to “Clinical Answers”; update the expected
title in tests/shared-home-empty-state.dom.test.tsx lines 10-12 and both heading
expectations in tests/ui-tools.spec.ts lines 575 and 1108 to match “Clinical
Answers”.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: b73db5a6-8050-45c4-aed2-44dad3d25e42
📒 Files selected for processing (5)
src/components/clinical-dashboard/answer-status.tsxsrc/components/mode-home-template.tsxsrc/lib/ui-copy.tstests/shared-home-empty-state.dom.test.tsxtests/ui-tools.spec.ts
💤 Files with no reviewable changes (1)
- src/components/clinical-dashboard/answer-status.tsx
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
tests/ui-chrome-scroll.spec.ts (1)
164-164: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick winWait for frame and task completion, not only 16 ms.
page.waitForTimeout(16)is a wall-clock delay. It does not guarantee a frame or a React commit.tests/playwright-scroll.ts, Lines 160-193, waits for tworequestAnimationFramecallbacks and one task to avoid event coalescing and state races. Reuse that synchronization or an equivalent helper before the next step.As per coding guidelines,
tests/ui-*.spec.tsmust use Playwright with the appropriate Chromium UI gate and start the project withnpm run ensure.🤖 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 `@tests/ui-chrome-scroll.spec.ts` at line 164, Replace the fixed page.waitForTimeout(16) in the affected test flow with the synchronization used by tests/playwright-scroll.ts: wait for two requestAnimationFrame callbacks and one task, or reuse an equivalent helper, before the next step. Ensure tests/ui-*.spec.ts uses Playwright with the appropriate Chromium UI gate and starts the project via npm run ensure.Source: Coding guidelines
🤖 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 `@tests/ui-chrome-scroll.spec.ts`:
- Around line 141-144: Update the scroll-owner selection in both scrollBy and
readChromeState to reuse the shared predicate used by the existing helper,
including the overflowY auto/scroll/overlay requirement rather than checking
dimensions alone. Keep document-scrolling behavior and state reporting
consistent with the shared predicate’s result.
---
Nitpick comments:
In `@tests/ui-chrome-scroll.spec.ts`:
- Line 164: Replace the fixed page.waitForTimeout(16) in the affected test flow
with the synchronization used by tests/playwright-scroll.ts: wait for two
requestAnimationFrame callbacks and one task, or reuse an equivalent helper,
before the next step. Ensure tests/ui-*.spec.ts uses Playwright with the
appropriate Chromium UI gate and starts the project via npm run ensure.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 79722ba7-bc00-4cde-8e8e-4ef9819eb044
📒 Files selected for processing (2)
tests/ui-chrome-scroll.spec.tstests/ui-tools.spec.ts
🚧 Files skipped from review as they are similar to previous changes (1)
- tests/ui-tools.spec.ts
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
BigSimmo
commented
Aug 11, 2026
PR #1826 babysit summary (this sweep)\n\n- Tip reviewed:cb85eba (codex/remove-text-from-all-headings)\n- Upstream snapshot: behind/ready state: behind origin/main by 21 commits, merge-tree clean, no conflicts (git merge-tree 45fd05c origin/main HEAD), merge checks currently report all required check suites PASS.\n- PR-state checks: PR policy, PR mergeability, Change scope, Semgrep, Semgrep ingestion, Safety and config, Static PR checks, Unit coverage, Build, Production UI critical, Production UI (1|2|3), and PR required all PASS; skipped checks unchanged\n- Fixed vs disposed:\n - ✅ Fixed: resolved strict-mode collisions caused by changed heading text by updating assertions to exact Clinical Answers in\n - ests/ui-accessibility.spec.ts\n - ests/ui-smoke.spec.ts\n - ✅ Implemented earlier in this PR stream (kept): Clinical Answers naming and shared scroll-owner predicate in\n - src/lib/ui-copy.ts\n - ests/shared-home-empty-state.dom.test.tsx\n - ests/ui-tools.spec.ts\n - ests/ui-chrome-scroll.spec.ts\n - ✅ Dispositioned threads: CodeRabbit actionable notes for required answer title and shared scroll-owner predicate are fully addressed and resolved in this head.\n- Local proof on this tip:\n -pm run test:e2e:chromium -- tests/ui-smoke.spec.ts tests/ui-accessibility.spec.ts (113 passed)\n - CI run 31529693254 with all required checks passing.\n- Residual risk: branch remains 21 commits behind main at this moment; mergeable state returned UNKNOWN in one read, so a final mergeability refresh before merge is still expected on the normal PR process.\n\nMerge left to you; no additional action taken by me beyond review/fix work on this sweep. |
Motivation
Description
ModeHomeHero/ModeHomeTemplateto accept an optionalsubtitleand conditionally render the<p>element. (src/components/mode-home-template.tsx)src/components/clinical-dashboard/answer-status.tsx)Clinical Answers,Differential Diagnosis,Medication Guidance,Therapy Compass,Patient Factsheets, etc.) in the centralized copy. (src/lib/ui-copy.ts)tests/shared-home-empty-state.dom.test.tsx)src/components/mode-home-template.tsx,src/components/clinical-dashboard/answer-status.tsx,src/lib/ui-copy.ts,tests/shared-home-empty-state.dom.test.tsx.Testing
node scripts/run-vitest.mjs run tests/shared-home-empty-state.dom.test.tsxwhich passed (the updated test file runs and the 15 assertions in that file succeeded).npm run ensureand a quick Playwright screenshot check at 390×844 and 1440×900 to confirm headings remain centered and unclipped in phone and desktop viewports.npm run typecheckandnpm run format; both completed successfully.npm run test); the run showed a very large number of passing tests but 5 unrelated tests intests/pr-handoff-stop.test.tsfailed / timed out (these failures are in the PR-handoff hook area and are not caused by the UI/title changes). The full-run summary was: ~6061 tests passed, 5 failed, 1 skipped.Codex Task
Summary by CodeRabbit
Improvements
Bug Fixes
Tests