Repository navigation
Migrate frontend UI primitives to Nebari design registry - #460
Conversation
✅ Deploy Preview for nebi-docs canceled.
|
Resolved PublishDialog.test.tsx conflicts in favor of the Nebari Select (combobox) interaction pattern, porting main's focus assertion and adapting the new refreshes-defaults test from native selectOptions to combobox clicks. Co-Authored-By: Claude Fable 5 <[email protected]>
…tion The merge from main brought in tests written against the old native select and Radix dialog autofocus. The Nebari/Base UI Select trigger is a combobox button, so assert on its visible text instead of .value, and drop the focus wait the Base UI dialog no longer satisfies. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Hey @MUFFANUJ — great start on this migration! I experimented on top of this branch ( 1. Finish the Base UI / Radix migration (
2. Align the app shell and theme tokens with current Nebari standards (same commit)
3. Use the Nebari table component ( 4. Use the Nebari code block ( Heads-up (unrelated to design): while testing on a populated database I hit a SQLite startup crash dropping Happy to walk through any of it — the full diff is at |
|
@MUFFANUJ , a few styling changes we need to make:
|
jbouder
left a comment
There was a problem hiding this comment.
Nice migration overall: the installed ui/* files match the upstream registry, the theme tokens match, no Radix/asChild usage remains, and build/lint/tests are green. Requesting changes for two behavior regressions plus a handful of should-fixes, most left inline.
Blocking (not in the diff, so noted here): frontend/src/lib/brandingConfig.ts:109-116 — runtime branding (public/config.json → theme.light/dark) emits --color-primary, --color-primary-hover, etc. The new theme is @theme inline, so utilities now compile straight to var(--primary) (the built CSS has .bg-primary{background-color:var(--primary)}), meaning every operator-configured brand color is silently ignored, and --color-nav-hover no longer exists at all. Please map incoming keys to the bare Nebari variables (--primary, --primary-hover, …), drop or remap navHover, and update brandingConfig.test.ts:53-54, which still asserts the dead variable names.
The other blocking item (header NavLink active suppressing navigation from detail pages) is inline on Layout.tsx.
jbouder
left a comment
There was a problem hiding this comment.
Great work! Thank you for working through this.
Reference Issues or PRs
Closes #439
What does this implement/fix?
Put a
xin the boxes that applyTesting
Documentation
Access-centered content checklist
Text styling
H1or#in markdown).Non-text content
Any other comments?
This PR migrates Nebi’s frontend
shadcnsetup to the@nebari designregistry, replaces the registry-backed UI primitives with Nebari versions, reconciles theme/utils integration, and keeps registry-absent local components explicitly documented. It also updates affected call sites to the new Base UI component APIs while preserving existing behavior and accessibility.frontend/components.jsonwith the@nebariregistry@nebari/themeinfrontend/src/index.css@nebari/utilswith existingcn,capitalize, andgetWorkspaceStatusColorbutton,input,textarea,badge,card,dialog,tabs,selectspinneralert-dialog,select-v2,split-button,confirm-dialog,user-badge--color-primary-hoverand--color-nav-hoverDialog,Tabs,Select, andButtonAPIsselectref compatibility exception