Skip to content

feat(webkit): [ENG-48075] drop templates exports; Templates stories become compositions - #977

Merged
isaque-bock-azion merged 2 commits into
mainfrom
feat/remove-templates-category
Sep 17, 2026
Merged

isaque-bock-azion merged 2 commits into
mainfrom
feat/remove-templates-category

Conversation

@isaque-bock-azion

@isaque-bock-azion isaque-bock-azion commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Drops the five templates exports from @aziontech/webkit (deploy-success, onboarding-form, plan-success, platform-shell, sign-up-card) and regenerates catalog.json; the sources under src/components/templates/ and their specs/tests stay in the repo.
  • The five Templates/* stories are rewritten as compositions of published components (GlobalHeader, CardBox, Item, LogView, Tag, Link, TabView, Button, …) with a runnable "Show code" SFC; the inherited Tag :value bug becomes label.
  • packages/webkit/AGENTS.md and apps/storybook/README.md describe Templates as pure compositions.

How to test

  1. node .claude/hooks/validate-story-source.mjs --all → OK: 111 story files comply.
  2. pnpm --filter @aziontech/webkit catalog:check → no diff; grep -c "templates/" packages/webkit/catalog.json → 0.
  3. pnpm storybook:dev → open Templates/DeploySuccess, PlanSuccess, OnboardingForm, PlatformShell, SignUpCard: each renders and its Docs "Show code" panel imports only @aziontech/webkit/* subpaths that exist in package.json#exports.
  4. pnpm --filter @aziontech/webkit test:gate, pnpm webkit:lint, pnpm webkit:type-check pass.

Notes

@isaque-bock-azion
isaque-bock-azion force-pushed the feat/remove-templates-category branch from 013db0d to 2ee91d3 Compare September 17, 2026 18:46
@isaque-bock-azion isaque-bock-azion changed the title feat(webkit): [ENG-48075] remove templates category; Templates stories become compositions feat(webkit): [ENG-48075] drop templates exports; Templates stories become compositions Sep 17, 2026
@isaque-bock-azion
isaque-bock-azion merged commit 661acf4 into main Sep 17, 2026
23 checks passed
@isaque-bock-azion
isaque-bock-azion deleted the feat/remove-templates-category branch September 17, 2026 19:54
@github-actions github-actions Bot mentioned this pull request Sep 17, 2026
gabriel-lisboa-azion added a commit that referenced this pull request Sep 21, 2026
demo/vue-sample had drifted 540 ahead / 31 behind main while most of its
webkit work was reviewed and landed upstream (#941 command-menu, #942
GlobalHeader placements, #943 NavigationMenu, #952 Menu, #960 sidebar
collapse, #973 floating-panel placement, #975 paginator, #977 templates
exports, #921 amount ladder), after which main swept comments (#951) and
reworked the CLI onto a derived bundle (#968/#970).

Main is the source for everything the two share. Of the 28 conflicted
source files, 17 differed from main only in comments — their code was
byte-identical — and 6 more were genuinely newer on main, so all 23 take
main verbatim, including the use-placement TypeScript rewrite that
replaces the old index.js.

Three carve-outs keep demo work main does not have yet:

- sidebar: main's CSS-driven collapse is the base; the `side` axis is
  re-applied on top of it as data-[side=end] variants rather than the JS
  edge map it used to be, and the drag sign moves into the rail
  composable. The one test that asserted the removed inline transform now
  asserts the panel's published edge, since the direction is CSS the
  unstyled test env cannot see.
- theme: texts.data.js keeps demo's 13 extra text-wrap and 10 extra
  tracking declarations (PR #982, in flight). Both sides carry the same
  34 entries, so an entry count would not have caught the loss.
- doc-prose keeps its chrome-padding fix (PR #981, in flight).

catalog.json, authoring-baseline.json, the theme dist and the lockfile
are regenerated rather than hand-resolved; the 13 conflicted visual
baselines take main's and are regenerated from CI next.

Verified: every file main touched is byte-identical to main except the
22 accounted for above; 2364 browser tests, 179 toolkit tests, lint,
vue-tsc, 99.98% type coverage, both ratchets, the Storybook build and
the webkit-sample build all pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants