dashboard: always-visible 'Buy a credit pack' link out to Open Collective #1

Closed
cag wants to merge 1 commits from cag/member-dashboard:dashboard-buy-credit-pack into main
pull from: cag/member-dashboard:dashboard-buy-credit-pack
First-time contributor

Members expected to add usage from the dashboard and couldn't find it — the buy path (the OpenCollective contribute page) was invisible unless someone told you or you asked the AI chat. Payments still happen on OpenCollective (per ntnsndr, keeps co-op focus on the AI, not the $); this just surfaces the door from the dashboard.

What it does

  • An always-visible green Buy a credit pack button in the My usage card, linking to https://opencollective.com/inference-cooperative/contribute (opens in a new tab)
  • The hint next to it shows the member's real credit status — "Credits never expire ($X purchased all-time)." — moved out of the meta line; members who haven't bought a pack see "Credit packs never expire · used after your monthly allowance."
  • The meta line keeps "Shared across chat and API · Allowance renews <date>."
  • A "More about allowance & credits →" link to the docs section: getting-started.md#need-more-than-the-allowance

Rendered

My usage card with the Buy a credit pack row

Verified desktop and 390px mobile (row wraps, no overflow). Design notes: docs/superpowers/specs/2026-11-01-buy-credit-pack-link-design.md

Members expected to add usage from the dashboard and couldn't find it — the buy path (the OpenCollective contribute page) was invisible unless someone told you or you asked the AI chat. Payments still happen on OpenCollective (per ntnsndr, keeps co-op focus on the AI, not the $); this just surfaces the door from the dashboard. ## What it does - An always-visible green **Buy a credit pack** button in the **My usage** card, linking to https://opencollective.com/inference-cooperative/contribute (opens in a new tab) - The hint next to it shows the member's real credit status — "Credits never expire ($X purchased all-time)." — moved out of the meta line; members who haven't bought a pack see "Credit packs never expire · used after your monthly allowance." - The meta line keeps "Shared across chat and API · Allowance renews `<date>`." - A "More about allowance & credits →" link to the docs section: `getting-started.md#need-more-than-the-allowance` ## Rendered ![My usage card with the Buy a credit pack row](https://git.inference.coop/cag/member-dashboard/raw/branch/dashboard-buy-credit-pack/docs/assets/buy-credit-pack-row.png) Verified desktop and 390px mobile (row wraps, no overflow). Design notes: `docs/superpowers/specs/2026-11-01-buy-credit-pack-link-design.md`
cag added 1 commit 2026-11-01 23:27:29 +00:00
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.
Owner

Thank you for this — and for the diagnosis behind it, more than the patch. "Members expected to add usage from the dashboard and couldn't find it" is the part that matters, and it's a real gap: the door existed, but only if someone told you where it was.

We're implementing it, with one deliberate change.

The change: the destination comes from an env var (CREDIT_PACK_URL, which the portal already uses for the same purpose) instead of a hardcoded URL. Same link today, but it moves in one place if the pack page ever does — and the co-op's contribution path has already changed once this year, which is why the variable exists at all.

What we're keeping from your version: the always-visible green button in the My usage card, opening in a new tab, and the credit-status hint using the member's real numbers ("Credits never expire ($X purchased all-time)" with the pre-purchase wording for everyone else). That's the member-facing result, and it's right.

Two small things we aren't copying, and neither is a criticism of the work:

  • The docs/superpowers/specs/... design note — that layout is your local workflow rather than this repo's convention, so it would arrive as an odd artefact here.
  • The screenshot PNG — same reason.

One thing we're double-checking before shipping: the docs anchor (getting-started.md#need-more-than-the-allowance). If that heading has moved, we'll point at the right one rather than ship a dead link.

Your intent is going in credited to you in the commit message. We'll say so here when it's live on the dashboard.

(Inferencebot — the co-op's steward bot. Member-facing changes here go through the GM before they ship; @ntnsndr is thanking you directly in Matrix too.)

Thank you for this — and for the diagnosis behind it, more than the patch. "Members expected to add usage from the dashboard and couldn't find it" is the part that matters, and it's a real gap: the door existed, but only if someone told you where it was. We're implementing it, with one deliberate change. **The change:** the destination comes from an env var (`CREDIT_PACK_URL`, which the portal already uses for the same purpose) instead of a hardcoded URL. Same link today, but it moves in one place if the pack page ever does — and the co-op's contribution path has already changed once this year, which is why the variable exists at all. **What we're keeping from your version:** the always-visible green button in the My usage card, opening in a new tab, and the credit-status hint using the member's real numbers ("Credits never expire ($X purchased all-time)" with the pre-purchase wording for everyone else). That's the member-facing result, and it's right. **Two small things we aren't copying**, and neither is a criticism of the work: - The `docs/superpowers/specs/...` design note — that layout is your local workflow rather than this repo's convention, so it would arrive as an odd artefact here. - The screenshot PNG — same reason. **One thing we're double-checking before shipping:** the docs anchor (`getting-started.md#need-more-than-the-allowance`). If that heading has moved, we'll point at the right one rather than ship a dead link. Your intent is going in credited to you in the commit message. We'll say so here when it's live on the dashboard. *(Inferencebot — the co-op's steward bot. Member-facing changes here go through the GM before they ship; @ntnsndr is thanking you directly in Matrix too.)*
Owner

It's live on the dashboard.

What members see: an always-visible green "Buy a credit pack" button in the My usage card, opening in a new tab, with their real credit status beside it. The destination comes from CREDIT_PACK_URL on the dashboard app, so it moves in one place.

One correction to your anchor, and it's the kind of thing worth knowing: getting-started.md#need-more-than-the-allowance would not have resolved. Gitea renders heading ids with a user-content- prefix, so the id actually served is user-content-need-more-than-the-allowance. We verified against the rendered page and linked that. The heading itself is right — it's ### Need more than the allowance?, and the trailing question mark is dropped from the slug, so your reading of the section was correct; only the anchor's exact form needed adapting.

Correction to my own comment: I said your intent would be credited in the commit message, and it wasn't — the commit that shipped went out without your name in it. That's fixed properly: the source now carries the credit, and here it is again. You identified that members couldn't find the door, which is the part that made this worth doing; the patch was the easier half.

(Inferencebot — the co-op's steward bot.)

It's live on the dashboard. **What members see:** an always-visible green "Buy a credit pack" button in the My usage card, opening in a new tab, with their real credit status beside it. The destination comes from `CREDIT_PACK_URL` on the dashboard app, so it moves in one place. **One correction to your anchor, and it's the kind of thing worth knowing:** `getting-started.md#need-more-than-the-allowance` would not have resolved. Gitea renders heading ids with a `user-content-` prefix, so the id actually served is `user-content-need-more-than-the-allowance`. We verified against the rendered page and linked that. The heading itself is right — it's `### Need more than the allowance?`, and the trailing question mark is dropped from the slug, so your reading of the section was correct; only the anchor's exact form needed adapting. **Correction to my own comment:** I said your intent would be credited in the commit message, and it wasn't — the commit that shipped went out without your name in it. That's fixed properly: the source now carries the credit, and here it is again. You identified that members couldn't find the door, which is the part that made this worth doing; the patch was the easier half. *(Inferencebot — the co-op's steward bot.)*
Owner

Closing this rather than merging it — a merge would put the hardcoded contribute URL back into the template, undoing the one thing we changed.

What shipped instead: an always-visible "Buy a credit pack" button in the My usage card, with the destination read from CREDIT_PACK_URL on the dashboard app. It's live now.

  • Feature: b352b1f — "Buy a credit pack" link in My usage
  • Credit to you: 094a3cb
  • Running image: registry.inference.coop/code/member-dashboard:20261102-b352b1f

The intent here was yours and it's in production. Thanks again — the diagnosis was the valuable part.

Closing this rather than merging it — a merge would put the hardcoded contribute URL back into the template, undoing the one thing we changed. **What shipped instead:** an always-visible "Buy a credit pack" button in the My usage card, with the destination read from `CREDIT_PACK_URL` on the dashboard app. It's live now. - Feature: `b352b1f` — "Buy a credit pack" link in My usage - Credit to you: `094a3cb` - Running image: `registry.inference.coop/code/member-dashboard:20261102-b352b1f` The intent here was yours and it's in production. Thanks again — the diagnosis was the valuable part.
inference-bot closed this pull request 2026-11-02 02:09:45 +00:00

Pull request closed

Please reopen this pull request to perform a merge.
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: code/member-dashboard#1