8000 feat(ui): bump @felinic/ui for the spec-driven showcase by qqqqqf-q · Pull Request #839 · felinics/Memoh · GitHub
[go: up one dir, main page]

Skip to content

feat(ui): bump @felinic/ui for the spec-driven showcase - #839

Merged
qqqqqf-q merged 7 commits into
felinics:mainfrom
qqqqqf-q:feat/ui-showcase
Jul 26, 2026
Merged

qqqqqf-q merged 7 commits into
felinics:mainfrom
qqqqqf-q:feat/ui-showcase

Conversation

@qqqqqf-q
@qqqqqf-q qqqqqf-q commented Jul 20, 2026 •
Copy link
Copy Markdown
Member

⚠️ Draft — do not merge before felinics/ui#6. The gitlink currently points at that PR's head commit; after it merges (especially if squashed) this branch's packages/ui pointer must be updated to the resulting main commit, then this PR is ready.

Summary

Hosts the new @felinic/ui showcase (felinics/ui#6) in the main repo:

  • packages/ui gitlink → the showcase branch: a self-built, spec-driven component showcase replacing Storybook (collapsible-sidebar shell + foundations pages + 23 component specs; doc-spine component pages with live playground, light/dark, 5 schemes)
  • The host's page-frame/settings owners become re-export shims over the lifted library components (components/page-shell, components/section-group, components/settings/row, components/settings/section) — every existing call site keeps working unchanged; migrating imports to @felinic/ui directly is a follow-up PR
  • Root pnpm-lock.yaml: drops the Storybook dependency tree (−1392 lines), adds the showcase's two dev font deps (@fontsource-variable/inter, misans-vf — both already host-app dependencies)

No application behavior changes.

Test plan

  • pnpm install regenerates the lockfile cleanly against the bumped submodule
  • Pre-commit hooks (Go test/lint) pass
  • Host type-check: zero new errors (256 pre-existing #/ alias TS2307, identical count on main)
  • After feat: spec-driven component showcase (replaces Storybook) ui#6 merges: update gitlink to the merged commit, verify git submodule update + pnpm install from a clean checkout

qqqqqf-q added 7 commits July 26, 2026 02:57
The ui submodule gains its self-built spec-driven showcase (replacing
Storybook): shell, foundations pages, 23 component specs, stage view
modes, and light/dark side-by-side. The root lockfile drops the
storybook dependency tree and adds the two showcase dev font deps
(@fontsource-variable/inter, misans-vf).
The SettingsRow/SettingsSection implementations moved into the library
(src/components/settings) so the showcase composes them; these two files
re-export from '@felinic/ui' to keep the 64 call sites untouched.
Call-site migration is a deliberate follow-up. Also bumps the @felinic/ui
pointer.
…3 shims, copy via props

- 23 host files become re-export shims (settings/*, settings-shell,
  status-dot, form-dialog-shell, inline-loading-row, pane-placeholder,
  persona-tile, callout-banner, diff-title-bar, device-code-panel,
  confirm-delete-dialog, confirm-popover, composables/useClipboard) —
  every call site keeps working unchanged
- i18n sweeps for the three components whose copy is now prop-driven:
  DeviceCodePanel (provider-form passes the 5 label props),
  ConfirmDeleteDialog (5 sites gain cancel-label/confirm-label),
  ConfirmPopover (26 usages across 14 files gain cancel-text/confirm-text
  where they relied on the old fallback — behavior byte-identical)
- style.css: swap-forward/swap-back classes move to the library (pointer
  comment left behind)
- packages/ui gitlink bumps to the lift commit
- panel-preview/add-provider: partial vi.mock('@felinic/ui') now covers
  PanePlaceholder/FieldStack — they moved into the library, so the mocks
  swallowed them through the host shims (importOriginal spread /
  Passthrough stub matching each file's own style)
- model-list-row: widen the test timeout — the shim import pulls the whole
  library barrel through the transform pipeline, which can exceed 5s
  under full-suite load (passed solo, timed out in the full run)
@qqqqqf-q
qqqqqf-q marked this pull request as ready for review July 26, 2026 10:09
@qqqqqf-q
qqqqqf-q requested a review from a team July 26, 2026 10:09
@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: afa2a130c4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

</p>
</div>
</div>
<script lang="ts">
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Remove the non-script setup re-export shims

This and the other newly introduced component shims use ordinary <script lang="ts">, but the Web package explicitly requires <script setup> exclusively. Since these shims only preserve legacy relative imports, migrate their call sites to import the lifted components directly from @felinic/ui and delete the shims rather than adding a repository-wide exception across 25 components.

AGENTS.md reference: apps/web/AGENTS.md:L540-L544

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The plain-<script> form is deliberate, not a style exception: <script setup> cannot express a transparent component re-export (no default export; a wrapper template would change named-slot forwarding and attrs fallthrough). These shims are temporary plumbing whose only job is to keep 64+ existing call sites untouched in this PR — migrating those call sites to import from @felinic/ui directly and deleting the shims is the planned follow-up, now tracked in #862.

@qqqqqf-q
qqqqqf-q merged commit b499395 into felinics:main Jul 26, 2026
16 checks passed
qqqqqf-q added a commit that referenced this pull request Jul 31, 2026
…p the shims (#904)

The 26 re-export shims (25 components + useClipboard) were a transition
device from the #839 lift — every call site now imports the named export
from @felinic/ui, so the shims' job is done. Mechanical rewrite: 306
import sites + 8 test files' vi.mock targets. No behavior change.

Closes #862.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet
4791

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0