New Guest access card (members only — a guest's dashboard keeps its own
ended-state view): invite a friend by email with an optional display name,
the remaining invitation allowance (one guest per member per rolling 30
days, with the next open date), and the member's own guest trail — who they
invited, when, and the honest status (pending approval / not approved /
active guest / became a member / ended). Under the trial gate the button
says 'Send request' and the hint says the co-op approves before the account
is created; the portal's auto_approve flag flips both to 'Send invite' with
no deploy. Portal refusals pass through verbatim (429 member-facing text).
/api/guests GET+POST are one hop to the portal's /broker/guests endpoints.
Guests get a one-click-reveal, one-click-confirm Cancel control under the
Become-a-member row: it ends the gift via the portal broker (/api/cancel-gift
→ /broker/cancel-gift), which returns unspent credit to the co-op. An ended
guest (cancelled, expired or spent out — via /api/gift-status on the usage
403, or straight from the cancel response) renders the ended state plainly:
access ended, unspent credit returned where it was, account and data kept,
Become-a-member still present. Members see the new plain line under the
balance: membership continues while the Open Collective contribution is
active — ending the contribution ends the membership, allowance stops
renewing after the current cycle — with the contribute page as the place to
manage the payment. Informational only.
Gift accounts (portal flag on /broker/usage) get a different dashboard: the
Matrix card is hidden in the markup and only revealed for members (a guest
never sees it, even before the usage fetch returns), the credit-pack buy
button becomes 'Become a member' pointing at the OC contribution page, and
the meta line names the gift. Everything else (spend, models, keys, docs
links) unchanged.
The Co-op usage view charted the co-op-wide spend (which spans the co-op's own
operator accounts) with nothing saying so. Adds a stats pair — co-op spend all
time, and of which the co-op's own accounts — summed from the series' new
operator_spend_usd (NULL days skipped, not counted as zero), and labels the
spend chart and the model board as including the co-op's own accounts.
code/member-dashboard PR #1 by cag identified that members looked for a way to add usage and could not find it. The implementation that shipped (b352b1f) took that intent with a configurable destination, but its commit message did not name the contributor, which is the sort of thing that stops people bothering next time. Credited in the source where the feature lives. Source-only: no rebuild, so the running image does not contain this comment.
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.
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.
Two tidy-ups, one of which turned out to be a live bug.
1. The dashboard's "About these models" link pointed at
`.../src/content/docs/models.md`, which 404s. The working route is
`.../src/branch/main/<file>` (the same class of dead link a past newsletter
shipped four of). Fixed, and verified 200 before deploying.
2. Added a sibling link to the new energy-and-carbon page, so members reading
the co-op's energy figures can find out how they are produced.
3. The portal's admin-token comment still said "set ADMIN_TOKEN_LEGACY=0 and
rotate both" — stale, and the direct cause of a wrong report that a rotation
was outstanding. It now records that the cutover completed 2026-10-28 and
that BOTH tokens were minted/rotated on 2026-10-27, so nobody "finishes" this
by rotating again.
Two more metrics on the same chart, from the portal's new energy_wh and co2e_g
daily columns.
- Energy in watt-hours, carbon in grams CO2e, both for the day shown.
- Continuous metrics use the 1/2/5 axis rule (not the integer rule reserved for
counts), so energy ticks read 500 Wh rather than being rounded to whole
people-style numbers.
- Labels carry units, so a reader never has to guess what the axis measures.
- Same measured-vs-estimated provenance as the data layer: GreenPT models use
facts fitted from their own impact API, everyone else a labelled proxy. The
docs page on estimation is still to be written; the factor table and its
sources are in metrics_snapshot.py.
Harness extended: one bar per measured day for each, no NaN in markup, and axis
labels matching ^[\d,]+(\.\d+)? (Wh|g)$ so a unit prefix or a forced integer
axis fails the build.
Nathan: the disclaimers are not necessary, especially now that reporting is in
place going forward — and then, on the status line under it: remove that too.
Gone from both apps: the explanatory note paragraph, its per-metric config
strings, the status line ("55 days - 2 not measured"), the now-orphaned CSS for
both, and the gaps counter that only fed the status line. The period toggles
still say what range is on screen, so no information is lost.
The harness assertions that described the status line are replaced by stronger
ones: the rendered chart must contain no caveat text at all, and the 30-day view
must still end at the most recent measured day.
Members asked for charts to share with the co-op. This is the member-facing
half of it, in the view where co-op-wide data already lives.
- /api/metrics proxies the portal's new /broker/metrics (aggregate, non-personal:
co-op size, requests served, spend). No per-member figure is fetched.
- Same chart as the admin panel's Trends tab: inline SVG, no library, no CDN,
colours from the shared palette vars. Members / Requests / Spend, and
30 / 90 / all time, re-rendered client-side without refetching.
- Lazy: loads the first time someone opens the co-op view, so the dashboard's
initial load is unchanged.
- Gaps stay gaps. A day never measured breaks the line rather than reading as
zero members, with the sub-line saying how many days are missing.
- Integer y-axis for people and requests; 1/2/5 money ticks, per the panel fix.
Verified with the same node harness used for the panel (shared, so it asserts
the same invariants against the live series).
Replicates the admin-panel OIDC pattern: redirect/callback/token exchange
(client_secret_post) / JWKS validate / signed session cookie. get_user_identity()
prefers the OIDC session and falls back to the proxyAuth header. Adds /logout
route (was previously only a link). No manifest change yet.