Repository navigation
Re-sync frontend UI primitives with the @nebari registry - #565
Merged
Merged
Conversation
confirm-dialog, split-button and user-badge are nebi-specific wrappers, not @Nebari registry items, so they now live in src/components/ instead of src/components/ui/. Likewise capitalize and the status colour helpers move from src/lib/utils.ts (registry-owned, cn() only) into src/lib/strings.ts and src/lib/status.ts. Importers and tests follow; split-button gains the explicit button type Biome requires now that it is linted. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Re-add every installed registry item with --overwrite (code-block, select and table had drifted; the rest were already current), re-apply @nebari/theme (adds the --info tokens) and install the @nebari/claude-skill so Claude Code sessions in frontend/ get the nebari-ui skill. The repo-wide .claude/ ignore now lets .claude/skills/ through so the installed skill is tracked. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Replace the hand-rolled useThemePreference/useLocalStorageState pair with the
registry's use-theme-preference + theme-provider, mounted once in main.tsx with
the existing nebi:themeMode storage key so saved preferences survive. App reads
theme state via useTheme(); Layout/ProfileMenu take ThemeMode from the registry
hook. index.html gains the pre-paint bootstrap script generated by
themeBootstrapScript('nebi:themeMode') so dark users no longer see a light
flash. The registry hook files are excluded from Biome like components/ui.
Header: drop the last hard-coded rgba shadows in favour of shadow-sm and
shadow-primary/40, size the profile menu at the recipe's 248px, and label the
brand link "Go to homepage".
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Drop the horizontal padding around the Light/Dark/System control so it matches the Nebari header recipe. The extra 16px left the muted track too narrow for the three pills and the System option ran past its edge. Co-Authored-By: Claude Fable 5.1 <[email protected]>
pmeier
approved these changes
Sep 8, 2026
Store the registry-installed skill at frontend/.agents/skills so it is agent-agnostic, and track frontend/.claude/skills as a symlink to it so Claude Code (and shadcn re-syncs, which target .claude/skills) still find it. Only the skills directory is linked so per-directory settings.local.json files stay out of the tracked tree. Generalize the .gitignore rules to **/.claude/* and **/.agents/*; the previous .claude/* pattern was root-anchored and never applied to frontend/.claude/. Co-Authored-By: Claude Fable 5.1 <[email protected]>
MUFFANUJ
approved these changes
Sep 8, 2026
tylerpotts
added a commit
to MUFFANUJ/nebi
that referenced
this pull request
Sep 8, 2026
Resolve conflicts with nebari-dev#565, which made src/lib/utils.ts registry-owned (cn() only) and split the app helpers into src/lib/status.ts and src/lib/strings.ts. getWorkspaceVersionLabel moves out of utils.ts into a new src/lib/versions.ts with its tests; VersionHistory and RemoteWorkspaceDetail import it from there, and RemoteWorkspaceDetail picks up main's relocated user-badge, status and strings imports.
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.
Part of nebari-dev/nebari-design#143
Closes #563
Summary
Re-syncs
frontend/against the@nebarishadcn registry and clears the drift that accumulated since #460.--overwrite(alert, badge, button, card, code-block, dialog, dropdown-menu, input, navigation-menu, select, spinner, table, tabs, textarea, utils):code-block,selectandtablehad drifted; the rest were already current. No exported API changed, so no callers needed edits.@nebari/themere-applied:src/index.cssgains the new--info/--info-foregroundtokens (light + dark) and their--color-info*@thememappings. Everything else already matchedglobals.css. The only app-defined tokens left are--header-action-hoverand--sign-out-foreground(nebi has no notification feed, so--notification-badgeis intentionally not declared).confirm-dialog(+ test),split-button,user-badgenow live insrc/components/;capitalizemoves tosrc/lib/strings.tsand the status colour helpers tosrc/lib/status.ts, sosrc/lib/utils.tsis the registry file again. Importers and tests updated;split-buttongot the explicittype="button"Biome flagged once it became lintable.useThemePreference/useLocalStorageStateare deleted in favour of@nebari/use-theme-preference(src/hooks/use-theme-preference.ts+theme-provider.tsx).ThemeProvideris mounted once inmain.tsxwith the existingnebi:themeModekey (src/lib/theme.ts),AppreadsuseTheme(), andLayout/ProfileMenutakeThemeModefrom the registry hook.index.htmlnow carries the pre-paint bootstrap script generated bythemeBootstrapScript('nebi:themeMode'), so a dark-mode user no longer sees a light flash. The old hook tests were ported touse-theme-preference.test.tsx(including a legacy-key restore case).rgba()shadows are gone (shadow-smfor the selected theme option,shadow-[0_0_6px] shadow-primary/40for the Local/Remote indicator dots), the profile menu is the recipe's 248px, and the brand link is labelled "Go to homepage". The header already usedh-14 ... pl-4,bg-header text-header-foreground border-border, anh-8 w-autologo,MenuBarActions gap-2, amenuitemradiotheme picker andtext-sign-out-foreground.@nebari/claude-skillinstalled atfrontend/.claude/skills/nebari-ui/SKILL.md. The repo-wide.claude/ignore in the root.gitignoreis narrowed to.claude/*+!.claude/skills/so the installed skill is actually tracked.src/components/uialready is.Follow-up
ProfileMenuis still a hand-rolled popover; rebuilding it on the registryDropdownMenu+Menu.RadioGroupper the header recipe is a structural change (it also changes the keyboard model the unit and e2e tests assert), so it is filed separately rather than folded into this parity sweep.src/lib/status.tsandsrc/components/user-badge.tsxstill use Tailwind palette classes (bg-yellow-100etc.) rather than semantic tokens. They were moved verbatim; re-tokenising them is out of scope here.nebari-dev/nebari-design#143 cross-cutting checklist (this repo)
src/components/ui/that maps to a registry item is identical toregistry/nebari/ui/<name>.tsxafter Biome — 10 files are byte-identical;button,dialog,dropdown-menu,navigation-menudiffer only by shadcn's alias resolution (@/ui/...→@/components/ui/..., 1 import line each).table.tsx's leading// biome-ignore-allcomment, which the shadcn CLI strips on install, was restored so the file matches byte-for-byte.components/ui/into app-owned wrappers (confirm-dialog,split-button,user-badge) orsrc/lib/(strings.ts,status.ts)components.jsondeclares@nebari→https://nebari-dev.github.io/nebari-design/r/{name}.json(already present)registry/nebari/globals.css(only--info*was missing); hand-rolled theme hook replaced by@nebari/use-theme-preference@nebari/claude-skillinstalled —frontend/.claude/skills/nebari-ui/SKILL.mdrgb()colours in.tsx—grep -rnE '#[0-9a-fA-F]{3,8}\b|rgba?\(' src --include='*.tsx' --include='*.ts'outsidecomponents/ui/returns nothing@base-ui/reactsatisfies the registry's^1.6.0— nebi stays on^1.7.0(shadcn did not change it)npm run ci,npm run build,npm testpass (39 files / 264 tests)Test plan
npm run ci(Biome) — clean (the pre-existing "run biome migrate" info remains)npm run build— passesnpm test— 264 passednpm run test:e2e) — not run locally; CI covers it. TheselectThemehelper still targetsmenuitemradioitems by the same labels.🤖 Generated with Claude Code