-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(frontend): improved UX for missing vulnerabilities (#2845)
This commit modifies the 404 flow so that: - when a request for a non-existent vulnerability is received, the 404 page reflects the nature of the failed request - when it is known that the vulnerability failed to import, this is explicitly surfaced A new FAQ entry discussing this is also added. Additionally, the 404 generation was tidied up to make it easier to understand where the 404 comes from. There were many unreachable paths that called `abort()`, which made the code unnecessarily unreadable. It also addresses requests for `/favicon.ico` generating 404's from the redirector by adding an explicit handler for it. ![127 0 0 1_8000_USN-2001-1](https://github.com/user-attachments/assets/5ec0c6cc-9826-4220-852c-cc1a7e274141) ![127 0 0 1_8000_foo_bar_baz](https://github.com/user-attachments/assets/1005d0bc-3253-48d8-bb56-8ac4ddb9a065) ![127 0 0 1_8000_list_q=USN-2001-1 ecosystem=](https://github.com/user-attachments/assets/1b82bbd7-7ad4-4b68-9b92-ee99f1777c0e) Part of #2190 --------- Co-authored-by: Rex P <[email protected]>
- Loading branch information
1 parent
21ea844
commit 11770e9
Showing
4 changed files
with
71 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters