Commit Graph
6 Commits
Author SHA1 Message Date
InferenceBot b352b1f427 dashboard: always-visible "Buy a credit pack" link in My usage
Members looked for a way to add usage from the dashboard and could not
find it — the buy path was invisible unless someone pointed them at it.
Add an always-visible green button in the "My usage" card, opening in a
new tab, plus the member's real credit status and a docs link.

The destination comes from CREDIT_PACK_URL on the dashboard app (same
convention the portal uses), defaulting to the Open Collective
contribute page — configurable in one place, not hardcoded in the
template. When the member has purchased credits the hint reads
"Credits never expire ($X purchased all-time)"; otherwise it keeps the
static "Credit packs never expire · used after your monthly allowance".

Docs link points at getting-started.md#user-content-need-more-than-the-allowance
(the rendered heading id Gitea actually serves), not the bare anchor.
2026-11-02 00:50:45 +00:00
InferenceBot c28a5b3fe7 keys: show per-key spend, chat separately
The API-keys card now shows each key's all-time spend (secondary, muted,
appended to the key's meta line) and the built-in chat key's spend on its
own line, read from the portal's key_spend field in /broker/usage. Skip
rows flagged is_chat when matching spend to a member key, so an API key
named 'chat' is not mistaken for the built-in.
2026-11-01 18:01:46 +00:00
Inferencebot 2dee1ea71d fmtMoney: snap |n| < half a cent to exact 0 — kills $-0.00 from float-residue spend 2026-10-19 12:05:51 -06:00
Inferencebot 9cc636dd99 Co-op usage: sort by cost (default) or requests; uniform rank badges (no special #1 styling) 2026-10-19 11:08:27 -06:00
Inferencebot cdff951594 Matrix card: concise redesign per Nathan — 'Current Matrix ID' display, 'Use @local' button when on an external ID, 'Use external account' reveals a validated field; no my/your mixing 2026-10-19 11:03:18 -06:00
Inferencebot 88bda332c3 dashboard: show the member's registered Matrix ID prominently (registered box + notes), surface load errors, add 'Use my co-op account instead' clear button 2026-10-19 10:48:47 -06:00