mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-26 14:54:55 +00:00
931 B
931 B
Implement Feature
Implement following MetaBuilder conventions:
Run app commands from frontends/nextjs/ unless a step says otherwise.
Implementation Order
-
Schema first: Update
prisma/schema.prismaif needednpm run db:generate && npm run db:push -
DBAL contracts: If new entity/operation, update YAML in
dbal/api/schema/ -
Database layer: Add methods to
Databaseclass insrc/lib/database.ts -
Business logic:
- Simple validation → Lua script
- Complex logic → TypeScript in
src/lib/
-
UI components:
- Declarative →
packages/*/seed/components.json - React →
src/components/(< 150 LOC)
- Declarative →
-
Tests: Parameterized tests next to source files
Checklist
- tenantId filtering on all queries
- Permission level check
- Component under 150 LOC
- No hardcoded values (use DB/config)
- Tests with
it.each()pattern