PR #255 · pramaan-io/pramaan-app · merged 2026-06-08
A settings page that lies about its own state.
Why the Live tab still showed archived rows.
Two tabs, two truths.
The fix — One fetch, one cache, one optimistic flip — and delete quietly hands off to archive.
sequenceDiagram autonumber participant admin as Admin participant cache as TanStack cache participant server as Server / Gateway admin->>cache: click Archive cache->>cache: optimistic flip · row jumps tab cache->>server: archive mutation server->>server: settle · 200 cache->>cache: reconcile · toast server-->>cache: 409 conflict cache->>cache: rollback to prior tab