Members expected to add usage from the dashboard and couldn't find it —
the buy path (OpenCollective contribute page) was invisible. Payments
still happen on OC; this just surfaces the door:
- green 'Buy a credit pack' button in the My usage card, always visible
- hint shows the member's real credit status ('Credits never expire
($X purchased all-time).' — moved out of the meta line, which keeps
'Shared across chat and API · Allowance renews <date>.')
- 'More about allowance & credits' links to the docs section
(getting-started.md#need-more-than-the-allowance)
Verified desktop + 390px mobile rendering.
2.6 KiB
2.6 KiB
Buy-a-credit-pack link in the member dashboard — design
Date: 2026-11-01 · Status: awaiting approval · Size: small change
Intent
Members expect to add usage from the dashboard and can't find it (a real member got lost and had to ask the AI chat). The buy path lives on the OpenCollective contribute page, and the dashboard never mentions it. Payments stay on OpenCollective for now (per Nathan); the fix is making that path visible from the dashboard, always.
Goals
- A always-visible "Buy a credit pack" affordance in the My usage
view of
app/main.py, linking tohttps://opencollective.com/inference-cooperative/contribute(opens in a new tab). - The meta line under the balance bar keeps its existing shape: "Shared across chat and API · Allowance renews ." The credits clause moves out of it.
- The hint next to the button shows the member's real credit status, same copy the app already used: "Credits never expire ($X purchased all-time)." For members with no packs yet, the static default reads "Credit packs never expire · used after your monthly allowance."
- A link to the docs section that explains allowance and credits —
getting-started.md→ "Need more than the allowance?" — following the dashboard's existing docs-link pattern (https://git.inference.coop/co-op/docs/src/branch/main/...), so members can read the full story.
Non-goals
- In-dashboard checkout or handling money in this app (this app holds no privileged credentials by design).
- Showing pack prices or sizes in the dashboard — those live on OC and can change there without a deploy here.
- Any low-balance gating — always visible, per Casey's call.
Approaches
- Always-visible button + hint line in the usage card (chosen) — sits right under the balance bar where a member looks when they're running low. Discoverable every visit.
- Low-balance-only (appears when allowance exhausted / bar amber) — quieter, but repeats the original problem for anyone who wants to top up early. Rejected.
- Link in the page header next to "Member Home" — far from the usage context it explains. Rejected.
How it gets made (decided)
- One new block in
#view-mineafter the.metaline: a green primary-style anchor (Buy a credit pack) plus a muted hint span on the same row (with the docs link at the end of the hint), wrapping on narrow phones. - Reuses existing palette vars and button look; ~8 lines of CSS, no JS, no new endpoints, no API changes.
Left to the builder
- Exact copy tweak of the hint line is builder's call.