Skip to content

Add more information to useful-not-found-page #4617

Closed

Description

@fregante

Description

Renamed files turn into 404s, but we add a link to the commit history:

Screen Shot 9

What we if were more explicit about what happened to the file and link to the last known version?

Example:

  • the file was deleted by bab4ba 3 months ago
  • the file was renamed to a.jsx
  • the branch doesn't exist
  • see the last version

Arguably these links are more useful than the breadcrumbs resolution and can be appended to the page as the API calls resolve

Example URL

https://github.com/gorhill/uBlock/blob/master/assets/ublock/resources.txt

Activity

  1. gamemaker1 commented on Aug 6, 2021

    @gamemaker1
    Contributor

    Hi there!

    I would like to take up this issue, but I noticed that it has the under discussion label. Is there something I should know before taking it up or could I take a crack at it?

    Thanks

  2. fregante commented on Aug 6, 2021

    @fregante
    MemberAuthor

    under discussion means that the details are not exact and further suggestions are welcome. You could either propose an improved UI to include all of that information or just add one or 2 more links.

    I think the core code change here is fetching the last commit that affected the file and then find out what happened to it (deleted or renamed) and then point to the previous commit.

    But again I haven't looked into the details, so alternative/better implementations are welcome.

  3. gamemaker1 commented on Aug 7, 2021

    @gamemaker1
    Contributor

    Hi!

    Thanks for the reply. I couldn't think of an improved UI to display this info, so I took a crack at adding it to the page. I opened a draft PR for this (#4646), it would be great if you could take a look at the changes I made.

    Thanks a lot!

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions