-
Notifications
You must be signed in to change notification settings - Fork 219
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(core): reset password #638
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
8 Ignored Deployments
|
ab9842f
to
4b8b462
Compare
🦋 Changeset detectedLatest commit: 1093c67 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Needs changeset 🦋 |
4b8b462
to
12f657a
Compare
12f657a
to
c15a4de
Compare
c15a4de
to
bc839ba
Compare
bc839ba
to
f9135e6
Compare
e9ed37d
to
0517143
Compare
0517143
to
1445935
Compare
<Button | ||
className="relative w-fit items-center px-8 py-2" | ||
data-button | ||
disabled={pending} | ||
variant="primary" | ||
> | ||
<> | ||
{pending && ( | ||
<> | ||
<span className="absolute z-10 flex h-full w-full items-center justify-center bg-gray-400"> | ||
<Spinner aria-hidden="true" className="animate-spin" /> | ||
</span> | ||
<span className="sr-only">{t('spinnerText')}</span> | ||
</> | ||
)} | ||
<span aria-hidden={pending}>{t('submitText')}</span> | ||
</> | ||
</Button> |
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.
Just noticed the same component is used in #665 change password form.
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.
Yeah. Actually, now we have around 6 forms with submit button which are different basically only with their texts. I was thinking about creating abstraction with text
params that will return <SubmitButton>
& reuse it across all forms💅 That why for now I decide to keep it separately.
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.
Looks good but we do need to know if we want to have a different path to reset passwords other than reusing /login
🤔
Yeah, it's a good point, Jorge. Now, when
|
1445935
to
3310ae0
Compare
3310ae0
to
6d5ca09
Compare
} | ||
|
||
return { | ||
status: 'failed', |
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.
should we change status
to error
here?
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.
Hmm, I was sure that I did change it. Thanks for catching this.
6d5ca09
to
b7eb25b
Compare
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.
👌
b7eb25b
to
baa74d5
Compare
baa74d5
to
1093c67
Compare
⚡️🏠 Lighthouse reportWe ran Lighthouse against the changes and produced this report. Here's the summary:
Lighthouse ran against https://catalyst-latest-llo8m97m6-bigcommerce-platform.vercel.app/ |
What/Why?
This PR adds functionality to reset password for Customer and includes 2 steps:
it's based on PR with mutations.
Testing
locally