Refine per-trigger granularity now that the swap target is explicit: - Memo issues no request at all -- it affects nothing else, so its value just rides along in the form and is merged into the snapshot on save. (Changing the Location *value* likewise issues no request -- it never did; that cell's request is the account->location dependency.) - Account select swaps only that row's Location cell (#account-location-<index> / #simple-account-location) instead of the whole form. Selecting an account only affects the valid Location options (computed from the posted account-id), so a precise cell swap is safe -- no snapshot dependency. Account-structural changes (vendor, add/remove row, mode toggle, $/% radio) keep swapping the whole form: their accounts+amount-mode state is interdependent and round-trips through the single form-level snapshot hidden field, so a whole-form swap is what keeps it consistent with zero OOB. Update the memo test to assert it fires no request and keeps its value/caret. Full e2e suite: 27 passed / 2 failed (same pre-existing, unrelated failures). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
16 KiB
16 KiB