fix(tickets): show ticket number + title in detail header, not the UUID #87

Merged
longjacksonle merged 1 commit from fix/mapps-ticket-detail-title into main 2026-06-07 02:24:32 +02:00

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

TicketDetailPage computed header_title = format!("Ticket {}", props.id), and RemoteTicketDetail never deserialized the ticket's ticket_number / title, so the name wasn't available to render.

How

  • Add ticket_number and title (both #[serde(default)]) to RemoteTicketDetail.
  • 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.

Verification

cargo fmt --check clean; cargo clippy --target wasm32-unknown-unknown --all-targets -- -D warnings clean.

🤖 Generated with Claude Code

## 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 `TicketDetailPage` computed `header_title = format!("Ticket {}", props.id)`, and `RemoteTicketDetail` never deserialized the ticket's `ticket_number` / `title`, so the name wasn't available to render. ## How - Add `ticket_number` and `title` (both `#[serde(default)]`) to `RemoteTicketDetail`. - 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. ## Verification `cargo fmt --check` clean; `cargo clippy --target wasm32-unknown-unknown --all-targets -- -D warnings` clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(tickets): show ticket number + title in detail header, not the UUID
All checks were successful
Create release / Create release from merged PR (pull_request) Has been skipped
Check / clippy + fmt + tests (pull_request) Successful in 47s
c98f941543
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>
longjacksonle deleted branch fix/mapps-ticket-detail-title 2026-06-07 02:24:32 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/mokosh-apps!87
No description provided.