Skip to content

fix(web): align DS package version with primitive imports - #30749

Closed
joechaotic wants to merge 2 commits into
NousResearch:mainfrom
joechaotic:wade/fix-30698-ds-nix
Closed

fix(web): align DS package version with primitive imports#30749
joechaotic wants to merge 2 commits into
NousResearch:mainfrom
joechaotic:wade/fix-30698-ds-nix

Conversation

@joechaotic

Copy link
Copy Markdown

Summary\n- Supersedes/repairs #30698 by updating @nous-research/ui to a version that exports the DS primitive subpaths used by the web refactor.\n- Updates package-lock so Nix/npm builds resolve the same DS package locally and in CI.\n- Keeps useModalBehavior local because @nous-research/ui does not export that hook.\n\n## Test Plan\n- npm run build (from web/)\n- git diff --check\n\nNotes: I could not push directly to the original branch (#30698) because this checkout has read-only permission on NousResearch/hermes-agent.

@joechaotic
joechaotic requested a review from a team May 23, 2026 04:27
austinpickett and others added 2 commits May 23, 2026 04:28
Replace locally-forked UI components and hooks with their newly
promoted counterparts from @nous-research/ui:

Deleted local components (now in DS):
- components/ui/input.tsx, label.tsx, separator.tsx, card.tsx,
  confirm-dialog.tsx
- components/Toast.tsx, BottomPickSheet.tsx, NouiTypography.tsx
- hooks/useToast.ts, useModalBehavior.ts, useBelowBreakpoint.ts,
  useConfirmDelete.ts

Import updates across 25 files to use DS deep imports:
- @nous-research/ui/ui/components/{input,label,separator,card,
  confirm-dialog,toast,bottom-sheet}
- @nous-research/ui/ui/components/typography (replaces NouiTypography)
- @nous-research/ui/hooks/{use-toast,use-modal-behavior,
  use-below-breakpoint,use-confirm-delete}

Requires design-language >= feat/promote-hermes-web-primitives.

Co-authored-by: Cursor <cursoragent@cursor.com>
@joechaotic
joechaotic force-pushed the wade/fix-30698-ds-nix branch from 04ad5d9 to b0fe829 Compare May 23, 2026 04:30
@alt-glitch alt-glitch added type/refactor Code restructuring, no behavior change P3 Low — cosmetic, nice to have comp/tui Terminal UI (ui-tui/ + tui_gateway/) javascript labels May 23, 2026
@teknium1

Copy link
Copy Markdown
Contributor

Automated hermes-sweeper review: this PR’s functional changes are already present on current main.

Evidence:

  • web/package.json:15 pins the dashboard workspace to @nous-research/ui 0.18.2.
  • package-lock.json:18658 and package-lock.json:18698 show the consolidated lockfile resolves the web workspace’s @nous-research/ui dependency to 0.18.2.
  • The DS primitive import migration is present on main, e.g. web/src/components/LanguageSwitcher.tsx:5 imports @nous-research/ui/ui/components/bottom-sheet, and the dashboard now imports the promoted DS primitives/hooks across web/src.
  • The local copies removed by this PR are gone from web/src, while web/src/hooks/useModalBehavior.ts:11 remains local as the PR intended.
  • The equivalent main commits are c9e5a9bb087ca7704f65d4dfffaa71fff4eaee71 for the DS primitive refactor and a3cd974ee7cc20ce937e375a2513649f1bf99b12 for the @nous-research/ui 0.18.2 bump, with the later workspace lockfile consolidation in a51a7b9b92b63b5f97afa0fc31c9cd349f04b5ec.

@teknium1 teknium1 closed this Jun 21, 2026
@teknium1 teknium1 added the sweeper:implemented-on-main Sweeper: behavior already present on current main label Jun 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/tui Terminal UI (ui-tui/ + tui_gateway/) P3 Low — cosmetic, nice to have sweeper:implemented-on-main Sweeper: behavior already present on current main type/refactor Code restructuring, no behavior change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants