WordPoints / wordpoints

Points plugin for WordPress
GNU General Public License v2.0
20 stars 15 forks source link

Make items in How To Get Points list orderable #609

Open JDGrimes opened 7 years ago

JDGrimes commented 7 years ago

This used to be possible in the old points hooks API, by rearranging the hook instances. However, the reactions are now shown basically in the order that they are created, I think. It has been requested that they be ordered based on the number of points, high to low. But probably we should allow it to be ordered either way, and maybe not just via a shortcode attribute or something, but via the UI when a user is viewing the table. Probably we should just order from high to low by default though, except that current ordering of the points hooks will be maintained on legacy sites.

I think perhaps this could tie in with #575.

See https://trello.com/c/2r8z8Ut6.

JDGrimes commented 7 years ago

It was suggested that this could be based on the order of the event boxes on the Points Types screen. The problem here though is that there can be multiple reactions for each event, so this only lets you order them at the event level, not at the reaction level. (Two reactions for the same event would always be next to each other then.)

Custom ordering would be desirable though in some cases, but maybe this can be supplied by a module? Or perhaps the UI should be re-imagined? But no, it should be possible to order the reactions differently on different pages if desired, so this is where dashboards would come in.

Perhaps we should, at the very least, make it more clear what the ordering on that screen affects.