docs(ui): record DS adoption evidence and overlay/links checks (221,233,234,235,238,245) - #1842
Conversation
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
📝 WalkthroughWalkthroughThe change updates design-system adoption records, delegates ChangesDesign-system adoption and component alignment
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install failed: dependency version conflict. Check your lock file or package.json. Comment |
There was a problem hiding this comment.
Pull request overview
Converges mode-home status notices on design-system primitives and records adoption evidence for overlays, clipboard composition, and responsive link rails.
Changes:
- Delegates status notices to
EmptyStatewhile preserving actions. - Relies on and tests the default
Sheetportal behavior. - Updates design-system adoption documentation and generated evidence.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
src/components/mode-home-template.tsx |
Adopts EmptyState for status notices. |
src/components/clinical-dashboard/ClinicalSidebar.tsx |
Uses the default Sheet portal. |
src/components/clinical-dashboard/answer-result-surface.tsx |
Uses the default portal for answer-review sheets. |
tests/sheet.dom.test.tsx |
Tests default modal-host portal behavior. |
tests/design-system-target-evidence.test.ts |
Pins targeted adoption declarations. |
docs/design-system/ADOPTION.md |
Records adoption and verification evidence. |
docs/design-system/COMPONENTS.md |
Updates maturity counts and FormField guidance. |
docs/design-system/adoption-manifest.json |
Regenerates adoption inventory and test evidence. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Checked all 12 open PRs and mapped them to ledger rows. Twenty-four open rows are actively being fixed right now — #1835 (7 rows), #1840 (4), #1842 (6), #1841 (4), #1836 (2), #1837 (1), #1839 (1) — and none of those rows said so. This is the #292 failure mode with the safety off: a queued row that reads as unclaimed while a PR is open against it is how the same conversion shipped twice on 2026-08-09. Each row now names its PR and says not to start until that PR merges. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017paT42ZVMf8jaLtkjFxdy5
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 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 `@docs/design-system/COMPONENTS.md`:
- Around line 64-89: Synchronize the stale component contract sections with the
ledger: update the Button section to remove ref forwarding from follow-on
defects, and update the TextField/SearchField/Select section to reflect their
completed FormField, hint/error, aria-describedby, external id, and ref
behavior. Alternatively, correct the corresponding ledger claims if those
contracts are not actually implemented, keeping both sections consistent.
In `@tests/design-system-target-evidence.test.ts`:
- Around line 35-43: Update the test case “keeps responsive CrossModeLinks
declarations distinct and the generic rail phone-only” so the desktop visibility
assertion targets the `cross-mode-links-card-rail` declaration rather than
`cross-mode-links-rail`; keep the phone-only assertion for
`cross-mode-links-rail` and the existing prohibition on
`cross-mode-links-rail-desktop` unchanged.
🪄 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: bd342f1e-4660-4d65-9e06-12b810ab1318
📒 Files selected for processing (8)
docs/design-system/ADOPTION.mddocs/design-system/COMPONENTS.mddocs/design-system/adoption-manifest.jsonsrc/components/clinical-dashboard/ClinicalSidebar.tsxsrc/components/clinical-dashboard/answer-result-surface.tsxsrc/components/mode-home-template.tsxtests/design-system-target-evidence.test.tstests/sheet.dom.test.tsx
💤 Files with no reviewable changes (2)
- src/components/clinical-dashboard/ClinicalSidebar.tsx
- src/components/clinical-dashboard/answer-result-surface.tsx
…s instrument now exists Four corrections, queued as immutable inbox requests. #235, #237 and #238 each had a `done` queued in PR #1940 and cancelled on review. The cancellations were right: all three ask for visual or browser proof and were closed on executable evidence. Each row now records the attempt, the reason it was refused, and a Stop rule naming the evidence class that must not be used again — so the next reader does not repeat it: - #235: section 7.1 opens with "records executable evidence RATHER THAN committing image baselines", so the section that looks like the evidence says in its first line that it is not - #237: jsdom does not lay out text, so a 320px assertion proves the string is present, not that it fits - #238: the risk is ancestor-scoped CSS/contain/transform on five specific host surfaces, which no Sheet component test can see All three also drop their IN FLIGHT do-not-start prefix; PRs #1841 and #1842 have merged, so the warning was blocking rather than protecting. #231's "Next: instrument and reproduce" is stale — commit a3bc4da added scripts/probe-generation-quality.ts and adjudicated PR #1861 as superseded for phase 1. The row now says so, so nobody reviews #1861 as the live fix or rebuilds the probe. Next is running it where credentials exist. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017paT42ZVMf8jaLtkjFxdy5
Motivation
Description
EmptyStateand surface its action slot so retry/navigation semantics are preserved (src/components/mode-home-template.tsx).Sheetoverlay default (portal →OverlayRoot) is exercised; removed redundant explicitportalflags from the Clinical Sidebar and answer-review sheets so they use the component default (src/components/clinical-dashboard/ClinicalSidebar.tsx,src/components/clinical-dashboard/answer-result-surface.tsx).tests/sheet.dom.test.tsx).tests/design-system-target-evidence.test.ts).docs/design-system/ADOPTION.mdand related ADOPTION notes).docs/design-system/COMPONENTS.md,docs/design-system/adoption-manifest.json).Files touched (high level):
src/components/mode-home-template.tsx,src/components/clinical-dashboard/ClinicalSidebar.tsx,src/components/clinical-dashboard/answer-result-surface.tsx,tests/design-system-target-evidence.test.ts,tests/sheet.dom.test.tsx,tests/answer-copy-payload.test.ts(existing),docs/design-system/ADOPTION.md,docs/design-system/COMPONENTS.md,docs/design-system/adoption-manifest.json.Testing
npm run workflow:design-sweep -- --write-evidence,npm run ensure) and captured a non-committed UI proof screenshot for the mode-home status notice (/tmp/ds-mode-home-status-notice.png).tests/design-system-target-evidence.test.ts,tests/mode-home-status-notice.dom.test.tsx,tests/sheet.dom.test.tsx, andtests/answer-copy-payload.test.ts; all passed (4 test files, 23 tests in this run).npm run check:design-system-contractand the generated adoption check both completed with the design-system contract passing and the adoption manifest updated (54 components, 59 roots, 51 production routes) as documented in the manifest; no baseline images were committed.npm run docs:check-linkscompleted successfully and repo doc links resolved.prettierformatting was run andgit diff --check/ staged diff checks passed.Notes and follow-up
Codex Task
Summary by CodeRabbit
New Features
Bug Fixes
Tests
Documentation