You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add comprehensive case utilities to handle naming conventions:
- Config list names: PascalCase (AuthUser, BlogPost)
- Prisma models: PascalCase (AuthUser, BlogPost)
- Prisma client properties: camelCase (authUser, blogPost)
- Context db properties: camelCase (authUser, blogPost)
- URLs: kebab-case (auth-user, blog-post)
This fixes the bug where multi-word list names like "AuthUser" would
become "authuser" instead of "authUser" when accessing the database.
Changes:
- Add case-utils.ts with conversion utilities
- Update context to use getDbKey() for camelCase conversion
- Update UI components to use getDbKey() instead of toLowerCase()
- Export case utilities from @opensaas/core
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments