Open
Conversation
…Id type, promote payload declaration
|
Preview deployment: https://endpoint-new-tenant.preview.avy-fx.org |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Automates the entire tenant onboarding workflow. Creating a new tenant in the admin panel now automatically provisions all default data (settings, pages, navigation, etc.) and displays an interactive onboarding checklist on the tenant edit page to track progress.
Related Issues
Fixes #533
Key Changes
POST /api/tenants/provision) — creates a tenant and provisions all default data in one call. Can also be triggered via theprovisionAfterChangehook on tenant creation.ChecklistItem-based component on the tenant edit page showing status of all automated and manual steps, with a "Rerun Provisioning" button if anything is incomplete.onboardingActions.ts) — checks provisioning status by querying all relevant collections and inspectingcolors.cssandcenterColorMapfor theme setup.removeIdKeyutility — stripsidkeys from deeply nested objects when copying template pages to avoid ID collisions.skipProvision: truecontext toupsertGlobalsto prevent auto-provisioning during seeding.docs/onboarding.md— rewrote to reflect automated workflow, added CSS variable reference table for theme setup.How to test
pnpm seedto get a fresh database with the template tenant (DVAC)Screenshots / Demo video
if nothing runs correctly

Need to do manual actions

Full set up

https://www.loom.com/share/7ba0486274454cff97b273f3880c358d
Migration Explanation
No schema changes — no migration needed.
Future enhancements / Questions
beforeDeletecleanup hook and confirmation prompt.