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

[catalog] 404 page when entity is not found #2266

Closed
shmidt-i opened this issue Sep 3, 2020 · 9 comments · Fixed by #2654 · 4 remaining pull requests
Closed

[catalog] 404 page when entity is not found #2266

shmidt-i opened this issue Sep 3, 2020 · 9 comments · Fixed by #2654 · 4 remaining pull requests
Labels
frontend good first issue Good for newcomers help wanted Help/Contributions wanted from community members

Comments

@shmidt-i
Copy link
Contributor

shmidt-i commented Sep 3, 2020

Current implementation in plugins/catalog/src/hooks/useEntity is to redirect to catalog root if the entity is not found. This is not the pattern we want to have moving forward, instead we want to show a 404 page.

@shmidt-i shmidt-i created this issue from a note in Mammalian Mathematician (To do) Sep 3, 2020
@shmidt-i shmidt-i added good first issue Good for newcomers help wanted Help/Contributions wanted from community members frontend labels Sep 3, 2020
@BA1RY
Copy link
Contributor

BA1RY commented Sep 12, 2020

@shmidt-i I would like to work on this issue.
How do you want me to implement it?

@shmidt-i
Copy link
Contributor Author

Hey @BA1RY, good question 😄
We will come back with suggestion during the week!

@shmidt-i
Copy link
Contributor Author

So we discussed it and settled on a following solution:
If a route in the App doesn't have a corresponding match as in react-router route match, then we should show standard mic drop 404 page.
Have said that, everything under /catalog/* becomes delegated to the catalog plugin and App is not responsible for 404s there. Which leads us to the notion of "Empty state" for the catalog, particularly when the entity is not found. So if @katz95 and @nikek can chime in and help us with design, something very similar to the beautiful work done in #2179, but for the case of "entity doesn't exist", that would be super cool! 🙌

@BA1RY
Copy link
Contributor

BA1RY commented Sep 21, 2020

@shmidt-i Understood. So we'll need to create a separate 404 page for /catalog. I'll be happy to work on this.

@katz95
Copy link
Contributor

katz95 commented Sep 24, 2020

Great work so far! Thanks for your work so far. Attaching an image of a design for this particular error state. You can access it the specs here https://www.figma.com/community/file/850673348101741100

Entity not Found

@BA1RY
Copy link
Contributor

BA1RY commented Sep 25, 2020

@katz95 Thank you. It looks great.
@shmidt-i Do you want a page specifically for 404 Entity not found or a general Error page which can be used to show all errors related to catalog?

@shmidt-i
Copy link
Contributor Author

@BA1RY let's start with 404 Entity not found and then can add a general error page for the catalog as a next step ;)

@BA1RY
Copy link
Contributor

BA1RY commented Sep 25, 2020

@shmidt-i Got it.
@shmidt-i @katz95 I just made a PR. Please have a look at it and let me know if there are any corrections to be made. Thanks a lot.
Also, is the favorite icon necessary as the entity itself is not present?

@benjdlambert
Copy link
Member

Think we can close this now as the PR has been merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment