feat(picker): inline '+ Create new contact' on ContactPicker (MAPPS-276) #312
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!312
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/MAPPS-276-picker-inline-create"
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?
Mirrors the CompanyPicker pattern (PMS-352): an
allow_inline_create: boolprop opts the picker into a "+ Create new contact" button in the empty-list and populated-list dropdown branches, plus an inline modal that POSTs/contacts/contactsand auto-selects the newly-created row via the existingonselectcallback. The modal seeds first/last from the typed query ("Jane Doe"-> first=Jane, last=Doe) so the form isn't blank when the user invokes it after typing. Inherits the picker'scompany_filterso the new contact lands attached to the company the parent form already picked (the New Ticket form's case).The New Ticket form opts in - this was the QA's specific dead-end (a tenant whose only contact wasn't in the picked company couldn't finish a New Ticket flow without leaving the form). Other ContactPicker call sites stay opt-out by default.
AssetPicker still needs the same affordance - parking that as a sibling follow-up under this ticket. The Asset create form is heavier (asset type lookup, serial / tag, etc.) so a stripped inline modal is less obviously the right UX; recommend reviewing that one before adding it.
#MAPPS-276