Commit Graph

26 Commits

Author SHA1 Message Date
kdaniel2410 a6818607c8 fix: enforce room type scheduling rules 2026-06-26 11:36:51 +01:00
kdaniel2410 e1e2e94bf2 feat: manage invoice lifecycle 2026-06-25 12:16:06 +01:00
kdaniel2410 b71bb98389 Merge pull request 'feat: prevent room scheduling conflicts' (#3) from codex/booking-availability-guards into main
Reviewed-on: #3
2026-06-25 11:14:03 +00:00
kdaniel2410 44165e39b1 fix: show latest invoice in billing trend 2026-06-25 11:50:24 +01:00
kdaniel2410 3642ecfba6 refactor: use date-fns for dashboard dates 2026-06-25 11:48:18 +01:00
kdaniel2410 fe083ffaea fix: balance dashboard reporting cards 2026-06-25 11:46:34 +01:00
kdaniel2410 77cbb1d8d7 feat: build dashboard overview UI 2026-06-25 11:40:09 +01:00
kdaniel2410 9f8675fb30 feat: add dashboard reporting load 2026-06-25 11:40:04 +01:00
kdaniel2410 17f36e6378 feat: guard room availability writes 2026-06-25 11:39:44 +01:00
kdaniel2410 cac9d0e04d update: split workspace pages into reusable components 2026-06-24 23:31:04 +01:00
kdaniel2410 5654d3d570 chore: tidy project guidance and client copy 2026-06-24 18:07:27 +01:00
kdaniel2410 49c863510d fix: repair room type field label context 2026-06-24 18:07:27 +01:00
kdaniel2410 f0ec055725 feat: scope organization access by memberships 2026-06-24 18:07:27 +01:00
kdaniel2410 2339fa02f8 chore: refresh types and formatting 2026-06-24 13:56:41 +01:00
kdaniel2410 44bfb083f9 feat: add billing and organization workflows 2026-06-24 13:53:52 +01:00
kdaniel2410 4fd81c923b feat: add runed-backed list search 2026-06-24 13:40:09 +01:00
kdaniel2410 1ea8ce2135 refactor: centralize form and record helpers 2026-06-24 13:40:01 +01:00
kdaniel2410 7c57a22a3c feat: manage organizations from switcher
Rename the centre switcher to organization switcher and wire it to loaded organizations.

Add dropdown actions for switching organizations, creating a new organization, and editing the active organization in dialogs.

Persist organization changes through dashboard endpoints while preserving the current redirect path.
2026-06-06 14:14:20 +01:00
kdaniel2410 cbd2fb2921 refactor: scope dashboard records by organization
Attach clients, rooms, services, bookings, contacts, addresses, invoices, and contracts to organizations.

Filter dashboard loads and related option lists by the active organization from the session.

Ensure create, update, and archive actions only affect records in the active organization.
2026-06-06 14:14:12 +01:00
kdaniel2410 b5ba84b19f feat: add organization context model
Introduce organizations as the top-level workspace model with address and bank-detail fields.

Store the active organization on Better Auth sessions and load organization context for dashboard routes.

Add the migration that creates organizations and backfills existing records to the default organization.
2026-06-06 14:14:00 +01:00
kdaniel2410 ee98b7147c feat: migrate admins to better auth roles 2026-06-05 23:55:45 +01:00
kdaniel2410 dd7eb028db chore: allow admin self actions for testing 2026-06-05 23:39:02 +01:00
kdaniel2410 696641bfc0 fix: show admin row action menus uniformly 2026-06-05 23:38:06 +01:00
kdaniel2410 f3e4f42272 feat: add room and service management 2026-06-05 23:25:44 +01:00
kdaniel2410 631a5112f4 feat: add client workspace management 2026-06-05 23:25:36 +01:00
kdaniel2410 930e83344c feat: add dashboard shell and shared components 2026-06-05 23:25:30 +01:00