From 4687efb369d949ac54933bd38ca573c85f4f4034 Mon Sep 17 00:00:00 2001 From: Inferencebot Date: Thu, 29 Oct 2026 21:19:18 +0000 Subject: [PATCH] panel: agents show unprefixed names; admin table matches the agents columns MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Agent accounts render without the "agent:" prefix, since the section header already says Agents. The full alias is still in the payload as `alias`. - The admin/operator table now carries the same columns as the agents table — Account, Type, Spend, Budget — with Type "admin" and Budget "—". Activated and Reset are gone: neither applies to an account that is not a member and has no member budget cycle. --- app/main.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/main.py b/app/main.py index 947184d..b838ea9 100644 --- a/app/main.py +++ b/app/main.py @@ -415,10 +415,9 @@ PAGE_HTML = """ Account - Status - Activated + Type Spend - Reset + Budget @@ -797,7 +796,7 @@ function renderMembers() { const kind = String(a.alias).split(':')[0]; const budget = (a.budget === null || a.budget === undefined) ? '—' : fmt(a.budget); return '' + - '' + esc(a.alias) + '' + + '' + esc(a.name || a.alias) + '' + '' + esc(kind) + '' + '' + fmt(a.spend) + '' + '' + budget + '' + @@ -814,10 +813,9 @@ function renderMembers() { const adminTop = m.username || m.email; return '' + '' + esc(adminTop) + '' + (m.username ? '
' + esc(m.email) + '
' : '') + '' + - 'admin' + - '' + (m.activated ? 'yes' : 'pending') + '' + + 'admin' + '' + fmt(memberSpend(m)) + '' + - '' + esc(reset) + '' + + '—' + ''; }).join(''); }