Skip to content

feat(application): show unavailable plans with reason#272

Merged
LorrisSaintGenez merged 2 commits into
fix/planchange-billing-offerfrom
feat/plans-availability
Jul 21, 2026
Merged

feat(application): show unavailable plans with reason#272
LorrisSaintGenez merged 2 commits into
fix/planchange-billing-offerfrom
feat/plans-availability

Conversation

@LorrisSaintGenez

@LorrisSaintGenez LorrisSaintGenez commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

What

  • algolia application plans: also list the paid plans the server hides when no payment method is on file, marked unavailable with the reason
  • Structured output: add available and unavailable_reason fields; server-returned plans unchanged
  • Stacked on fix(application): offer billing page on paid plan change #270 (reuses apputil.KnownPaidPlans)

Test

  • On an account without a payment method: algolia application plans → Build plus Grow (unavailable: no payment method on file — add billing to unlock) and same for Grow Plus
  • algolia application plans -o json → placeholders with "available":false + "unavailable_reason":"no payment method on file", Build with "available":true
  • On an account with a payment method: output unchanged from today, all plans "available":true

GROUT-409

@codacy-production

codacy-production Bot commented Jul 21, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 2 duplication

Metric Results
Complexity 0
Duplication 2

View in Codacy

TIP This summary will be updated as you push new changes.

@LorrisSaintGenez LorrisSaintGenez self-assigned this Jul 21, 2026
@LorrisSaintGenez
LorrisSaintGenez marked this pull request as ready for review July 21, 2026 19:02
@LorrisSaintGenez
LorrisSaintGenez merged commit 1a0259a into fix/planchange-billing-offer Jul 21, 2026
2 checks passed
@LorrisSaintGenez
LorrisSaintGenez deleted the feat/plans-availability branch July 21, 2026 19:02
LorrisSaintGenez added a commit that referenced this pull request Jul 21, 2026
* fix(application): offer billing page on paid plan change

* feat(application): show unavailable plans with reason (#272)

Co-authored-by: Lorris Saint-Genez <lorris.saint-genez@algolia.com>

---------

Co-authored-by: Lorris Saint-Genez <lorris.saint-genez@algolia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant