fix(tickets): show ticket number + title in detail header, not the UUID #87
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/mapps-ticket-detail-title"
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
The ticket detail header (
/tickets/:id) displayed the raw route UUID, e.g. "Ticket ff221b4d-527c-4947-a5c9-1c53d66c1c59", in both the page header and the browser tab. It now shows the ticket's human label.Why
TicketDetailPagecomputedheader_title = format!("Ticket {}", props.id), andRemoteTicketDetailnever deserialized the ticket'sticket_number/title, so the name wasn't available to render.How
ticket_numberandtitle(both#[serde(default)]) toRemoteTicketDetail."<ticket_number>: <title>"when both are present, the baretitleif the number is empty,"Ticket <id>"only as a fallback when the title is missing, and"Loading…"while the fetch is in flight.Verification
cargo fmt --checkclean;cargo clippy --target wasm32-unknown-unknown --all-targets -- -D warningsclean.🤖 Generated with Claude Code
The ticket detail header read `format!("Ticket {}", props.id)`, so it rendered the raw route UUID (e.g. "Ticket ff221b4d-527c-4947-a5c9-1c53d66c1c59") in both the page header and the browser tab. `RemoteTicketDetail` never deserialized the ticket's `ticket_number` or `title`, so they weren't available to display. Deserialize `ticket_number` and `title` on `RemoteTicketDetail` and derive the header from the fetched ticket: "<ticket_number>: <title>" when both are present, the bare title if the number is empty, "Ticket <id>" only as a fallback when the title is missing, and "Loading…" while the fetch is in flight. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>