Files
PaperClipAI/ui/src/api/attention.ts
T
DottaandPaperclip 7ba9280c20 Cherry-pick What-needs-me attention queue page (PAP-13208)
Brings the What-needs-me page + AttentionQueueRow + AttentionInteractionResolver
onto the task-org branch so the C3 per-item verdict card (PAP-13249) can wire
into it. Original commit a40c2c6ce (now in master).

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-07-10 20:07:55 +00:00

15 lines
580 B
TypeScript

import type { AttentionFeed } from "@paperclipai/shared";
import { api } from "./client";
export const attentionApi = {
/**
* Fetch the ranked "What needs me" attention feed for a company. The server
* unions every attention source (approvals, interactions, recovery, reviews,
* failures, budget…) into one ranked queue with the §0 contract.
*/
list: (companyId: string, options: { includeDismissed?: boolean } = {}) =>
api.get<AttentionFeed>(
`/companies/${companyId}/attention${options.includeDismissed ? "?includeDismissed=true" : ""}`,
),
};