Add opt-in trial to sign-up: checkbox, trial-terms page, account badge #92

Stängd
öppnade 2026-07-28 10:55:04 +00:00 av supernaut · 1 kommentar
Ägare

Part of the sign-up trial epic (bitborg-docs#51). See ADR 0036.

What

Add an opt-in trial to the sign-up form and surface it in the account panel.

  • Trial checkbox on /signup (and /en/signup), rendered only when the trial kill-switch is
    open (TRIAL_OPEN, default open, mirroring SIGNUPS_OPEN / ADR 0029).
  • In-form text: the trial gives the same capabilities as a paid account and ends at the end of
    August 2026, after which the account becomes a participant account.
  • Separate trial-terms page at /trial-terms (+ /en/trial-terms), linked from the checkbox,
    covering: what the trial grants, the fixed end date, what downgrade to a participant account
    means (no new hosting / over-quota, data retained and exportable), no charge, no auto-renewal.
  • On submit: a trial sign-up provisions the person into the tier_trial identity group (paid
    capabilities); a non-trial sign-up uses the participant baseline. Record trial consent
    (trial, trial_terms_version) in the signups table for accountability.
  • Account panel: show a "Trial — ends 31 August 2026" badge for trial members.

Notes

  • The checkbox is a temporary stand-in for the future "subscribe" option; keep it self-contained
    and behind the kill-switch so it can be retired centrally.
  • All copy in Swedish + English, checked against docs/content-style.md.
  • Schema change → pnpm db:generate → commit migration.

Acceptance

  • Trial sign-up → paid capabilities within one reconcile; badge shows in the panel.
  • Kill-switch off → checkbox hidden, trial provisioning refused (falls back to participant).
  • Consent persisted; copy passes the language check.
Part of the sign-up trial epic (bitborg-docs#51). See ADR 0036. ## What Add an opt-in **trial** to the sign-up form and surface it in the account panel. - **Trial checkbox** on `/signup` (and `/en/signup`), rendered only when the trial kill-switch is open (`TRIAL_OPEN`, default open, mirroring `SIGNUPS_OPEN` / ADR 0029). - **In-form text**: the trial gives the same capabilities as a paid account and ends at the end of August 2026, after which the account becomes a participant account. - **Separate trial-terms page** at `/trial-terms` (+ `/en/trial-terms`), linked from the checkbox, covering: what the trial grants, the fixed end date, what downgrade to a participant account means (no new hosting / over-quota, data retained and exportable), no charge, no auto-renewal. - On submit: a trial sign-up provisions the person into the `tier_trial` identity group (paid capabilities); a non-trial sign-up uses the participant baseline. Record trial consent (`trial`, `trial_terms_version`) in the `signups` table for accountability. - **Account panel**: show a "Trial — ends 31 August 2026" badge for trial members. ## Notes - The checkbox is a temporary stand-in for the future "subscribe" option; keep it self-contained and behind the kill-switch so it can be retired centrally. - All copy in Swedish + English, checked against `docs/content-style.md`. - Schema change → `pnpm db:generate` → commit migration. ## Acceptance - Trial sign-up → paid capabilities within one reconcile; badge shows in the panel. - Kill-switch off → checkbox hidden, trial provisioning refused (falls back to participant). - Consent persisted; copy passes the language check.
Upphovsperson
Ägare

Merged and deployed to production (2026-07-28). Verified live: sign-up trial checkbox + /trial-terms page serving, Kanidm tier_trial group present and read by the reconciler (GET /v1/group/tier_trial → 200), quota groups healthy, reconciler last_run_status=0 and fresh, no firing alerts. Closing.

Merged and deployed to production (2026-07-28). Verified live: sign-up trial checkbox + /trial-terms page serving, Kanidm tier_trial group present and read by the reconciler (GET /v1/group/tier_trial → 200), quota groups healthy, reconciler last_run_status=0 and fresh, no firing alerts. Closing.
supernaut lade till detta till projektet Bitborg Web 2026-07-28 16:17:57 +00:00
Logga in för att delta i denna konversation.
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-web#92
Ingen beskrivning angiven.