Skip to content
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): add components for change password #665

Merged
merged 2 commits into from
Mar 26, 2024
Merged

Conversation

bc-alexsaiannyi
Copy link
Contributor

What/Why?

This PR adds second step for changing password.

Testing

locally

@bc-alexsaiannyi bc-alexsaiannyi requested a review from a team as a code owner March 18, 2024 13:55
Copy link

changeset-bot bot commented Mar 18, 2024

🦋 Changeset detected

Latest commit: 8b7a497

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@bigcommerce/catalyst-core Minor

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

Copy link

vercel bot commented Mar 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
catalyst-latest ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 26, 2024 7:54pm
4 Ignored Deployments
Name Status Preview Comments Updated (UTC)
catalyst-1millionproducts-store ⬜️ Ignored (Inspect) Visit Preview Mar 26, 2024 7:54pm
catalyst-au ⬜️ Ignored (Inspect) Visit Preview Mar 26, 2024 7:54pm
catalyst-storybook ⬜️ Ignored (Inspect) Visit Preview Mar 26, 2024 7:54pm
catalyst-uk ⬜️ Ignored (Inspect) Visit Preview Mar 26, 2024 7:54pm

Comment on lines 96 to 98
if (submit.status === 'failed') {
setFormStatus({ status: 'error', message: submit.error ?? '' });
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we just use the same status strings between the action and the component? What if submitChangePasswordForm returned status: 'error' when an error occurred? It could potentially simplify this 🙂

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, Matt. I've refactored it already

Comment on lines 7 to 8
newPassword: z.string().min(7),
confirmPassword: z.string().min(7),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should min length be taken from password fields settings via GQL?

Copy link
Contributor

⚡️🏠 Lighthouse report

We ran Lighthouse against the changes and produced this report. Here's the summary:

Category Score
🟢 Performance 97
🟢 Accessibility 100
🟠 Best practices 78
🟢 SEO 92

Lighthouse ran against https://catalyst-latest-qm1f12yp1-bigcommerce-platform.vercel.app/

@bc-alexsaiannyi bc-alexsaiannyi added this pull request to the merge queue Mar 26, 2024
Merged via the queue into main with commit 980e481 Mar 26, 2024
11 checks passed
@bc-alexsaiannyi bc-alexsaiannyi deleted the change-password branch March 26, 2024 19:57
This was referenced Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants