fix(tickets): asset inline-edit Change opens search picker without server roundtrip (PMS-344 follow-up) #194
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!194
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/pms-344-asset-inline-change-opens-search"
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 sidebar's Asset row showed the chip-with-Change pattern from the AssetPicker, where Change fired the parent's onclear. On the local-state pickers (New Ticket / New Contact CompanyPicker) that pattern works because the chip view re-renders into the search input as soon as the parent signal flips to empty. On the server-state inline editor introduced by PMS-344, onclear PUTs asset_id=null and the picker only swaps to search mode after the ticket-resource refetch completes, which to the user reads as "Change does nothing visible" - the verification round found zero inputs/comboboxes/popovers in the DOM after clicking Change, only the silent Updated change-history entry from the PUT.
Added an internal
editingsignal to the AssetPicker so Change toggles the search input locally without firing onclear or hitting the server. The async PUT now happens only when the user actually picks a replacement asset (or hits the separate Unassign button if they want to clear the association without picking a new one). The Unassign affordance is new on the chip view to preserve the previous clear-the-link capability that onclear used to provide directly via Change.#PMS-344