Commit Graph

12 Commits

Author SHA1 Message Date
kevin-asprec
c14521a41d fix: add collector role to API endpoints for mobile dashboard access
Collector users were blocked from ticket, payment, invoice, and client
endpoints requiring 'technician' role. Added 'collector' to @Roles
decorators and the COLLECTOR role to the shared role hierarchy.
2026-05-06 02:15:20 +08:00
kevin-asprec
83ad0cb8d5 fix: resolve TS compilation errors for dev deployment
- Add latitude/longitude Float fields to Client model in schema.prisma
- Rewrite dashboard controller (remove duplicate const data, use getRecentActivity)
- Remove invalid files field from ticket comment create
- Add migration for client coordinates
2026-05-06 01:02:43 +08:00
kevin-asprec
469fa6bb28 feat: add more seed data - 15 clients, 15 tickets with varied statuses 2026-05-04 18:42:16 +08:00
kevin-asprec
40f30b4a5d fix: resolve TS build errors - missing schema fields, types, and packages
- Add mustChangePassword field to User model in schema.prisma
- Add latitude/longitude fields to Client model (matching existing migration)
- Remove @nestjs/serve-static import from app.module (not in dependencies)
- Add @types/multer to devDependencies and type multer config explicitly
- Create migration for mustChangePassword column

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-04 17:39:01 +08:00
kevin-asprec
bb3baeb6ac fix: add missing TicketComment reverse relation on Tenant model 2026-05-04 17:16:28 +08:00
kevin-asprec
555327a891 feat: add TicketComment, TicketAttachment models + notification ticketId 2026-05-04 16:36:55 +08:00
kevin-asprec
d7ab370bb5 chore: sync seed with overdue invoices for new signups 2026-05-04 14:55:55 +08:00
kevin-asprec
3b032ab7c4 feat: add latitude/longitude columns to tickets table 2026-05-04 14:36:51 +08:00
kevin-asprec
bef320f32e feat: add RUN_SEED support and nullable tenantId migration
- New migration: make users.tenantId nullable for super_admin
- Dockerfile: RUN_SEED=true env var triggers seed after migrations
- Seed uses npx tsx (available in node_modules)
2026-04-15 06:04:57 +08:00
kevin-asprec
555bd4a9f8 fix: compile shared package as CommonJS for NestJS compatibility 2026-04-13 16:52:48 +08:00
kevin-asprec
2f4323ebea fix: standalone tsconfig and Dockerfile for monorepo split 2026-04-13 12:04:24 +08:00
kevin-asprec
4a8f1e9318 initial: standalone repo from monorepo split 2026-04-13 09:36:55 +08:00