Repository navigation
Conversation
Local experiment, not for release. Replaces every Radix UI primitive with UI SDK (@ui-sdk/react 0.1.0-beta.20) and moves the library to React 19. - Remove all 15 @radix-ui packages; components keep their public names and compound APIs. Radix-only props are kept as deprecated no-ops or mapped to UI SDK equivalents. - Fix React 19 fallout: polymorphic forwardRef typing, ref object types, and Table's first column measurement (also under StrictMode). - Declare the ui-sdk cascade layer before clickui, and hide closed UI SDK content before hydration. - Accessibility: icons are decorative by default, icon-only buttons have real names, form controls are named by their visible label, focus rings and reduced-motion guards added, keyboard access for FileTabs, AutoComplete and the MultiAccordion check. - Agent docs: generated llms.txt and a page per component ship in the package (yarn generate:llm-docs), plus an ./agent entry re-exporting UI SDK's agent bridge. Not run: Playwright visual tests (specs still assert data-state and snapshots need intended updates). Known open issues are listed in .changeset/experiment-ui-sdk-migration.md and the session notes: Flyout inside a modal Dialog renders behind it, and DateRangePicker closes on Tab. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Contributor
Chromatic Storybook
Built from commit: Statuses as of the end of the run. The build link shows the live review state. |
Contributor
Storybook Preview Deployed✅ Preview URL: https://click-oq5h8t8a7-clickhouse.vercel.app Built from commit: |
6 of 11 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
An experiment to see how far Click UI can get on UI SDK (
@ui-sdk/react, currently0.1.0-beta.20) in place of Radix UI. UI SDK requires React 19, so the branch moves to React 19 as well.@radix-ui/*packages with@ui-sdk/reactand@ui-sdk/core. Migrated: Switch, Checkbox, RadioGroup, Separator, Avatar, Tabs, Accordion, MultiAccordion, Dropdown, ContextMenu, SplitButton, Popover, HoverCard, Tooltip, Dialog, Flyout, ConfirmationDialog, the Select family, AutoComplete, DatePicker and Toast.^19.0.0) and fixes the fallout:reftyping, the removed globalJSXnamespace, effect timing in Table column measuring.ui-sdkcascade layer ahead ofclickui, so Click UI styles win over UI SDK's injected styles and consumer styles still win over both.<label htmlFor>, Badge dismiss is a real<button>, FileTabs use a roving tabindex, focus rings and reduced-motion guards added.eslint-suppressions.jsonshrinks to two files.yarn generate:llm-docs) writesllms.txtand one Markdown page per component intodocs/llm/, shipped in the package. A new@clickhouse/click-ui/agententry re-exports UI SDK's agent bridge.Links and tickets
uisdk-react19in ClickHouse/clickhouse-designGood to know
Breaking for consumers (details and migration note in the changeset):
@ui-sdk/reactis ESM-only with subpath exports, so consumers needmoduleResolutionbundlerornode16, and Jest setups need ESM handling.showPopover,hidePopoverandgetAnimations(seesetupTests.ts).data-state="open"todata-open/data-closed/data-checked.Known issues
divs (the two remaining lint suppressions); ProgressBar has no role.Expected CI failures
data-state, and snapshots were not regenerated. I did not run them.Checklist
Contribution
buildandbuild-storybookwork locallyRun locally and passing:
typecheck,lint(0 errors),format,circular-dependency:check,test(1134 unit tests),buildand the build health check. All 672 Storybook stories render without console errors. Unit tests and stories are updated; the Playwright visual specs are not, which is why the last box is unticked.Accessibility
aria-labelLeft unticked on purpose. Tested: keyboard passes in Chromium on Dialog, Dropdown, Select, Tabs, Accordion, Popover, Tooltip and Toast;
eslint-plugin-jsx-a11yat error level; unit tests for the ARIA attributes each migrated component promises (WCAG 2.1.1, 2.4.3, 2.4.7, 4.1.2). Not tested: axe on every story, screen readers, Safari, Firefox, contrast measurements (1.4.3, 1.4.11), target size (2.5.8). The keyboard gaps listed under known issues are open.Screenshots
None. Visual snapshots were not regenerated.
🤖 Generated with Claude Code