Skip to content

fix: refactor: tokens/presets.ts derives every preset field from builtins.ts - #661

Merged
mvilacad merged 3 commits into
mainfrom
fix/654-refactor-tokens-presets-ts-derives-every
Oct 26, 2026
Merged

mvilacad merged 3 commits into
mainfrom
fix/654-refactor-tokens-presets-ts-derives-every

Conversation

@mvilacad

Copy link
Copy Markdown
Contributor

Closes #654

Regression test (written first)

  • Test reproduces the problem and fails on main (paste the failing output)
  • Same test passes with the fix

Change

Checklist

  • bun run validate passes
  • Changeset (bun changeset) if the published package changes
  • Docs updated if behavior or API changed

BuiltinPresetId, the studio's BUILTIN_PRESETS_IDS and the landing theme lab derive from BUILTIN_PRESETS; HeroStage's curated six is typed satisfies BuiltinPresetId. Fail before: the new preset-ids-source guard lists 4 modules that hand-list the ids; pass after (83 related tests, svelte-check 0 errors). Closes #654
@mvilacad
mvilacad force-pushed the fix/654-refactor-tokens-presets-ts-derives-every branch from 9bf0c32 to 5855e5f Compare October 26, 2026 01:13
@mvilacad
mvilacad marked this pull request as ready for review October 26, 2026 01:13
@mvilacad
mvilacad merged commit 3c9d1b1 into main Oct 26, 2026
@mvilacad
mvilacad deleted the fix/654-refactor-tokens-presets-ts-derives-every branch October 26, 2026 01:13
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.

refactor: tokens/presets.ts derives every preset field from builtins.ts

1 participant