← All tests

New register shows instantly STAGING

Narong: "adding a new Register doesn't show right away on the Registers." Gate-2 2/2 + staging smoke 5/5.

Not a data/caching issue — the list already reads fresh. It was the fire-and-forget router.refresh() race: the Add-register dialog closed before the re-render landed, so the new row popped in a beat later. Fixed with optimistic UI — the registers admin now mirrors the list in local state and inserts the new register (with its real ID, returned by the create action) the instant it's created; router.refresh() then reconciles. Only inserts for the shop currently in view; edit / delete / bulk flows unchanged.
New register in the list right after adding
Configurations › Registers — the newly added register is in the list immediately after Add, no reload.

nix-cafe c05361d (staging dd4bdc2, Worker 68e73b6c). No migration/backend. Parked on staging for the scheduled prod promote.