Open brennerthomas opened 2 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
public | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 12, 2024 4:27pm |
The changes in this pull request primarily involve expanding the NewsletterSubscriptionData
type to include French (fr
) and Italian (it
) as valid language options alongside German (de
) and English (en
). The SubscriptionInfoForm
component is updated to incorporate a loading spinner during form submission and to handle the new language options. Additionally, environment variables are introduced for SendGrid configuration, enhancing flexibility. The overall structure and logic of the affected components remain unchanged, focusing on improving language support and user feedback during the subscription process.
File Path | Change Summary |
---|---|
shared/src/sendgrid/SendgridSubscriptionClient.ts | Updated NewsletterSubscriptionData type to include language: 'fr' | 'it' in addition to existing options. |
website/src/app/[lang]/[region]/(website)/newsletter/subscription-info-form.tsx | Added SpinnerIcon for loading feedback, introduced isSubmitting state, and updated language handling logic. |
functions/src/webhooks/stripe/index.ts | Replaced hardcoded constants for list IDs with environment variable references for flexibility. |
website/src/app/api/newsletter/subscription/public/route.ts | Updated POST function to use environment variables for list IDs instead of constants. |
website/src/app/api/newsletter/subscription/route.ts | Modified GET and POST functions to utilize environment variables for list IDs. |
website/.env.development | Added new environment variables: SENDGRID_LIST_ID , SENDGRID_SUPPRESSION_LIST_ID , and SENDGRID_API_KEY . |
NewsletterSubscriptionData
type in the main PR.In the meadow where rabbits play,
A new language blooms today.
With a spin and a hop, we share,
French and Italian, showing we care.
Loading spinners twirl with glee,
As we welcome all, come join our spree! 🐇✨
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?
Visit the preview URL for this PR (updated for commit 7713446):
https://si-admin-staging--pr939-sendgrid-issue-879-887zku6a.web.app
(expires Tue, 19 Nov 2024 16:28:18 GMT)
🔥 via Firebase Hosting GitHub Action 🌎
Sign: b7b0969384059dce6ea8fad1ee1d1737e54e6676
Summary by CodeRabbit
New Features
Bug Fixes
Chores
Content Updates