foodcoops / foodsoft

Web-based software to manage a non-profit food coop (product catalog, ordering, accounting, job scheduling).
https://foodcoops.net/
Other
326 stars 146 forks source link

Allow ordering of categories #87

Open wvengen opened 11 years ago

wvengen commented 11 years ago

Currently it does not seem to be able to order categories. This can be quite confusing; the "Other" category, for example, would be placed best at the end; or cheese and milk could follow each other.

bennibu commented 11 years ago

+1, but in the next milestone.

wvengen commented 11 years ago

This may be part of a solution: https://github.com/swanandp/acts_as_list or some others https://www.ruby-toolbox.com/categories/Active_Record_Sortables

Then, on the ui-side of things, something like this perhaps: https://harryche2008.wordpress.com/2008/07/19/how-to-do-ajax-style-drag-n-drop-sorting-with-rails/

when also tackling foodcoop-adam#30, one of https://www.ruby-toolbox.com/categories/Active_Record_Nesting (some of which include ordering)

wvengen commented 10 years ago

Done in foodcoop-adam's beta branch, plus nested categories. Would need backporting to foodcoops' version, or adoption of the new user-interface.

twothreenine commented 2 years ago

This would be great (along with nested categories). Is it possible to adopt this from foodcoop-adam?

twothreenine commented 5 months ago

Related to #1068.

Especially if you have a supplier with a broad product range with both fresh and dry goods, it is really inconvenient to have e.g. Beverages with 20 sorts of juice at the top and Vegetables at the bottom of a list of hundreds of articles. You'd want to put fresh goods to the top, as usually these are the articles that change the most often, so members will see the current offers at first when opening the order.

In my coop, this was so important that I renamed all 43 categories manually with prefixes like (a) to (z). Perhaps spaces could have been a workaround as well (works for sorting links).

A drag & drop list would be the best solution, I guess. Nesting would also be great, but way less important.