extiverse / bazaar

The extension marketplace for your Flarum forum.
https://discuss.flarum.org/d/5151
MIT License
59 stars 14 forks source link

Sorting #13

Open jordanjay29 opened 7 years ago

jordanjay29 commented 7 years ago

Sorting would be useful. Search might be better, but sometimes browsing by category can help locate better than search.

So how do we sort? Right now, composer.json gives us mediocre resources. We could use its keywords, but some have crappy keywords (for example, Bazaar uses flarum, extension and flagrow which says nothing useful if we were to sort).

We could manually sort them using flarum.today as a framework (but that would mean pulling from two sources) or using a manual list (but that would mean updating every time a new extension came out, which is less than ideal).

We might be able to sort out languages by looking for the locale tag in composer.json, if that information is supplied in a way we can access.

And at the very least we could sort by author as well.

Not sure how to solve the rest. Might have to wait until real categories are established and enforced for Flarum extensions via composer.json.

luceos commented 7 years ago

Flagrow.io actually is collecting the data in the same way as Flarum.today did.. So it is able to collect tags too.

As to sorting, I decided to read all packages at once for now and simply sort them by name. Another setting I tried out in the past was based on downloads, but that could push your installed extensions way down. The interface needs to allow for more sorting and filtering, I agree.