Active agents: counts only in "Working on" (file names on hover)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
75e16d4ea2
commit
1a4775e655
1 changed files with 6 additions and 3 deletions
|
|
@ -606,9 +606,12 @@ async function loadCrew() {
|
|||
table(
|
||||
['User', 'Working on', 'Peer reviews', 'Being checked', 'Submitted (24 h)', 'Last seen'],
|
||||
c.active.map((a) => {
|
||||
const work = a.units.length
|
||||
? a.units.map((u) => el('div', `${u.unit} · ${u.functions} function${u.functions > 1 ? 's' : ''}`))
|
||||
: [el('span', a.reviewing ? 'reviewing' : 'between regions', 'muted')];
|
||||
// Counts only, never file names: the column stays narrow.
|
||||
const fns = a.units.reduce((t, u) => t + u.functions, 0);
|
||||
const work = fns
|
||||
? el('span', `${fmt(fns)} function${fns > 1 ? 's' : ''} · ${a.units.length} file${a.units.length > 1 ? 's' : ''}`)
|
||||
: el('span', a.reviewing ? `reviewing ${a.reviewing}` : a.verifying ? 'waiting for the server' : 'between regions', 'muted');
|
||||
work.title = a.units.map((u) => `${u.unit} (${u.functions})`).join('\n');
|
||||
return [`${a.name}${a.agents > 1 ? ` (${a.agents} agents)` : ''}`, work, a.reviewing || '', a.verifying || '', a.submittedToday, ago(a.lastSeen)];
|
||||
}),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue