Skip to content

feat: import UI components from @4242labs/design-system package (42L-1913) - #79

Merged
42piratas merged 2 commits into
mainfrom
feat/ds-components-from-package
Sep 22, 2026
Merged

42piratas merged 2 commits into
mainfrom
feat/ds-components-from-package

Conversation

@42piratas

Copy link
Copy Markdown
Contributor

Summary

  • Bumps @4242labs/design-system to 2.4.10, deletes every vendored copy under web/src/components/ui/ and brand-mark.tsx, and repoints all 14 external importers at @4242labs/design-system/components/*.
  • Adds the @source directive to index.css so Tailwind scans the package's compiled classes; adds the two package stylesheet imports.
  • Updates tests/test_ds_contract.py for package mode: no local ui/ copies remain to exclude from the app-owned drift scan, and the compliance checker's own pinned version (2.4.8, separate from the 2.4.10 dependency pin) is now asserted as its own constant.

Visual change disclosure

calendar, command, dialog and popover had drifted from the design system's current source before this migration. Switching them to the package import is not a byte-identical swap like the other 20 primitives — it is a real rendered change for these four. This follows the operator's Q1 decision to migrate them through the registry rather than eject, but the divergence itself has not been visually re-verified against a rendered surface, only diffed as source.

Test plan

  • npm run build and npm run lint pass against the migrated tree
  • pytest tests/ — 72 passed
  • CI: ds-compliance.yml (ds job — compliance checker, contract tests, Playwright a11y)
  • Operator visual check of calendar/command/dialog/popover before merge

🤖 Generated with Claude Code

Predates the 2.4.5 rail/UI-contract refinement upstream: transition
timing, the icon-collapse border fix, and hover text color on the
inactive toggle. Folding it now so deleting the copy in favor of the
package import changes no rendered byte (42L-1913, R7).
…1913)

Bump the design-system pin to 2.4.10, delete the vendored ui/ copies and
brand-mark, and repoint every importer at @4242labs/design-system/components/*
instead of local paths. Adds the @source directive so Tailwind still scans
the package's compiled classes.

calendar, command, dialog and popover had drifted from the design system's
current source, so this is a real rendered change for those four, not a
byte-identical swap like the rest.

Updates tests/test_ds_contract.py for package mode: no local ui/ copies left
to exclude from the drift scan, and the compliance checker's pinned version
is asserted separately from the DS_RELEASE dependency pin.
@github-actions

Copy link
Copy Markdown
Contributor

This bump changes what the app renders

2.4.8 → 2.4.10. What differs is listed below, so every surface that
uses it moves. A retrofit with visual evidence is owed before this merges.

components

  • added or removed: components: calendar.js
  • added or removed: components: command.js
  • added or removed: components: dialog.js
  • added or removed: components: popover.js
  • added or removed: components: textarea.js

@42piratas
42piratas merged commit 758597f into main Sep 22, 2026
4 checks passed
Sign up for free to 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.

1 participant