racket / racket-pkg-website

A frontend for the Racket Package Catalog.
Other
11 stars 16 forks source link

Alerts for Outstanding Package Maintenance #47

Closed cfinegan closed 7 years ago

cfinegan commented 7 years ago

This pull request adds a field to the package website main page which tells the user how many packages currently require maintenance. Any package which fails to build, has failing tests, or is without documentation or tags counts towards this total. By clicking a link within this field, the user can filter the table so that only packages with outstanding maintenance are displayed, sorted by the maintenance required.

This functionality was implemented by adding a new (invisble) column to the packages table containing the "todo value" of that row. The "todo value" is an integer representing what kind of maintenance is required on that package.

The table is then sorted and filtered based on this predicate.

All of the new front-end functionality has been tested, but I wasn't able to get the backend HTML generation working on my machine. If there are any errors in this pull request, they're most likely in src/site.rkt.

This is what the page looks like after a fresh reload: pkg_fresh_screenshot

Here it is after the user clicks the "show todos" link: pkg_filtered_screenshot

Here you can view a short demo that I recorded demonstrating the new functionality.