-
-
Notifications
You must be signed in to change notification settings - Fork 19
chore: improve "npm create zenstack" template #491
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
WalkthroughThe pull request updates the import path for SqliteDialect from 'kysely' to '@zenstackhq/orm/dialects/sqlite' and renames the client instance variable from Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (6)📓 Common learnings📚 Learning: 2025-11-26T01:55:04.540ZApplied to files:
📚 Learning: 2025-11-26T01:55:04.540ZApplied to files:
📚 Learning: 2025-11-26T01:55:04.540ZApplied to files:
📚 Learning: 2025-11-26T01:55:04.540ZApplied to files:
📚 Learning: 2025-11-26T01:55:04.540ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Claude finished @ymc9's task —— View job Pull Request Review ✅Reviewing the changes in this PR to improve the "npm create zenstack" template. Review Checklist:
Changes Summary:The PR makes 3 key improvements to the template's TypeScript starter code:
Review Feedback✅ Code Quality & Best Practices
✅ Bug Fixes
✅ Performance Considerations
✅ Security Concerns
✅ Test Coverage Impact
💡 Recommendations
Overall AssessmentThis is a high-quality improvement that fixes a critical bug in the starter template. The changes are minimal, focused, and address real usability issues that would block new users. The import correction is essential for ZenStack v3 compatibility. Recommendation: ✅ Approve and merge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR improves the "npm create zenstack" starter template by modernizing the imports and naming conventions. The changes align the template with ZenStack's ecosystem conventions and improve code clarity.
Key changes:
- Updated SqliteDialect import to use ZenStack's re-export path instead of direct kysely import
- Renamed ZenStackClient instance from 'client' to 'db' for better alignment with common conventions
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.