-
Notifications
You must be signed in to change notification settings - Fork 1
dynamic templates #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
@proofkit/better-auth
@proofkit/cli
create-proofkit
@proofkit/fmdapi
@proofkit/typegen
@proofkit/webviewer
commit: |
…nhance handlebars processing. Introduce new post-install steps for templates, update metadata structure, and improve error handling in template installation. Add support for dynamic route names in static components and ensure compatibility with Shadcn. Update dependencies and template paths for better consistency.
2a2317b to
b7c2f72
Compare
|
Caution Review failedThe pull request is closed. WalkthroughIntroduces a beta pre-release across packages. Overhauls CLI to gate Mantine vs Shadcn flows, add route/schema-aware registry installs with Handlebars rendering, Next.js detection, env discovery, and navigation updates. Updates registry schemas/APIs for Handlebars and routeName, adds new table/page templates, adjusts docs route, and refreshes the Shadcn Next.js template. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Dev as Developer
participant CLI as ProofKit CLI
participant State as Project State
participant Reg as Registry Service
participant FS as Filesystem
participant Nav as Navigation Config
Dev->>CLI: proofkit add page/basic
CLI->>State: load settings (ui, dataSources, projectDir)
alt ui == "shadcn"
CLI->>Dev: prompt routeName (/customers)
opt template requires schema
CLI->>Dev: select data source + schema
end
CLI->>Reg: GET /r/.../table/basic.json?routeName
Reg-->>CLI: Template + files (handlebars-encoded)
CLI->>CLI: build Handlebars data (settings, schema)
CLI->>FS: render files to src/app/__PATH__/
CLI->>Nav: add primary nav entry (label=pageName, href=/route)
CLI->>CLI: run postInstall steps (deduped)
CLI-->>Dev: Done
else ui != "shadcn"
CLI-->>Dev: Fallback/add flow (unchanged)
end
sequenceDiagram
autonumber
participant Browser
participant Docs as Docs Route /r/[...name]
participant Reg as @proofkit/registry
participant Origin as Request URL Origin
Browser->>Docs: GET /r/.../registry.ts?routeName
Docs->>Docs: parse routeName (decode/normalize)
Docs->>Reg: getStaticComponentForShadcn(path, { routeName })
Reg-->>Docs: RegistryItem (files, registryDependencies)
Docs->>Docs: replace {proofkit} with Origin in dependencies
Docs-->>Browser: 200 JSON (or 404 on error)
Estimated code review effort🎯 5 (Critical) | ⏱️ ~120 minutes Possibly related PRs
Suggested reviewers
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (70)
✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
Status, Documentation and Community
|

dynamic templates
simplify settings
better cli
Refactor CLI and registry templates to support schema selection and enhance handlebars processing. Introduce new post-install steps for templates, update metadata structure, and improve error handling in template installation. Add support for dynamic route names in static components and ensure compatibility with Shadcn. Update dependencies and template paths for better consistency.
update changeset
update to beta
Summary by CodeRabbit
New Features
Changes
Documentation
Chores