-
Notifications
You must be signed in to change notification settings - Fork 176
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
Feature: 404 page for invalid routes #2289
Conversation
👷 Deploy request for near-wallet-staging pending review. 🔨 Explore the source changes: 9cae3f9 |
Lookin snazzy @worldclassdev |
packages/frontend/src/components/page-not-found/PageNotFound.js
Outdated
Show resolved
Hide resolved
packages/frontend/src/components/page-not-found/PageNotFound.js
Outdated
Show resolved
Hide resolved
packages/frontend/src/components/page-not-found/PageNotFound.js
Outdated
Show resolved
Hide resolved
packages/frontend/src/components/page-not-found/PageNotFound.js
Outdated
Show resolved
Hide resolved
packages/frontend/src/components/page-not-found/PageNotFound.js
Outdated
Show resolved
Hide resolved
packages/frontend/src/components/page-not-found/PageNotFound.js
Outdated
Show resolved
Hide resolved
packages/frontend/src/components/page-not-found/PageNotFound.js
Outdated
Show resolved
Hide resolved
packages/frontend/src/components/page-not-found/PageNotFound.js
Outdated
Show resolved
Hide resolved
packages/frontend/src/components/page-not-found/PageNotFound.js
Outdated
Show resolved
Hide resolved
packages/frontend/src/components/page-not-found/PageNotFound.js
Outdated
Show resolved
Hide resolved
packages/frontend/src/components/page-not-found/PageNotFound.js
Outdated
Show resolved
Hide resolved
packages/frontend/src/components/page-not-found/PageNotFound.js
Outdated
Show resolved
Hide resolved
packages/frontend/src/components/page-not-found/PageNotFound.js
Outdated
Show resolved
Hide resolved
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.
Thanks for your submission Philip! This is looking great. I added a few comments/suggestions above. How much time do you think you spent on putting this PR together?
@worldclassdev thanks for alphabetizing the translations. Did you use some type of tool for this or did you write a script? Thinking that if you have a script, we'd want to run this on file save so that we can keep this pattern going forward :) |
It's slightly difficult to say exactly. But I had the original draft in like 30 minutes(I had already gone through the codebase in the last week, so I utilized styling from the guest landing page). And then worked with Corwin for an extra say 45-60 minutes to iterate through the design a little bit more. |
I used a vs-code extension called Sort JSON Objects. I thought about having a script, but I felt once it was alphabetized, everyone should be able to follow the format and in cases where it isn't, it'd get caught in review. But for automation, I was thinking of using a pre-commit hook. That fixes two things:
|
Great idea to use a pre-commit hook! Is this something you think you'd be able to add with the remaining ~2 out of 4 total hours? No worries if not. |
packages/frontend/src/components/page-not-found/PageNotFound.js
Outdated
Show resolved
Hide resolved
Sure. I started working on it already on a separate branch. |
Awesome! 🙏 |
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.
Great job with this! 💯
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.
👍 This looks great! Nice work. :)
Added a custom 404 page to the wallet codebase. Currently, we don’t have any 404 handling, so any invalid routes always result in the user being re-directed back to the main dashboard page.
Extra
How it works:
When an invalid route is visited:
ActivateAccountWithRouter
component.PageNotFound
component is shown.