Skip to content

Simplify billing statuses: collapse comp / grandfathered / exempt / not required into one "Exempt" state #406

Closed

Description

@mchestr

Problem

The billing model has too many statuses for what is, in practice, one question: does this person pay?

Today a member who doesn't pay can show up as any of these, depending on how they got there:

Where Values
STATUS.exemption (lib/ui/status.ts) comp, exempt, grandfathered, notRequired
User.exemptReason (free-form string, prisma/schema.prisma) "comp", "grandfathered", "invite", plus whatever toggleExempt is passed
Membership.exemption (lib/member/membership.ts) "comp" or "notRequired" (a different split again)
SubscriptionStatus + none ACTIVE, PAST_DUE, UNPAID, CANCELED, INCOMPLETE, none

Several of these mean the same thing to an admin and behave identically in code. evaluateRevokeGuard, lib/access.ts and the Discord role metadata only look at isExempt and never at the reason. The reason is only used to pick a badge label. The result is a Subscription column and a Billing tab where "Comp", "Exempt", "Grandfathered" and "Not required" all read as distinct states.

I also don't like "grandfathered". It's jargon, it describes history rather than the current state, and it only exists because of the one-time migration that exempted everyone when Stripe was first enabled (see docs/stripe.md#grandfathering-existing-members).

Proposal

Use one word for members who don't pay: Exempt.

  • isExempt stays the only thing that grants access without a subscription. Behavior of lib/access.ts, the revoke guard, watchlist entitlement and Discord metadata does not change.
  • Collapse the badge states to Exempt (non-paying member) and Not required (admins and the owner, who are implied exempt and never need a toggle). Drop comp and grandfathered as distinct labels.
  • Keep a short, optional free-text note (e.g. "friend of the family", "IT support") for the admin's own context. Show it as the sub-line on the badge, where Set by {by} is today. It carries no behavior.
  • Rename in the UI and docs: "Grant comp access" becomes "Mark as exempt" or similar, and the dialogs, toasts, README, docs/stripe.md and docs/operations.md stop saying comp / grandfather. The one-time migration instructions can say "exempt all existing members" instead.
  • Simplify SubscriptionStatus display too: PAST_DUE and UNPAID already render as the same "Past due" badge; confirm nothing else needs both values and merge in the UI.

Data

  • Migration that normalizes exemptReason: existing "comp", "grandfathered" and "invite" values map to a note, or to null where the old value carries no information. Decide whether to keep exemptReason as the note field or rename it (exemptNote). Needs a CHANGELOG.md entry under Unreleased, since it touches prisma/migrations/**.
  • Review INVITE_EXEMPTION in lib/invites/redemption.ts: invite-redeemed members become exempt with no reason at all, or with a note like "Joined by invite", rather than their own status.

Open questions

  1. Do invited members count as exempt, or "Free"? Today invite redemption marks them exempt with reason invite. If invites remain a free path, "Exempt" covers it; otherwise "Free" might read better for them than "Exempt". Pick one word for the whole product.
  2. Is there any real difference between comp'd and exempt in how you want to treat them? For example, should a comp'd member's access end at a date? If so, that is a new feature (exemption expiry), not a label.
  3. Keep a reason at all, or only a note? I lean toward only a free-text note.

Acceptance criteria

  • The admin Users table, user detail Billing tab and member /membership page show at most one non-paying state (Exempt) plus Not required for admins/owner.
  • No user-facing copy, docs or README text uses "comp" or "grandfather" (the design-system check npm run design:check can gain a rule for it).
  • Access decisions are unchanged: existing tests in __tests__/lib/access.test.ts, lib/queue/jobs/stripe.ts revoke-guard tests and watchlist entitlement tests pass without logic edits.
  • Migration maps existing exemptReason values, is reversible in effect (no data loss of who is exempt), and has a CHANGELOG entry.
  • Unit tests updated: lib/ui/__tests__/status.test.ts, billing dialogs, users table, membership details.

Activity

  1. added
    enhancement
    on Oct 24, 2026
  2. added
    refactor
    database
    admin-ui
    on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    admin-uidatabaseenhancementrefactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions