Repository navigation
Closed
Description
Summary & Intent
This issue consolidates the remaining unstarted product, UX, account-recovery, and privacy-consent decisions identified across prior FloCafe engineering sessions so @itsbkm has a single canonical decision & handoff checklist with verified origin/main (186bfe84) file and line citations.
Open Decisions & Verified origin/main Citations
1. Cashier Default Permission to Print Bills (shared/permissions.ts:170-176)
- Current Behavior on
main:- In
shared/permissions.ts:170-176,bills.printhasdefaultRoles: OWNER_MANAGER(excludingcashierby default), whereasbills.readandbills.take_paymentincludecashier. - Unless an owner manually grants
bills.printto a cashier, a default cashier role can settle a bill but receives403when attempting to print the customer receipt.
- In
- Decision for
@itsbkm:- Option A: Add
'cashier'tobills.printdefault roles inshared/permissions.ts:170-176(and migrate uncustomized cashier role defaults). - Option B: Keep
bills.printrestricted toOWNER_MANAGERby default.
- Option A: Add
2. Master-PIN Recovery When Zero Active Users Can Reach Administration (main/routes/auth.ts:576-645)
- Current Behavior on
main:POST /api/auth/recover-password(main/routes/auth.ts:576-645) allows resetting an owner's password or promoting a non-owner account only if!hasActiveAdministrator()(zero active owner/admin accounts exist).- If all active accounts are locked out or if zero active accounts exist in
users, recovery returns404 No active account found.
- Decision for
@itsbkm:- Option A: Keep the current strict boundary (
!hasActiveAdministrator()with at least one active user row required). - Option B: When a valid recovery Master PIN / recovery code is verified and zero active administrators exist, allow unlocking/reactivating the primary owner account even if it was marked inactive or locked.
- Option A: Keep the current strict boundary (
3. Diagnostics Telemetry Default Opt-In vs /setup Consent (main/db.ts:7281-7313)
- Current Behavior on
main:- Migration
110_enable_safe_diagnostics_transmission_once(main/db.ts:7281-7313) setsdiagnostics_transmission_enabled = 'true'automatically during database initialization before/setupcompletes. - Meanwhile, the initial
/setuponboarding flow (PR #1204) presents a telemetry consent toggle to the operator.
- Migration
- Decision for
@itsbkm:- Option A: Defer enabling outbound diagnostics transmission until
/setupis completed (or defaultdiagnostics_transmission_enabledto'false'until/setupsaves the operator's choice). - Option B: Keep migration 110's default
'true'with the/setupcheckbox pre-checked as an opt-out toggle.
- Option A: Defer enabling outbound diagnostics transmission until
4. Cross-References to Open UX Issues (#630, #643, #644)
The following UX decisions have also been updated with exact origin/main citations on their respective issues and assigned to @itsbkm:
- Issue #630 (
[UX] POS View):frontend/src/components/pos/CartPanel.tsx:98-103&frontend/src/store/cart.ts:161-165: Whether clicking-at quantity1should remain instant item deletion or be disabled (disabled={item.quantity <= 1}) in favor of the adjacent trash icon.frontend/src/hooks/usePosKeyboardShortcuts.ts:116-187: Phase 2 POS keyboard shortcuts (Spaceinstant tender vs payment modal confirmation, macOS function-key chords, and confirmation modal onAlt+Backspacecart clear).
- Issues #643 & #644 (
[UX] Active Orders&[UX] Order History):frontend/src/app/(dashboard)/orders/page.tsx:67, 170, 1535-1603: Whether the unified/ordersscreen should keep its 4 top-level tabs (all,active,unpaid,held) withcancelledin the status dropdown, or add a dedicated top-levelcancelled/completedtab.
Metadata
Metadata
Assignees
Labels
No labels
Activity
fix: resolve assigned issues 1235, 1236, 1237, 1238 and 277 (#1263)