shoc-frontend-new/src/domain/locations
Alexandre Brandizzi 301fe44b0c fix(workorders): Site dialog loads legacy site contacts and locks fields while saving
A site saved before the contacts list existed maps with no contacts, only
the legacy contact/phone fields. The site-record sync read the contacts
list alone, so the dialog blanked the POC, blocked a notes-only Save until
the contact was retyped, and when the work order had no POC the legacy
autofill made the diff report a contact edit nobody made. The legacy
contact is now the site's main contact for display, baseline and request.

Save sends the values it had when clicked, so the dialog's fields are now
disabled while the site update is in flight instead of accepting edits
that neither save would include.

The site-update mutation already toasts its own failure, so it sets
meta.suppressErrorToast and the global mutation toast no longer repeats it.
2026-09-25 19:52:03 -03:00
..
api Merge remote-tracking branch 'origin/main' into feat/ab/sh-335-wo-site-dialog 2026-09-25 17:34:41 -03:00
mappers Merge remote-tracking branch 'origin/feat/ab/sh-331-sites-panel' into feat/ab/sh-334-site-delete 2026-09-25 12:23:27 -03:00
schemas feat(sites): Add Site modal and site detail panel with in-place edit 2026-09-25 11:43:30 -03:00
types Merge remote-tracking branch 'origin/main' into feat/ab/sh-335-wo-site-dialog 2026-09-25 17:34:41 -03:00
use-cases fix(workorders): Site dialog loads legacy site contacts and locks fields while saving 2026-09-25 19:52:03 -03:00
utils feat(sites): Add Site modal and site detail panel with in-place edit 2026-09-25 11:43:30 -03:00