mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-14 01:50:39 +09:00
Add live badge to issues with active runs on /issues/active
Server: the /companies/:companyId/live-runs endpoint now returns issueId extracted from contextSnapshot, so the UI can match runs to issues without N+1 queries. UI (Issues.tsx): fetches company live runs (with 5s polling), builds a set of issue IDs with active runs, and shows a pulsing "Live" badge in each matching issue row — matching the existing blue live indicator style from AgentDetail. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
260d525686
commit
8d5525d0da
3 changed files with 28 additions and 1 deletions
|
|
@ -906,6 +906,7 @@ export function agentRoutes(db: Db) {
|
|||
agentId: heartbeatRuns.agentId,
|
||||
agentName: agentsTable.name,
|
||||
adapterType: agentsTable.adapterType,
|
||||
issueId: sql<string | null>`${heartbeatRuns.contextSnapshot} ->> 'issueId'`.as("issueId"),
|
||||
})
|
||||
.from(heartbeatRuns)
|
||||
.innerJoin(agentsTable, eq(heartbeatRuns.agentId, agentsTable.id))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue