Sort selected repositories at top of list in subsequent loads of "Manage repos" view
Created by: quinnkeast
Problem
When the user makes individual repository selections in the "Manage repos" view, saves changes, and then returns to the view again, the selected repositories may be hidden in various subsequent pages, making it hard to quickly reference which repositories are already selected or not selected.
Proposal
On subsequent page loads, always show the selected repositories at the beginning of the list.
- Selected repositories
- Sorted alphabetically (implicitly sorts by prefix, then repository name within prefix)
- Not selected repositories
- Sorted alphabetically (implicitly sorts by prefix, then repository name within prefix)
When a selected repository is de-selected, it remains in place (to prevent jumping around or "losing" a repo that was accidentally de-selected). On subsequent page loads, those repositories would be sorted as usual.
Sample of this sorting in action:
Note: We're deliberately choosing to avoid grouping by code host. Doing so might mean that all repositories from a given code host start on page 4. If the user wants to specifically drill into a given code host, we offer the filter functionality to do so.