Closed lukevella closed 2 months ago
The latest updates on your projects. Learn more about Vercel for Git βοΈ
The changes primarily involve restructuring how pricing data is imported and utilized across multiple files. The pricingData
is now directly imported from a new module, simplifying previous data-fetching processes. Various components have been updated to reflect these changes, enhancing type safety and streamlining props. Additionally, the exports
field in the billing package's package.json
has been modified to improve accessibility to TypeScript files.
Files | Change Summary |
---|---|
apps/landing/src/pages/pricing.tsx , apps/web/src/app/[locale]/(admin)/settings/billing/page.tsx |
Updated pricing data import and component props to reflect new structure; removed data fetching logic and caching mechanism. |
apps/web/src/app/[locale]/(admin)/settings/billing/billing-plans.tsx |
Modified PricingData type by removing id properties from pricing objects. |
packages/billing/package.json |
Added export pattern for TypeScript files in the src directory. |
packages/billing/src/pricing.ts |
Introduced new pricingData constant with monthly and yearly pricing details. |
sequenceDiagram
participant User
participant PricingPage
participant PricingData
User->>PricingPage: Request Pricing Page
PricingPage->>PricingData: Import pricingData
PricingPage->>User: Display Pricing Information
In fields of code, I hop with glee,
New paths unfold, oh so free!
Pricing data dances with grace,
In structured forms, it finds its place.
From monthly gold to yearly cheer,
A rabbitβs joy, for all to hear! π°β¨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Relying on the Stripe API for building the app with dynamic pricing data caused flakiness in our CI. Instead we simply define our pricing data statically. Since it does not change very often this should not be a problem.
Summary by CodeRabbit
New Features
Bug Fixes
id
properties from pricing plans to streamline data management.Chores