mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-06 06:32:05 +00:00
All six vendor-portal dispatch mutation hooks lacked meta.suppressErrorToast, so a failed checklist toggle, signoff, comment, or uplift request/withdraw/ revise raised both the global MutationCache toast (leaking the raw server message) and the section's own inline error, contradicting this ticket's "no behavior change" goal versus main's try/catch-only handling. Also fixes a related gap in checklist-section.tsx: updateItem.isError only reflects the latest call on the shared mutation observer, so a failed toggle whose item was not the most recent click showed no error at all. Tracks failure locally instead, mirroring main's per-call error state. Added regression coverage with the app's real query client (createAppQueryClient) for comments, signoff, and uplift withdraw, asserting the inline message shows and the global toast does not fire; plus a mixed pass/fail concurrent-toggle case for the checklist. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| accounts | ||
| assets | ||
| auth | ||
| calendar | ||
| contacts | ||
| dashboard | ||
| employees | ||
| follow-ups | ||
| locations | ||
| notifications | ||
| pm-schedules | ||
| services | ||
| settings | ||
| team-members | ||
| uplifts | ||
| vendor-operations | ||
| vendor-portal | ||
| vendor-pos | ||
| vendors | ||
| work-orders | ||