feat: add pre-flight config validation for silently skipped features#100
Open
feat: add pre-flight config validation for silently skipped features#100
Conversation
… features Template handlers silently skip features when config combinations are incompatible (e.g., CMS with non-Next.js frontend, Search with Convex backend). Users get zero feedback — selected features simply don't appear in the generated project. Adds a pre-flight validation layer using Effect-ts that runs after config assembly and before template generation, warning users about features that won't produce output. Covers 20+ silent failure scenarios across search, file storage, job queue, email, logging, observability, CMS, payments, analytics, feature flags, API, and database handlers. - CLI: yellow warning box between config assembly and generation - Web: collapsible warning banner in the preview panel - 52 tests covering all rules, edge cases, and multiple warnings
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
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.
Summary
Data.Classfor immutable warnings,Array.filterMap+Optionfor rule evaluationFiles changed
packages/template-generator/src/preflight-validation.tspackages/template-generator/src/index.tspackages/template-generator/package.jsoneffectdependencyapps/cli/src/utils/preflight-display.tsapps/cli/src/helpers/core/command-handlers.ts--yesand interactive pathsapps/web/src/components/stack-builder/preview-panel.tsxapps/cli/test/preflight-validation.test.tsTest plan
bun test apps/cli/test/preflight-validation.test.ts— 52/52 passbun run test:release— snapshots, CLI-builder sync, preview configs all passbun run lint— 6/6 packages pass--cms payload --frontend nuxt --backend honoand verify warning appears