From b070358446363d10871d97b2d21a6938454913f5 Mon Sep 17 00:00:00 2001 From: ngqile Date: Mon, 30 Nov 2026 17:58:47 +0800 Subject: [PATCH] docs: two companies at go-live, super admins see all Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM --- docs/feature-list.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/feature-list.md b/docs/feature-list.md index 585e075..9c2aa30 100644 --- a/docs/feature-list.md +++ b/docs/feature-list.md @@ -37,19 +37,18 @@ Source: whiteboard session (transcribed 2026-11-26). Items marked **[?]** were u ## Open Questions - Gamification prizes: none chosen yet (IPTV test kit, Omada, CCTV were ideas only). To be confirmed. -- INS and CV as tenants: does each test-run company need its own separate data (leads, events, users) at go-live, or do they share one company? ## Answered (2026-11-30) - **"Tastetuny"** on the board is Tastefully, the platform Co-Lite is cloned from. - **QR:** a QR code can carry different purposes: event details, an event check-in, and later other uses. Scanning does what the code is for. This improves on Tastefully's existing QR feature, which is only a starting point. -- **INS and CV** are the two companies that will use the system as a test run. +- **INS and CV** are the two companies that will use the system as a test run. Each sees only its own data at go-live; super admins see all (see Tenancy below). - **Left edge of the board:** nothing missing for now. ## Decisions (2026-11-26) - **Base:** Clone of Tastefully (`~/Projects/tastefully`, Solvway platform). -- **Tenancy:** Single company at go-live. No second company planned soon. New tables still carry a company id so a later SaaS move is a migration, not a rebuild. +- **Tenancy:** ~~Single company at go-live.~~ Changed 2026-11-30: two companies (INS and CV) at go-live, each seeing only its own data (leads, events, users and the rest). Super admins see every company's data. New tables carry a company id; admin APIs and screens must filter by it. - **Modules dropped:** MLM modules (bonus, stockist, tree, inventory, related jobs). - **Admin portal:** Rebuild as a Next.js admin portal, modelled on babyboo's `solvway-admin-portal` (shell, auth, roles, tables). The Tastefully Thymeleaf backoffice is ported over for reference only; it is not deployed or extended. - Every admin screen needs a JSON admin API in `mobile-api` (`/api/admin/**`). Tastefully has none today; babyboo's admin controllers for auth, users, roles, audit log and content are adaptable. Events, check-in, rewards and vouchers admin APIs must be built new.