Skip to content

feat(demo-admin-dashboard): add reusable demo message template library#1271

Open
Maximum-Prosper wants to merge 2 commits into
Stellar-Mail:mainfrom
Maximum-Prosper:codex/demo-admin-dashboard-template-library-207
Open

feat(demo-admin-dashboard): add reusable demo message template library#1271
Maximum-Prosper wants to merge 2 commits into
Stellar-Mail:mainfrom
Maximum-Prosper:codex/demo-admin-dashboard-template-library-207

Conversation

@Maximum-Prosper

Copy link
Copy Markdown

Closes #207

Changes

  • Added a reusable demo message template library inside src/features/demo-admin-dashboard/.
  • Introduced template scenario metadata to group templates into reviewer-friendly flows.
  • Added an in-memory template registry with deterministic lookup and duplicate-id protection.
  • Added deterministic template fixtures derived from templates and scenario metadata.
  • Exported the new library pieces from the feature root for local consumers.
  • Added local documentation for the template library and linked it from existing dashboard docs.
  • Added tests for template scenario mapping, registry behavior, and fixture determinism.

Testing

  • git diff --check
  • Added/updated Vitest coverage in:
    • src/features/demo-admin-dashboard/__tests__/messageTemplates.test.ts
    • src/features/demo-admin-dashboard/__tests__/templateRegistry.test.ts
    • src/features/demo-admin-dashboard/__tests__/templateFixtures.test.ts

Notes

  • All changes stay inside src/features/demo-admin-dashboard/.
  • No main app, routing, or production inbox wiring was added.

@Maximum-Prosper

Maximum-Prosper commented Jun 26, 2026

Copy link
Copy Markdown
Author

@kryputh Please kindly review and merge

@Maximum-Prosper

Copy link
Copy Markdown
Author

@kryputh Please kindly review and merge.

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.

Add message template library

1 participant