fix(tickets): show "Ticket not found" instead of infinite loading on 404 #210
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/mapps-198-ticket-detail-not-found"
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?
The ticket detail page read its resource with
.flatten(), which collapsesthe in-flight state (
None) and the failed-fetch state (Some(None)) into asingle
None. The header and body sections all renderNoneas "Loading…",so opening a missing, deleted, or cross-tenant ticket id hung on a perpetual
"Loading…" skeleton with no error and no way back.
Capture the failure before flattening and short-circuit to a "Ticket not
found" card with a link back to the ticket list, mirroring the explicit
Some(None)arm already used on the invoice, contract, and company detailpages. In-flight fetches still show the loading skeleton and successfully
loaded tickets render unchanged.
#MAPPS-198