fix(ui): remove fabricated demo data from the portal home #471
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/MAPPS-403-gate-demo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Remove the fabricated demo blocks from the portal home: the "Welcome back, Bob" name, the three invented stat cards, and the demo ticket/invoice lists. Replace with a neutral placeholder; keep the real Quick Actions links. Delete the now-dead PortalTicketItem/PortalInvoiceItem.
Why
The home shipped invented counts and fake TKT-/INV- rows to real clients. Per the MAPPS-403 decision, feature-gate (hide) rather than wire to the API (deferred). MAPPS-399 F17.
Note
The portal list pages (PortalTicketListPage / PortalInvoiceListPage) still carry their own demo rows - out of this home-scoped ticket, tracked as a follow-up.
Closes MAPPS-403.
PortalHomePage shipped hardcoded demo data to real clients: a "Welcome back, Bob" greeting, three invented stat cards (Open Tickets "3" / Pending Invoices "1" / Outstanding Balance "$2,500"), and demo ticket/invoice lists (TKT-1234, INV-2025-001). Per the MAPPS-403 decision, feature-gate (hide) the fabricated blocks rather than wire them to the API (backend-dependent, deferred). Drop the invented name (the portal identity is a contacts row behind the portal session token, not the agent use_auth CurrentUser, so no display name is available client-side; greeting is generic). Remove the three stat cards and both demo lists, replaced by one neutral placeholder ("Your tickets and invoices will appear here."). Keep the Quick Actions nav links (real). Remove the now-unused PortalTicketItem / PortalInvoiceItem components (confirmed no other call sites). Found by the 2026-08-04 UI audit (MAPPS-399), finding F17. Note: the separate portal LIST pages (PortalTicketListPage / PortalInvoiceListPage) also carry their own hardcoded demo rows; those are out of this ticket's home scope and tracked as a follow-up. #MAPPS-403 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>