2026-02-17 12:24:48 -06:00
|
|
|
export const queryKeys = {
|
|
|
|
|
companies: {
|
|
|
|
|
all: ["companies"] as const,
|
|
|
|
|
detail: (id: string) => ["companies", id] as const,
|
2026-02-17 20:14:05 -06:00
|
|
|
stats: ["companies", "stats"] as const,
|
2026-02-17 12:24:48 -06:00
|
|
|
},
|
|
|
|
|
agents: {
|
|
|
|
|
list: (companyId: string) => ["agents", companyId] as const,
|
|
|
|
|
detail: (id: string) => ["agents", "detail", id] as const,
|
Build out agent management UI: detail page, create dialog, list view
Add NewAgentDialog for creating agents with adapter config. Expand
AgentDetail page with tabbed view (overview, runs, config, logs),
run history timeline, and live status. Enhance Agents list page with
richer cards and filtering. Update AgentProperties panel, API client,
query keys, and utility helpers.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 12:33:04 -06:00
|
|
|
runtimeState: (id: string) => ["agents", "runtime-state", id] as const,
|
2026-02-17 20:46:12 -06:00
|
|
|
keys: (agentId: string) => ["agents", "keys", agentId] as const,
|
2026-02-17 12:24:48 -06:00
|
|
|
},
|
|
|
|
|
issues: {
|
|
|
|
|
list: (companyId: string) => ["issues", companyId] as const,
|
|
|
|
|
detail: (id: string) => ["issues", "detail", id] as const,
|
|
|
|
|
comments: (issueId: string) => ["issues", "comments", issueId] as const,
|
UI: Identity component, LiveRunWidget, issue identifiers, and UX improvements
Add Identity component (avatar + name) used across agent/issue displays. Add
LiveRunWidget for real-time streaming of active heartbeat runs on issue detail
pages via WebSocket. Display issue identifiers (PAP-42) instead of UUID
fragments throughout Issues, Inbox, CommandPalette, and detail pages.
Enhance CommentThread with re-open checkbox, Cmd+Enter submit, sorted display,
and run linking. Improve Activity page with richer formatting and filtering.
Update Dashboard with live metrics. Add reports-to agent link in AgentProperties.
Various small fixes: StatusIcon centering, CopyText ref init, agent detail
run-issue cross-links.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 09:10:07 -06:00
|
|
|
activity: (issueId: string) => ["issues", "activity", issueId] as const,
|
|
|
|
|
runs: (issueId: string) => ["issues", "runs", issueId] as const,
|
|
|
|
|
liveRuns: (issueId: string) => ["issues", "live-runs", issueId] as const,
|
|
|
|
|
activeRun: (issueId: string) => ["issues", "active-run", issueId] as const,
|
2026-02-17 12:24:48 -06:00
|
|
|
},
|
|
|
|
|
projects: {
|
|
|
|
|
list: (companyId: string) => ["projects", companyId] as const,
|
|
|
|
|
detail: (id: string) => ["projects", "detail", id] as const,
|
|
|
|
|
},
|
|
|
|
|
goals: {
|
|
|
|
|
list: (companyId: string) => ["goals", companyId] as const,
|
|
|
|
|
detail: (id: string) => ["goals", "detail", id] as const,
|
|
|
|
|
},
|
|
|
|
|
approvals: {
|
|
|
|
|
list: (companyId: string, status?: string) =>
|
|
|
|
|
["approvals", companyId, status] as const,
|
|
|
|
|
},
|
|
|
|
|
dashboard: (companyId: string) => ["dashboard", companyId] as const,
|
|
|
|
|
activity: (companyId: string) => ["activity", companyId] as const,
|
|
|
|
|
costs: (companyId: string) => ["costs", companyId] as const,
|
|
|
|
|
heartbeats: (companyId: string, agentId?: string) =>
|
|
|
|
|
["heartbeats", companyId, agentId] as const,
|
UI: Identity component, LiveRunWidget, issue identifiers, and UX improvements
Add Identity component (avatar + name) used across agent/issue displays. Add
LiveRunWidget for real-time streaming of active heartbeat runs on issue detail
pages via WebSocket. Display issue identifiers (PAP-42) instead of UUID
fragments throughout Issues, Inbox, CommandPalette, and detail pages.
Enhance CommentThread with re-open checkbox, Cmd+Enter submit, sorted display,
and run linking. Improve Activity page with richer formatting and filtering.
Update Dashboard with live metrics. Add reports-to agent link in AgentProperties.
Various small fixes: StatusIcon centering, CopyText ref init, agent detail
run-issue cross-links.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 09:10:07 -06:00
|
|
|
runIssues: (runId: string) => ["run-issues", runId] as const,
|
2026-02-17 12:24:48 -06:00
|
|
|
org: (companyId: string) => ["org", companyId] as const,
|
|
|
|
|
};
|