feat(sp28): Inbox ack orphans lane with Dismiss + Link to dropdown

This commit is contained in:
Nora
2026-07-02 11:44:53 -06:00
parent d8f3fb15f9
commit 1c367ddbe7
5 changed files with 715 additions and 1 deletions
+4 -1
View File
@@ -1138,7 +1138,10 @@ async function listAckOrphans(kind: ClaimAckKind): Promise<AckOrphanRow[]> {
items: AckOrphanRow[];
total: number;
}>(`/api/inbox/ack-orphans${qs({ kind })}`);
return body.items;
// Defensive: the test harness can stub fetch with a different
// response shape. Treat a missing `items` as an empty list so a
// broken mock doesn't crash the whole inbox.
return Array.isArray(body.items) ? body.items : [];
}
/**