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

fix(core): improve redirect behavior after creating account #1088

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

bc-yevhenii-buliuk
Copy link
Contributor

@bc-yevhenii-buliuk bc-yevhenii-buliuk commented Jul 12, 2024

What/Why?

This PR improves redirect behavior after creating account, namely, it adds a banner about the successful creation of an account.

Testing

locally

before:

create-account-redirect.mov

after:

fix-create-account-redirect.mov

@bc-yevhenii-buliuk bc-yevhenii-buliuk requested a review from a team as a code owner July 12, 2024 16:12
Copy link

vercel bot commented Jul 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 Sep 4, 2024 11:58am
8 Skipped Deployments
Name Status Preview Comments Updated (UTC)
catalyst ⬜️ Ignored (Inspect) Sep 4, 2024 11:58am
catalyst-1millionproducts-store ⬜️ Ignored (Inspect) Visit Preview Sep 4, 2024 11:58am
catalyst-au ⬜️ Ignored (Inspect) Visit Preview Sep 4, 2024 11:58am
catalyst-integration-customer-access-token ⬜️ Ignored (Inspect) Visit Preview Sep 4, 2024 11:58am
catalyst-staging ⬜️ Ignored (Inspect) Visit Preview Sep 4, 2024 11:58am
catalyst-test-store ⬜️ Ignored (Inspect) Visit Preview Sep 4, 2024 11:58am
catalyst-uk ⬜️ Ignored (Inspect) Visit Preview Sep 4, 2024 11:58am
catalyst-unstable ⬜️ Ignored (Inspect) Visit Preview Sep 4, 2024 11:58am

Copy link

changeset-bot bot commented Jul 12, 2024

🦋 Changeset detected

Latest commit: ec364c8

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 Patch

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

@bc-yevhenii-buliuk bc-yevhenii-buliuk added the draft Ready for initial review label Jul 12, 2024
@bc-yevhenii-buliuk bc-yevhenii-buliuk force-pushed the fix-create-account-redirect branch 2 times, most recently from efd4eff to 8125b0d Compare July 22, 2024 12:04
@bc-yevhenii-buliuk bc-yevhenii-buliuk requested review from yurytut1993 and bc-alexsaiannyi and removed request for a team July 22, 2024 14:13
@bc-yevhenii-buliuk bc-yevhenii-buliuk marked this pull request as draft July 23, 2024 08:29
@bc-yevhenii-buliuk bc-yevhenii-buliuk force-pushed the fix-create-account-redirect branch 2 times, most recently from e69cf33 to 6c7ee19 Compare July 23, 2024 10:09
Copy link
Contributor

@yurytut1993 yurytut1993 left a comment

Choose a reason for hiding this comment

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

👌

@bc-yevhenii-buliuk bc-yevhenii-buliuk removed the draft Ready for initial review label Jul 23, 2024
@bc-yevhenii-buliuk bc-yevhenii-buliuk changed the title [DRAFT] fix(core): improve redirect behavior after creating account fix(core): improve redirect behavior after creating account Jul 23, 2024
Copy link
Contributor

@bc-alexsaiannyi bc-alexsaiannyi left a comment

Choose a reason for hiding this comment

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

looks good

@bc-yevhenii-buliuk bc-yevhenii-buliuk marked this pull request as ready for review July 23, 2024 11:38
@bc-yevhenii-buliuk bc-yevhenii-buliuk requested a review from a team July 24, 2024 11:52
@bc-yevhenii-buliuk
Copy link
Contributor Author

This PR implements appearance of success banner by adding a search parameter to the URL. Thanks to this parameter we can control banner appearance.

Another possible solution to implement was to use the context and change its status to "success" after redirecting to the account page, but due to reloading the browser after the redirect, the context returns to its initial state with an "idle" status, which does not allow the banner to be displayed.

Open to suggestions, thanks!

Copy link
Contributor

@bc-alexsaiannyi bc-alexsaiannyi left a comment

Choose a reason for hiding this comment

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

Looks good. Just don't forget to fix linter errors)

Copy link
Contributor

@bc-azvierieva bc-azvierieva left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@bc-yevhenii-buliuk bc-yevhenii-buliuk added this pull request to the merge queue Sep 4, 2024
Merged via the queue into main with commit 644361e Sep 4, 2024
14 checks passed
@bc-yevhenii-buliuk bc-yevhenii-buliuk deleted the fix-create-account-redirect branch September 4, 2024 12:05
@github-actions github-actions bot mentioned this pull request Sep 4, 2024
Copy link
Contributor

github-actions bot commented Sep 4, 2024

⚡️🏠 Lighthouse report

Lighthouse ran against https://catalyst-latest-oxswlvsl3-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 98
🟢 Accessibility 100
🟢 Best practices 96
🟠 SEO 82

📱 Mobile

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

Category Score
🟠 Performance 87
🟢 Accessibility 100
🟢 Best practices 96
🟠 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.

7 participants