Skip to content

chore(design-sync): sync UI primitives + tokens to claude.ai/design - #595

Merged
BigSimmo merged 6 commits into
mainfrom
claude/design-sync-78bad6
Jul 13, 2026
Merged

chore(design-sync): sync UI primitives + tokens to claude.ai/design#595
BigSimmo merged 6 commits into
mainfrom
claude/design-sync-78bad6

Conversation

@BigSimmo

@BigSimmoBigSimmo commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Summary

First /design-sync of the design layer to the claude.ai/design project Clinical KB Design System (08d6f126-3fd0-4764-aedf-0062a467280a). Commits the durable sync inputs so future re-syncs are reproducible from any checkout:

  • .design-sync/config.json — package-shape config: hand-authored bundle entry, Tailwind v4 compile step (buildCmd), Geist via extraFonts, curated guidelinesGlob, card-mode overrides
  • .design-sync/entry.tsx — bundle entry enumerating the synced surface (10 primitives + class-string vocabulary)
  • .design-sync/previews/*.tsx — 10 authored preview files (29 stories), all render-verified and graded good
  • .design-sync/conventions.md — design-agent conventions header (token idiom, class vocabulary; every name grep-verified against the built artifacts)
  • .design-sync/NOTES.md — re-sync runbook and traps
  • .gitignore — excludes generated sync state (.ds-sync/, ds-bundle/, caches)

No app code changes — repo-tracked sync inputs only. Verification: converter validate exited clean (render check 10/10, no flags); upload verified against the project file list.

Clinical governance preflight

Not applicable — no ingestion, answer generation, search/ranking, source rendering, document access, privacy, or production env changes; docs/config for an external design tool only.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Added a Design Sync integration for sharing the application’s UI components and styles.
    • Added interactive previews for tables, notices, loading states, panels, dialogs, badges, toggles, and empty states.
    • Added examples covering accessibility, markdown rendering, provenance metadata, and document status variations.
    • Added Geist and Geist Mono font support for synchronized previews.
  • Documentation

    • Documented Design Sync setup, styling conventions, preview requirements, and operational guidance.

…/design
Config, authored previews, conventions header, and notes for the
design-sync pipeline (package shape, hand-authored entry, Tailwind v4
compile step, Geist via extraFonts). 10 components verified and uploaded
to the 'Clinical KB Design System' project.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@supabase

supabaseBot commented Jul 13, 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 enabled auto-merge (squash) July 13, 2026 14:37
@coderabbitai

coderabbitaiBot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

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

Next review available in:2 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: 25212696-ddb4-4b6a-8f80-912374967895

📥 Commits

Reviewing files that changed from the base of the PR and between 3e2323e and f1f17bf.

📒 Files selected for processing (1)
  • .design-sync/NOTES.md
📝 Walkthrough

Walkthrough

Adds Design Sync configuration, styling and font assets, a bundle entry, preview components for shared UI, and ignore rules for generated synchronization state.

Changes

Design Sync integration

Layer / File(s)Summary
Sync configuration and styling foundation
.design-sync/config.json, .design-sync/NOTES.md, .design-sync/conventions.md, .design-sync/font-vars.css, .design-sync/fonts.css, .gitignore
Defines project/build settings, styling conventions, font mappings, operational notes, and ignored Design Sync state.
Bundle entry exports
.design-sync/entry.tsx
Re-exports UI primitives, Sheet, SafeBoldText, and AccessibleTable for the synchronized bundle.
Component preview catalog
.design-sync/previews/*
Adds preview variants covering tables, empty states, notices, loading panels, headings, text, sheets, provenance, status badges, and toggles.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
participant DesignSyncDriver
participant Config
participant EntryBundle
participant PreviewComponents
DesignSyncDriver->>Config: read Design Sync project and build settings
DesignSyncDriver->>EntryBundle: load .design-sync/entry.tsx
EntryBundle->>PreviewComponents: expose mapped UI component previews
PreviewComponents-->>DesignSyncDriver: provide synchronized render surfaces
Loading
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check nameStatusExplanation
Title check✅ PassedThe title is concise and accurately summarizes the main change: syncing design-layer primitives and tokens to claude.ai/design.
Description check✅ PassedThe description covers summary, verification, and governance context, though it is less template-shaped and omits explicit checklist items and Notes.
Docstring Coverage✅ PassedNo functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/design-sync-78bad6

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

coderabbitai[bot]
coderabbitaiBot previously requested changes Jul 13, 2026

@coderabbitaicoderabbitaiBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.design-sync/NOTES.md (1)

1-51: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Restore Prettier compliance for the sync notes.

prettier --check reports formatting issues in .design-sync/NOTES.md, so the static checks will remain failing until this file is formatted.

🤖 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 @.design-sync/NOTES.md around lines 1 - 51, Format .design-sync/NOTES.md with
the repository’s Prettier configuration, preserving all note content and
markdown structure. Verify the file passes prettier --check after formatting.

Source: Pipeline failures

🤖 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 @.design-sync/fonts.css:
- Line 5: Update the font-family declaration for the Geist family in fonts.css
to use the unquoted single-token name Geist, while keeping the multi-token
"Geist Mono" family name quoted.
In @.design-sync/previews/AccessibleTable.tsx:
- Around line 10-11: Format all five preview files with the repository’s
Prettier configuration, preserving their existing behavior:
.design-sync/previews/AccessibleTable.tsx lines 10-11, InlineNotice.tsx lines
3-4, LoadingPanel.tsx lines 3-7, PanelHeading.tsx lines 4-12, and
SafeBoldText.tsx lines 3-13. Rerun the formatter and static checks after
formatting.
In @.design-sync/previews/Sheet.tsx:
- Around line 21-22: Associate the “Status” label with the select control in the
Sheet component by assigning the select a unique id and referencing that id from
the label’s htmlFor attribute, preserving the existing styling and behavior.
---
Outside diff comments:
In @.design-sync/NOTES.md:
- Around line 1-51: Format .design-sync/NOTES.md with the repository’s Prettier
configuration, preserving all note content and markdown structure. Verify the
file passes prettier --check after formatting.
🪄 Autofix (Beta)

✅ Autofix completed


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 192ddbd4-4ab1-4a71-a0a9-6676aa66cfec

📥 Commits

Reviewing files that changed from the base of the PR and between 3325a12 and d3f6866.

📒 Files selected for processing (17)
  • .design-sync/NOTES.md
  • .design-sync/config.json
  • .design-sync/conventions.md
  • .design-sync/entry.tsx
  • .design-sync/font-vars.css
  • .design-sync/fonts.css
  • .design-sync/previews/AccessibleTable.tsx
  • .design-sync/previews/EmptyState.tsx
  • .design-sync/previews/InlineNotice.tsx
  • .design-sync/previews/LoadingPanel.tsx
  • .design-sync/previews/PanelHeading.tsx
  • .design-sync/previews/SafeBoldText.tsx
  • .design-sync/previews/Sheet.tsx
  • .design-sync/previews/SourceProvenance.tsx
  • .design-sync/previews/SourceStatusBadge.tsx
  • .design-sync/previews/ToggleSwitch.tsx
  • .gitignore

Comment thread.design-sync/fonts.css Outdated
Comment thread.design-sync/previews/AccessibleTable.tsx Outdated
Comment thread.design-sync/previews/Sheet.tsx Outdated
@coderabbitai

coderabbitaiBot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Note

Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it.

Fixes Applied Successfully

Fixed 4 file(s) based on 3 unresolved review comments.

Files modified:

  • .design-sync/fonts.css
  • .design-sync/previews/AccessibleTable.tsx
  • .design-sync/previews/InlineNotice.tsx
  • .design-sync/previews/Sheet.tsx

Commit:f4b4c2d1ed12145ef6b3eafcc3f336237e50772f

The changes have been pushed to the claude/design-sync-78bad6 branch.

Time taken:7m 50s

Fixed 4 file(s) based on 3 unresolved review comments.
Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
@github-actions

Copy link
Copy Markdown
Contributor

CI triage

CI failed on this PR. Automated classification of the 2 failed job(s):

  • Static PR checksneeds investigation.
  • PR requiredpossible known flake: UI/Playwright job; check tests/flake-ledger.json (tests/ui-smoke.spec.ts, tests/ui-smoke.spec.ts, tests/ui-tools.spec.ts, tests/ui-tools.spec.ts) and re-run before bisecting.

Heuristic only — a main-side or flake label is a starting point, not a verdict.

auto-merge was automatically disabled July 13, 2026 15:29

Head branch was pushed to by a user without write access

@chatgpt-codex-connectorchatgpt-codex-connectorBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit:0d2cced1a8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread.design-sync/NOTES.md Outdated
@github-actions

Copy link
Copy Markdown
Contributor

@codex resolve actionable Codex review findings for this pull request and current head using the repository instructions. This is the pull request's single automatic repair pass: do not perform a fresh review, create new standalone findings, or request another review. Work only the existing unresolved Codex threads on the current head. Always fix P0 and P1 findings. For P2 and lower findings, fix only clear, scoped, low-risk issues; otherwise disposition them with a concise reason. After fixing or dispositioning a thread, reply in that thread with as the first line, followed by a concise summary; that marker authorizes the workflow to close that exact thread. If human input or new authorization is required, do not use the marker and leave the thread open with the blocker. Finish only after every actionable thread is fixed or dispositioned and closed, or explicitly left open for a human decision. Do not update the branch from main, address unrelated reviews, broaden scope, or create more than one scoped fix commit. Do not use external APIs, paid services, credentials, dependency changes, or broad refactors unless explicitly authorized. Add targeted tests where behavior changes and run the narrowest relevant validation.

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create a Codex account and connect to github.

@BigSimmo
BigSimmo dismissed coderabbitai[bot]’s stale reviewJuly 13, 2026 16:33

All actionable findings were fixed, all review threads are resolved, and required CI is green.

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