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

Remove full page load link from confirm/[token] page #2248

Merged
merged 4 commits into from
Sep 4, 2022
Merged

Remove full page load link from confirm/[token] page #2248

merged 4 commits into from
Sep 4, 2022

Conversation

bryanjenningz
Copy link
Collaborator

@bryanjenningz bryanjenningz commented Sep 2, 2022

Closes #2249

Before this change, there was a link that did a full page load on the confirm password change page (e.g. /confirm/123).
This change removes that full page load link and instead uses the Next.js Link component which improves performance by not doing a full page load (https://nextjs.org/docs/messages/no-html-link-for-pages).

How to test:

  • Go to /confirm/123.
  • Type in a new password twice and hit ENTER.
  • Click the dashboard link and confirm that a full page load doesn't happen anymore and the page loads faster.

@vercel
Copy link

vercel bot commented Sep 2, 2022

@bryanjenningz is attempting to deploy a commit to the c0d3-prod Team on Vercel.

A member of the Team first needs to authorize it.

@@ -16,9 +17,9 @@ const initialValues = {

const ConfirmSuccess: React.FC = () => (
<Card type="success" title="Password has been set!">
<a className="btn btn-primary btn-lg mb-3" role="button" href="/curriculum">
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It seems like screen readers should view this as a link rather than a button, so I removed role="button".

@codecov
Copy link

codecov bot commented Sep 2, 2022

Codecov Report

Merging #2248 (272f501) into master (33c2467) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master     #2248   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          175       175           
  Lines         2969      2969           
  Branches       796       796           
=========================================
  Hits          2969      2969           
Impacted Files Coverage Δ
pages/confirm/[token].tsx 100.00% <ø> (ø)

@vercel
Copy link

vercel bot commented Sep 2, 2022

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

Name Status Preview Updated
c0d3-app ✅ Ready (Inspect) Visit Preview Sep 4, 2022 at 6:59AM (UTC)

@flacial
Copy link
Member

flacial commented Sep 2, 2022

May you create and link an issue to it (Closes #1234)?

@bryanjenningz
Copy link
Collaborator Author

May you create and link an issue to it (Closes #1234)?

Done

@bryanjenningz bryanjenningz merged commit e32c673 into garageScript:master Sep 4, 2022
@bryanjenningz bryanjenningz deleted the remove-full-page-load-dashboard-link branch September 4, 2022 07:04
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.

Remove full page load link from confirm/[token] page
4 participants