Add sort options to Contributing Open Issues page#1755
Merged
makermelissa merged 3 commits intoadafruit:mainfrom Apr 15, 2026
Merged
Add sort options to Contributing Open Issues page#1755makermelissa merged 3 commits intoadafruit:mainfrom
makermelissa merged 3 commits intoadafruit:mainfrom
Conversation
Add a 'Sort by' dropdown to the Open Issues tab on the /contributing page, allowing users to sort issues by: - Default (server-rendered order) - Newest first (fewest open days) - Oldest first (most open days) Sorting works by parsing the '(Open X days)' text already present in each issue title. Both issues within each library and the libraries themselves are sorted. Sort and filter selections are preserved in URL parameters and restored on page load / back button. Changes: - contributing/open_issues.html: Add sort dropdown, add id to label filter select for cleaner JS targeting - assets/javascript/contributing.js: Rewrite to support both label filtering and age-based sorting with original order restore - assets/sass/pages/_contributing.scss: Add flexbox layout for the filter/sort controls Fixes adafruit#645
Contributor
Author
|
Closing — changes will be submitted from the maintainer's fork instead. |
Simplify sorting by reading days_open from the issue data via a data attribute on each li element, replacing the regex title parser.
Sort library groups alongside issues when using Newest/Oldest sort. Libraries are ordered by their best matching issue (min days for newest, max days for oldest). Default restores alphabetical order. - Add id='libraries-list' to top ul for reliable targeting - Add getBestDays() helper to find representative issue age per library - Restore both library and issue order when switching back to Default
makermelissa
approved these changes
Apr 15, 2026
Collaborator
makermelissa
left a comment
There was a problem hiding this comment.
Tested and it's working well.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Sort by dropdown to the /contributing/open-issues page, allowing users to sort open issues by age.
Live page: https://circuitpython.org/contributing/open-issues
Sort options:
Sorting is parsed from the
(Open X days)text already present in each issue title from the libraries JSON feed. Both issues within each library and the library groups themselves are sorted.Features:
?sort=newest&label=bug)Changes:
contributing/open_issues.htmlidfor cleaner JS targetingassets/javascript/contributing.jsassets/sass/pages/_contributing.scssScreenshots
The sort dropdown appears inline next to the existing label filter:
Fixes #645