Matt Ciaccio
727e323288
feat(seed): rewrite seed for multi-cardinality refactor
...
Split seed into orchestrator (seed.ts) + per-port fixture builder
(seed-data.ts). Creates three ports (Port Nimara, Marina Azzurra,
Harbor Royale) and seeds each with a realistic multi-cardinality
dataset: 12 berths (5 available / 5 reserved / 2 sold), 8 clients
with contacts and primary addresses, 3 companies (2 active / 1
dissolved) with billing addresses, memberships exercising dual-
company ownership and ended state, 12 yachts (7 client-owned /
5 company-owned) plus matching open ownership-history rows, 3
completed ownership transfers per port (client <-> company), 15
interests spanning all pipeline stages, and 8 reservations (5
active on distinct berths / 2 ended / 1 cancelled). Seed wraps
per-port work in withTransaction and is idempotent: re-running
detects existing company rows and skips.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-04-24 13:26:37 +02:00
Matt Ciaccio
f743169354
feat(permissions): add yacht, company, membership, reservation keys
2026-04-24 12:30:06 +02:00
Matt Ciaccio
077ba5bf6b
feat(schema): wire yacht, company, reservation relations in Drizzle
2026-04-23 18:02:22 +02:00
Matt Ciaccio
14dac2f3e1
feat(documents): add yachtId/companyId to files and documents
2026-04-23 18:00:12 +02:00
Matt Ciaccio
117cfae52e
feat(invoices): add billingEntityType/Id for polymorphic billing
2026-04-23 17:58:52 +02:00
Matt Ciaccio
d43298a74e
feat(schema): add yachtId to interests and berth_waiting_list
2026-04-23 17:57:29 +02:00
Matt Ciaccio
88a87afa77
feat(reservations): add berth_reservations schema with partial unique exclusivity
2026-04-23 17:55:53 +02:00
Matt Ciaccio
299e893e2b
feat(companies): add companies, memberships, addresses, notes, tags schema
2026-04-23 17:54:02 +02:00
Matt Ciaccio
51523e6768
feat(yachts): add yachts, ownership history, notes, tags schema
2026-04-23 17:51:19 +02:00
f90dba036f
feat: add partial unique index for single primary address per client
...
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-04-14 12:51:45 -04:00
59dd418542
feat: add client_addresses table for multi-address storage
...
Adds client_addresses table with cascade deletes, port scoping, primary address flag, and indexes. Updates clientsRelations and portsRelations, adds clientAddressesRelations. Generates migration 0000_narrow_longshot.sql.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-14 12:44:11 -04:00
082d4f20e3
Fix all TypeScript errors: restore proper types and typed route casts
...
Build & Push Docker Images / lint (push) Successful in 1m16s
Build & Push Docker Images / build-and-push (push) Failing after 4m42s
- Restore `as any` casts for Next.js typedRoutes on dynamic routes
- Use proper types for PDF templates, invoice/expense data, DB schema
- Fix PgColumn casts in sort helpers for expenses/invoices
- Add null guards for optional port/client in record-export
- Fix vitest config (remove invalid poolOptions)
- Lint: 0 errors, TypeScript: 0 errors
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-26 12:29:55 +01:00
4c20bcffcd
Fix all ESLint errors: remove unused imports, replace any types
...
Build & Push Docker Images / lint (push) Failing after 1m10s
Build & Push Docker Images / build-and-push (push) Has been skipped
Build & Push Docker Images / deploy (push) Has been skipped
- Remove ~60 unused imports and variables across 88 files
- Replace ~80 `any` type annotations with proper types (unknown,
Record<string, unknown>, or specific types)
- Prefix unused callback args with underscore
- Fix unescaped JSX entities
- Lint now passes cleanly (0 errors, 2 intentional img warnings)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-26 12:06:18 +01:00
67d7e6e3d5
Initial commit: Port Nimara CRM (Layers 0-4)
...
Build & Push Docker Images / build-and-push (push) Has been cancelled
Build & Push Docker Images / deploy (push) Has been cancelled
Build & Push Docker Images / lint (push) Has been cancelled
Full CRM rebuild with Next.js 15, TypeScript, Tailwind, Drizzle ORM,
PostgreSQL, Redis, BullMQ, MinIO, and Socket.io. Includes 461 source
files covering clients, berths, interests/pipeline, documents/EOI,
expenses/invoices, email, notifications, dashboard, admin, and
client portal. CI/CD via Gitea Actions with Docker builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-26 11:52:51 +01:00