up-for-grabs.net
up-for-grabs.net copied to clipboard
Order in list of projects
List of projects seems random on the website. I guess we can have some sort of order like Alphabetically
, maximum number of issues first
or Most recent projects first
. Some order will be good to have.
I think the last time I looked, the order of projects was indeed created at random. There should be a shuffle
somewhere in either main.js or projectService.js, which is the cause of the problem
@juliankrieger That could be the reason.
@ritwik12 there exists the line
if (!ordering) {
ordering = _.shuffle(_.range(_projectsData.projects.length));
if (canStoreOrdering) {
sessionStorage.setItem("projectOrder", JSON.stringify(ordering));
}
}
in projectService.js, I'll look into it when i have time
@juliankrieger Sure, take your time.
Is the issue still on ? @ritwik12
List of projects seems random on the website.
Some context behind the current behaviour:
- #27 and #33 - we wanted to avoid alphabetical sorting because it favours some projects over others
- #110 was where we refined this approach (by storing information on the client) so it was randomized the first time the user arrives on the page, but the sort order wouldn't jump around when the user reloaded the page
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Where does this stand? It sounds like #110 got closer but wasn't completed?
@deltafactory I don't have any strong feelings on this (I've been mostly looking at infrastructure and maintenance tasks at the moment) but if someone wants to explore these ideas I think these categories are possible with the information we have available:
- alphabetically (explicitly sort A-Z, or then Z-A)
- number of issues (most projects now have stats available when rendering the site)
- sort by last updated (we don't track when a project was added, but we know when a repository was last active using the GitHub API)
Rather than going straight to opening a pull request, I'd love to hear someone who is interested in one of these explain their thought process (using words, or mock screenshots, or the modified app working locally) to show:
- how will the user find this in the UI?
- how will choosing an option indicate to the user that the results are sorted?
- how will the user undo the sort state?
It'd be great to give feedback and refine this idea before going too far into the implementation.
@shiftkey We can implement sort option similar to how filter option has been done Sort by Select sorting criterion... Filter by name: Select a project... Filter by label: Select a label...
const github const discord.js