Skip to content

feat: centralized resource registry#5

Open
zmuhls wants to merge 2 commits intomainfrom
feat/resource-registry
Open

feat: centralized resource registry#5
zmuhls wants to merge 2 commits intomainfrom
feat/resource-registry

Conversation

@zmuhls
Copy link
Copy Markdown
Contributor

@zmuhls zmuhls commented Apr 12, 2026

Summary

  • Add templates.ts store and resources.ts unified aggregator for consistent fetch-once resource management
  • Extend themes.ts with createTheme() / deleteTheme() CRUD helpers, eliminating inline fetch+store-update duplication in CanvasToolbar
  • Rewire 5 consumers (TemplatesTab, ArtifactsTab, ChatInput, mutations.ts, CanvasToolbar) to use centralized stores instead of 9 scattered fetch calls
  • Fix 18 pre-existing type errors across 6 files (ZoneDrop, SlideCard, RichTextEditor, ChatPanel, mutations, debug page) — svelte-check now reports 0 errors
  • Rename resource panel label 'Tmpl' → 'Templates'

Test plan

  • Templates tab loads and apply-to-slide works
  • Artifacts tab loads and insert-into-slide works
  • Theme picker: create custom theme, delete custom theme
  • Chat @ mentions show both artifacts and templates in autocomplete
  • AI applyTemplate mutation + undo/redo still works
  • npx vitest run — 613 tests pass
  • npx svelte-check --threshold error — 0 errors

zmuhls added 2 commits April 11, 2026 23:36
add templates store, theme crud helpers, unified resources aggregator.
rewire 5 consumers to use stores instead of scattered fetches. rename
tmpl to templates in resource panel. fix type errors across zonedrop,
slidecard, richtexteditor, chatpanel, mutations, and debug page.
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