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): remove account status provider with toast messages #1749

Merged
merged 6 commits into from
Dec 12, 2024

Conversation

chanceaclark
Copy link
Contributor

What/Why?

Remove the rest of the account status provider usages and move over to using toasts.

I also had to adjust a few things for all the pages to work correctly:

  • The login route was statically generated, which prevented an auth check on the page. Needed to remove that static generation.

Testing

Updated and ran the test suite to verify all functionality worked the same.

@chanceaclark chanceaclark requested a review from a team as a code owner December 12, 2024 20:45
Copy link

vercel bot commented Dec 12, 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 Dec 12, 2024 9:21pm
catalyst-soul ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 9:21pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
catalyst ⬜️ Ignored (Inspect) Dec 12, 2024 9:21pm
catalyst-au ⬜️ Ignored (Inspect) Visit Preview Dec 12, 2024 9:21pm
catalyst-uk ⬜️ Ignored (Inspect) Visit Preview Dec 12, 2024 9:21pm

@@ -35,5 +35,5 @@ test('Account is not created if email is already in use', async ({ page, account

await page.getByRole('button', { name: 'Create account' }).click();

await expect(page.getByText('The email address is already in use.')).toBeVisible();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just had to fix an issue in the wordpress issue, but this is a security concern allowing bad actors find out if email addresses are valid. Changed it over to a more generic error.

@chanceaclark chanceaclark changed the title Feat/auth toast feat(core): remove account status provider with toast messages Dec 12, 2024
Copy link

changeset-bot bot commented Dec 12, 2024

🦋 Changeset detected

Latest commit: 005d7aa

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

@chanceaclark chanceaclark added this pull request to the merge queue Dec 12, 2024
Merged via the queue into main with commit cacdd22 Dec 12, 2024
13 of 14 checks passed
@chanceaclark chanceaclark deleted the feat/auth-toast branch December 12, 2024 22:19
@github-actions github-actions bot mentioned this pull request Dec 12, 2024
Copy link
Contributor

⚡️🏠 Lighthouse report

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

🖥️ Desktop

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

Category Score
🟢 Performance 95
🟢 Accessibility 96
🟢 Best practices 100
🟠 SEO 82

📱 Mobile

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

Category Score
🟢 Performance 92
🟢 Accessibility 96
🟢 Best practices 100
🟠 SEO 85

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.

2 participants