Skip to content

Conversation

@vekkele
Copy link
Contributor

@vekkele vekkele commented Jun 11, 2025

Summary

  1. Extract plan utils to separate module
  2. Update naming for SubscriptionPlan -> Plan and getPlanName -> getPlanDisplayName
  3. Plan now is enum-like object with key same as value
  4. checkIsBusinessPlan and checkIsConsumerPlan now accepts raw plan name instead of object
  5. BUSINESS_PLANS and CONSUMER_PLANS sets are now NOT exposed. (use checkIsBusinessPlan and checkIsConsumerPlan instead). Can it lead to any problems?
  6. Because of previous point getProductPlans now accepts planChecker function instead of set of plans
  7. New isPlanEligibleFor helper is added and used in getCustomerSubscriptionData function. NOTE: There are slight logical changes in computing isPro and similar flags, but now they are more logical
  8. Treat all plans starting from CUSTOM as CUSTOM

Notion card

https://www.notion.so/santiment/Finish-user-profile-page-with-new-data-1e02a82d13618079afbce9cdf0aac4b3?source=copy_link

@vekkele vekkele self-assigned this Jun 11, 2025
@vekkele vekkele requested a review from DmitriVanGuard June 11, 2025 08:25
vekkele added 3 commits July 10, 2025 10:55
# Conflicts:
#	src/lib/utils/object.ts
# Conflicts:
#	src/lib/ui/app/PaymentForm/flow.ts
#	src/lib/ui/app/SubscriptionPlan/PlanButton.svelte
#	src/lib/ui/app/SubscriptionPlan/plans.ts
#	src/lib/ui/app/SubscriptionPlan/utils.ts
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.

2 participants