fix(contacts): detail titles, hide Edit, demote stats (PMC-41) #31
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/pmc-41-contacts-ui"
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?
Summary
Closes PMC-41 (Contacts/companies UI). PMC-42/43/44/45 were closed in the audit pass; the remaining valid sub-tasks land here as one combined commit since the edits are tightly intertwined on the same two detail pages.
Company {props.id}/Contact {props.id}instead of hardcoded "Acme Corp" / "Bob Johnson"./tickets?company=:idfilter to back the apparent affordance.Test plan
cargo check --features webclean/companies/fooshows "Company foo" header; New Ticket button present, Edit gone/contacts/barshows "Contact bar" header; Edit gone🤖 Generated with Claude Code
CompanyDetailPage and ContactDetailPage hardcoded "Acme Corp" / "Bob Johnson" headers regardless of the route, and the Edit header button had no onclick. Switch the headers to "Company {props.id}" / "Contact {props.id}" so navigation reflects the route, and hide the Edit affordance per the F5 pattern until the contacts mutation surface ships. The Open Tickets statistic on CompanyDetailPage was styled link-blue but was a bare span, so it looked clickable and wasn't. There's no /tickets?company=:id filter to wire it to yet, so drop the blue styling and render it as a plain stat. PMC-47: the contacts and recent-tickets sub-tables on CompanyDetailPage already wrap names in Link components pointing to ContactDetail / TicketDetail (lines 388-422 / 447-468). ContactDetailPage's sidebar already links its Company back to CompanyDetail. No remaining dead row clicks; sub-task validated as resolved in main. #PMC-46 State Done #PMC-47 State Done #PMC-48 State Done #PMC-49 State DonePull request closed