mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-27 19:35:13 +01:00
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>
15 lines
580 B
TypeScript
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" : ""}`,
|
|
),
|
|
};
|