Skip to content

refactor(web): make ALL_PLANS a display-only pricing catalog - #45115

Merged
lyzno1 merged 3 commits into
mainfrom
claude/billing-plan-catalog-d60b78
Oct 30, 2026
Merged

lyzno1 merged 3 commits into
mainfrom
claude/billing-plan-catalog-d60b78

Conversation

@lyzno1

@lyzno1 lyzno1 commented Oct 30, 2026 •

Copy link
Copy Markdown
Member
  • ALL_PLANS now only feeds the pricing modal: drops unused modelProviders, teamWorkspace, documentsUploadQuota, uses 'unlimited' instead of NUM_INFINITE, and is checked with satisfies Record<CloudPlan, PlanInfo>.
  • Plan-specific copy choices (monthly vs one-off quotas, trigger limits, workflow execution speed) move from plan === 'sandbox' checks into catalog values.
  • CloudPlanFeatures renders grouped feature rows derived from the catalog; rows, order, separators and tooltips are unchanged, so future pricing changes only touch data and i18n.
  • Vector space usage uses a literal 50 MB threshold, matching usagePage.storageThresholdTooltip; removes parseVectorSpaceToMB / getPlanVectorSpaceLimitMB.
  • Removes NUM_INFINITE and the now-empty billing/utils, whose last callers moved to billing/quota.ts in refactor(web): normalize billing quota semantics in one place #45117.

Fixes SNP-1011

@lyzno1
lyzno1 requested review from iamjoel and zxhlyh as code owners October 30, 2026 03:52
@github-actions github-actions Bot added size:L This PR changes 100-499 lines, ignoring generated files. web This relates to changes on the web. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Oct 30, 2026
@codecov

codecov Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.79%. Comparing base (0f22916) to head (17c83d6).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #45115   +/-   ##
=======================================
  Coverage   89.79%   89.79%           
=======================================
  Files        6240     6239    -1     
  Lines      396353   396344    -9     
  Branches    79945    79938    -7     
=======================================
- Hits       355909   355901    -8     
+ Misses      34143    34142    -1     
  Partials     6301     6301           
Flag Coverage Δ
dify-ui 92.64% <ø> (ø)
web 89.80% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions github-actions Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Oct 30, 2026
hyoban
hyoban previously approved these changes Oct 30, 2026
@lyzno1
lyzno1 added this pull request to the merge queue Oct 30, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Oct 30, 2026
…atalog-d60b78

# Conflicts:
#	web/app/components/billing/utils/__tests__/index.spec.ts
#	web/app/components/billing/utils/index.ts
@lyzno1
lyzno1 added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit 97c97f0 Oct 30, 2026
56 checks passed
@lyzno1
lyzno1 deleted the claude/billing-plan-catalog-d60b78 branch October 30, 2026 04:31
@laipz8200 laipz8200 mentioned this pull request Nov 3, 2026
1 task done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files. web This relates to changes on the web.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants