fix(tickets): source list status filter from tenant ticket_statuses (MAPPS-295) #294
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!294
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/MAPPS-295-ticket-status-enum"
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 list page hardcoded
new/open/in_progress/pending/resolved/closedfor its Status filter, while the ticket detail page's inline-edit Status dropdown already fetched the tenant's configured set viaGET /tickets/statuses(PMS-359). The two views disagreed: a tenant whose workflow added "Waiting on Client / Waiting on Vendor / Scheduled" saw those on the detail page but could not filter for them on the list, and the list offered a "Pending" that did not exist on any record. SameGET /tickets/statusesis now the source of truth for both surfaces, so the filter shows the actual configured statuses and matches rows by the server-returned name (case-insensitive). Empty / offline fetch falls back to just the "All Statuses" placeholder, which is strictly better than fabricating slugs. Priority filter stays on the hardcoded four-level slug set for now (priority's tenant-config story still uses fixed levels).#MAPPS-295