up-for-grabs.net icon indicating copy to clipboard operation
up-for-grabs.net copied to clipboard

Order in list of projects

Open ritwik12 opened this issue 5 years ago • 11 comments

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.

ritwik12 avatar Dec 13 '18 16:12 ritwik12

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 avatar Dec 13 '18 22:12 juliankrieger

@juliankrieger That could be the reason.

ritwik12 avatar Dec 15 '18 16:12 ritwik12

@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 avatar Dec 16 '18 15:12 juliankrieger

@juliankrieger Sure, take your time.

ritwik12 avatar Dec 18 '18 14:12 ritwik12

Is the issue still on ? @ritwik12

utkarsh-raj avatar Feb 05 '19 10:02 utkarsh-raj

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

shiftkey avatar Feb 05 '19 13:02 shiftkey

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.

stale[bot] avatar Oct 16 '19 12:10 stale[bot]

Where does this stand? It sounds like #110 got closer but wasn't completed?

deltafactory avatar Oct 18 '19 02:10 deltafactory

@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 avatar Oct 18 '19 10:10 shiftkey

@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...

akhutail avatar Jul 17 '20 17:07 akhutail

const github const discord.js

camerondevuk avatar Dec 13 '22 20:12 camerondevuk