feat(tickets,assets): bidirectional asset/ticket link (PMS-344) #190
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
psa-systems/mokosh-apps!190
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/pms-344-asset-picker-and-related-tickets"
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?
Tickets can now be associated with assets and the link is surfaced from both sides. The New Ticket form mounts a reusable AssetPicker beside the Priority Select so the technician can attach the asset when filing. The ticket detail sidebar gains an inline editor that fires PUT /tickets/{id} with
asset_id, matching the inline status/priority/assignee editors from PMS-359; clearing the picker sends null so the server unsets the association. The asset detail page gains a "Related Tickets" card that fetches GET /tickets?asset_id=, rendering each ticket as a click-through link with its number, title, status and priority. The reusable AssetPicker mirrors CompanyPicker (search + click-to-select dropdown, selected-chip state with Change button) and intentionally omits an inline-create affordance, since asset creation is heavier than company creation and is better done from the Assets page proper.#PMS-344
Tickets can now be associated with assets and the link is surfaced from both sides. The New Ticket form mounts a reusable AssetPicker beside the Priority Select so the technician can attach the asset when filing. The ticket detail sidebar gains an inline editor that fires PUT /tickets/{id} with `asset_id`, matching the inline status/priority/assignee editors from PMS-359; clearing the picker sends null so the server unsets the association. The asset detail page gains a "Related Tickets" card that fetches GET /tickets?asset_id=<id>, rendering each ticket as a click-through link with its number, title, status and priority. The reusable AssetPicker mirrors CompanyPicker (search + click-to-select dropdown, selected-chip state with Change button) and intentionally omits an inline-create affordance, since asset creation is heavier than company creation and is better done from the Assets page proper. #PMS-344