fix(client): preserve order category counts while refreshing

This commit is contained in:
2026-10-09 17:53:42 +08:00
parent 33d86d2a64
commit 639b1ae22c
4 changed files with 52 additions and 1 deletions
@@ -49,3 +49,13 @@ test('old same-page response cannot clamp a newer query or clear its current sel
assert.deepEqual(h.selectedOrders.value, ['new-selection'])
assert.equal(h.orderTableVersion.value, 1)
})
test('clicking the current category does not reload or reset its page, but an error can be retried', async () => {
const h = harness(); h.tablePage.value = 3
await h.selectOrderQueue('all')
assert.equal(h.calls.length, 0); assert.equal(h.tablePage.value, 3)
h.store.loadError = 'failed'
await h.selectOrderQueue('all')
assert.equal(h.calls.length, 1); assert.equal(h.tablePage.value, 1)
})