shoc-frontend-new/e2e
Codex Review Integration 9624c264de fix(vendors): send only user-edited company fields on additive add (SH-250)
Adversarial review found a last-writer-wins window: after a stale 409 the
roster is refetched while the form keeps its pre-conflict values, so the
form-vs-roster diff resent our stale value for any company field another
user changed in that window, silently reverting their edit.

Transmit only fields the user actually edited, taken from react-hook-form
dirty state. Selecting a company calls reset(), so loaded values are never
dirty and only genuine edits are sent.

dirtyFields is resolved during render: formState is a Proxy that only tracks
properties read at render time, so reading it inside the submit callback
returned empty. The vendors E2E caught that; unit tests could not, since
they pass the flags in directly.
2026-08-18 14:42:01 -03:00
..
__screenshots__/vendors/vendors.visual.spec.ts fix(vendors): complete shell and visual parity gates 2026-08-10 12:11:38 -03:00
auth Feat/vite typescript migration (#16) 2026-06-18 14:41:17 -03:00
vendor-portal feat(vendor-portal): complete request lifecycle (SH-98) 2026-08-10 13:16:26 -03:00
vendors fix(vendors): send only user-edited company fields on additive add (SH-250) 2026-08-18 14:42:01 -03:00
work-orders fix(vendors): remove preferred contact and fix trade ordering (#63) 2026-08-03 17:53:39 -03:00