Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order in list of projects #1112

Open
ritwik12 opened this issue Dec 13, 2018 · 11 comments
Open

Order in list of projects #1112

ritwik12 opened this issue Dec 13, 2018 · 11 comments

Comments

@ritwik12
Copy link
Collaborator

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.

@juliankrieger
Copy link
Contributor

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

@ritwik12
Copy link
Collaborator Author

@juliankrieger That could be the reason.

@juliankrieger
Copy link
Contributor

@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

@ritwik12
Copy link
Collaborator Author

@juliankrieger Sure, take your time.

@utkarsh-raj
Copy link

Is the issue still on ? @ritwik12

@shiftkey
Copy link
Member

shiftkey commented Feb 5, 2019

List of projects seems random on the website.

Some context behind the current behaviour:

@stale

This comment has been minimized.

@stale stale bot added the wontfix label Oct 16, 2019
@shiftkey shiftkey removed the wontfix label Oct 16, 2019
@deltafactory
Copy link

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

@shiftkey
Copy link
Member

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

@akhutail
Copy link

akhutail commented Jul 17, 2020

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

@camerondevuk
Copy link

const github
const discord.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants