fix(portal): replace hardcoded demo rows with honest empty states #472
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/MAPPS-414-portal-list-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?
Removes the hardcoded demo rows that
PortalTicketListPageandPortalInvoiceListPageshipped to real signed-in clients (TKT-/INV- numbers, fabricated$2,500.00amounts, decorative "View"/"Pay Now" buttons). This is the same fabricated-data-to-clients defect MAPPS-403 fixed onPortalHomePage, on two surfaces the 2026-08-04 UI audit's F17 did not cover.Changes
PortalTicketListPage: the three static demo tickets are replaced with an honest "No tickets yet." empty state in aCard, matching the merged MAPPS-403 placeholder style. The header and "New Ticket" nav button are unchanged.PortalInvoiceListPage: the three demo invoice rows (fabricated amounts + decorative buttons) are replaced with "No invoices yet."PortalTicketRowcomponent and its props, and drops the orphanedticket_status_badgeimport (still used by tickets.rs / dashboard.rs via their own imports).use_resource+get_portal_authed+use_server_reachable, mirroringPortalInvoiceDetailPage(feature-gate now, wire later).Verification
Diff-reviewed (no local cargo on this box): no
TKT-/INV-/$-amount literals remain in either page, and no import is orphaned by the deletions (every kept table/badge/button symbol still has a usage in portal.rs). CI runs fmt/clippy/wasm-build/tests.#MAPPS-414