shoc-frontend-new/e2e/vendors
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
..
vendor-operations.spec.ts fix(vendors): make navigation and PO filters responsive 2026-07-28 17:16:50 -03:00
vendor-uplift-workflow.spec.ts feat(uplifts): complete SH-101 vendor workflow 2026-08-11 08:57:38 -03:00
vendors.spec.ts fix(vendors): send only user-edited company fields on additive add (SH-250) 2026-08-18 14:42:01 -03:00
vendors.visual.spec.ts fix(vendors): complete shell and visual parity gates 2026-08-10 12:11:38 -03:00