Closed valieff closed 3 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
foz | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 10, 2024 5:26pm |
lios | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 10, 2024 5:26pm |
moos | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 10, 2024 5:26pm |
traditionaldreamfactory | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 10, 2024 5:26pm |
The recent changes enhance various components and pages within the closer
package. Key modifications include allowing the ArrayConfig
component to handle both text and number input types, refining subscription handling logic, and removing unused functions. These updates aim to improve functionality, particularly in subscription management and input handling.
Files/Paths | Change Summary |
---|---|
packages/closer/components/ArrayConfig/index.tsx |
Updated to render input elements for both 'text' and 'number' types instead of just 'text'. |
packages/closer/pages/bookings/[slug]/checkout.tsx |
Removed the testIt function and adjusted booking enablement logic. |
packages/closer/pages/subscriptions/checkout.tsx |
Modified stripePromise initialization and updated subscription comparison logic. |
packages/closer/pages/subscriptions/index.tsx |
Refined handleNext function to handle priceId with comma-separated values. |
packages/closer/pages/subscriptions/summary.tsx |
Updated subscription plan selection logic to use includes method for priceId comparison. |
The changes are too varied and simple to warrant a sequence diagram.
Objective (Issue #) | Addressed | Explanation |
---|---|---|
When new user subscribes, user.subscription.plan does not seem to be added (#413) | ❓ | The changes do not explicitly address the addition of user.subscription.plan . |
In the code where changes bloom,
Inputs now with numbers loom,
Subscriptions check with care,
Booking logic now laid bare.
With each tweak, our features grow,
In the rabbit's realm, improvements flow.
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?
Subscriptions are now paid via Stripe connect. The subscription plans are still on TDF Stripe account.
The difference to booking payments is that we don't see transactions on Closer Stripe account - only on TDF, but the fee is being collected. This is due to the specifics of recurring payments and the fact that the plans exist on TDF account and not on Closer account.
Should work with BE: https://github.com/closerdao/closer-api/pull/172
Closes https://github.com/closerdao/closer-ui/issues/413 and https://github.com/closerdao/closer-ui/issues/389
Summary by CodeRabbit
New Features
ArrayConfig
component to support both text and number input types.Bug Fixes
testIt
function from the booking checkout process to streamline payment handling.Improvements
stripeAccount
.priceId
values.includes
method for better flexibility.