Skip to content

feat(templates): add a template store for each tenant - #1699

Merged
viethung0o0 merged 2 commits into
mainfrom
feat/template-store
Nov 11, 2026
Merged

viethung0o0 merged 2 commits into
mainfrom
feat/template-store

Conversation

@viethung0o0

@viethung0o0 viethung0o0 commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Admins approve templates into a public store, in categories or with none. A picker finds templates by name or ID, and category chips sit above the table.
  • Each white-label tenant has its own store, managed in /admin (platform) or /manage (reseller). A reseller's store opens on their own domain.
  • New public /store page with search, category filter and an "All" view. A card opens the template page with Install.
  • New read-only API GET /v1/template-store so agents can list the store and install from it.
  • A template with no category is still published and shows under "All".
  • One migration adds three tables. Management has no API, as platform administration is exempt from the API rule.
  • A platform credential that cannot be decrypted now reads as not set instead of breaking the page, and settings writes stop when it cannot be read.

Test plan

  • Real-Postgres tests: tenant isolation, concurrent adds, limits, category order, share-link expiry, candidate search
  • Tests for action permissions (super admin without a tenant on cloud), the public API and /store search
  • Lint, i18n check, type check
  • Checked in the browser: admin page, template picker, categories, /store
  • Try /manage/template-store as a reseller
  • Apply the new database migration before deploying

@github-actions github-actions Bot added the feature New feature or request label Nov 11, 2026
@viethung0o0
viethung0o0 force-pushed the feat/template-store branch 2 times, most recently from 37696ad to a0336f9 Compare November 11, 2026 08:20
Admins approve templates into categories, and the public /store page lists them. Each white-label tenant has its own store.

A platform credential that cannot be decrypted now reads as not set instead of breaking the page, and settings writes stop when it cannot be read.
@viethung0o0
viethung0o0 marked this pull request as ready for review November 11, 2026 08:56
@viethung0o0
viethung0o0 merged commit 039ba6b into main Nov 11, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants