-
-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Free drops requires activated email #8668
Conversation
✅ Deploy Preview for koda-canary ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
AI-Generated Summary: This pull request involves updates for handling email confirmation in the application. It has brought changes over six files which include components/collection/drop/Generative.vue, components/collection/drop/modal/ConfirmEmail.vue, components/collection/drop/modal/DropConfirmModal.vue, and locales/en.json. It also created two new files - components/collection/drop/modal/ConfirmEmail.vue and public/email-subscription.svg. There has been a major change in the Generative.vue, implementing functions for email subscription and checking subscription. Also, a new Vue component for ConfirmEmail has been introduced. The changes are oriented towards adding functionality for both subscribing to an email and confirming the subscription. Additionally, this commit has also updated some labels in the locale file and introduced new utility functions in utils/newsletter.ts for subscribing and getting subscription status for an email. Overall, the update improves the email subscription and confirmation feature in the application. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dark-mode svg?
@prury pls test the following scenarios
it might be hard to test , but this is how it should work thanks |
or on a previous drop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
smoll, otherwise lgtm
</template> | ||
|
||
<script setup lang="ts"> | ||
import ModalIdentityItem from '@/components/shared/ModalIdentityItem.vue' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
auto imported
import ModalIdentityItem from '@/components/shared/ModalIdentityItem.vue' |
|
||
<hr class="m-0 mb-2 mt-5" /> | ||
|
||
<div class="capitalize is-size-7 has-text-k-grey"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<div class="capitalize is-size-7 has-text-k-grey"> | |
<div class="capitalize text-xs text-k-grey"> |
|
||
onMounted(() => { | ||
if (preferencesStore.getNewsletterSubscription.confirmed) { | ||
emailConfirmed.value = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make this value computed instead?
utils/newsletter.ts
Outdated
|
||
export async function getSubscription(email: string) { | ||
try { | ||
return api<SubscriptionByEmailResponse>(`/subscribe/${email}`, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no await?
utils/newsletter.ts
Outdated
|
||
export async function resendConfirmationEmail(email: string) { | ||
try { | ||
return api('/subscribe/resend-confirmation', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no await?
seems like an issue on beehiiv's end , that endpoint doesn't handle emails with special chars but when you try to get it using their api , 404 is returned switched to using subscription id -> kodadot/workers#234 |
let's see if it build oka |
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
Code Climate has analyzed commit 04e2ceb and detected 0 issues on this pull request. View more on Code Climate. |
Thanks! |
😍 Perfect, I’ve sent the payout 🪅 Let’s grab another issue and get rewarded! |
PR Type
Context
Did your issue had any of the "$" label on it?
Community participation
Screenshot 📸
Copilot Summary
copilot:summary
copilot:poem