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

Re-order plugin entries by downloads count #284

Open
KrystianLesniak opened this issue Sep 19, 2023 · 5 comments
Open

Re-order plugin entries by downloads count #284

KrystianLesniak opened this issue Sep 19, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@KrystianLesniak
Copy link
Contributor

Hi there.

As I see, currently Flow Launcher displays plugins in plugin store in the same order as they are present in plugins.json.
For small number of plugins it was fine, but right now when a lot of plugins have been created for Flow Launcher a lot of very useful and appreciated by users plugins may be at the end of the list in shadow of plugins created earlier.

My proposed quick and easy solution for this problem is to reorder plugins in plugin.json using downloads_count property exposed by GitHub API:
https://api.github.com/repos/{repository_author}/{repository_name}/releases.

Changes in the code will perform:

  1. Send a request to the API
  2. Iterate through records from API and sum downloads_count property
  3. Order items by sum of downloads_count

As we know Flow Launcher is becoming a powerful tool thanks to it's strong community and plugins, this feature will result in much more pleasing user experience, especially for new users:

  • New users will know right away which plugins are widely used and appreciated.
  • Plugin store will be less cluttered with non-widely used plugins as they will be at the end of the list.
  • Better UI experience as you do not have to scroll to the bottom of a large list to find something specific that is popular.
@jjw24 jjw24 added the enhancement New feature or request label Sep 21, 2023
@jjw24
Copy link
Member

jjw24 commented Sep 21, 2023

Hey, good suggestion and topic for discussion.

We haven't introduced this intentionally, because haven't quite figured out what type of ordering is fair.

Would ordering by downloads mean that new plugins will miss out being at the top? Will plugins that have been in the store for a while rack up more counts than recent ones?

Would this type of ordering discourage plugin developers of a fair chance if users just gravitate towards the most popular ones?

Let's clarify and discuss before implementing.

@Flow-Launcher/team

@deefrawley
Copy link
Member

A good topic for discussion. I think ordering by downloads would be unfair to new plugins, or indeed very good plugins that just have a niche user base. Given we have the search functionality in the plugin store I think sorting alphabetically is the only really fair option (we also have a 'new plugin' section at the top). Perhaps we could sort this way but still show the download count on the plugin card?

@VictoriousRaptor
Copy link
Contributor

Maybe we can add a category called “popular plugins”?

@z1nc0r3
Copy link
Member

z1nc0r3 commented Sep 22, 2023

As @VictoriousRaptor's suggestion, adding a "popular plugins" category could be a great way to highlight widely used plugins without affecting the default sorting order.

@JohnTheGr8
Copy link
Member

Maybe we can add a category called “popular plugins”?

my 2 cents: instead of popular plugins, we can mark certain plugins as featured to indicate that we consider them useful, functional, maintained etc.

In practice:

  • we add a is_featured field to the json file in this repo
  • the app will list featured plugins at the top and shuffle the rest of the plugins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants