tivac / crucible

API CMS UI powered by Firebase, mithril, and my own dwindling sanity. Oh, and acronyms.
MIT License
117 stars 20 forks source link

Give user ability to choose how items are sorted. #136

Open ctcleary opened 8 years ago

ctcleary commented 8 years ago

Sort by options:

Although I realize this is going to wreak havoc on the pagination stuff I'm currently working on, and bloat the hell out of it.

kevinkace commented 8 years ago

published_at/unpublished_at etc could be filters as well.

tivac commented 8 years ago

More & more convinced we should ditch the current nav paradigm and do the table-style like keystone. I think it would simplify the pagination stuff a fair bit and make the UI for how to sort on different fields much clearer.

ctcleary commented 8 years ago

It would. If you want to go that way for sure, say the word and I'll stop fiddling with this wonky pagination style I got goin here.

tivac commented 8 years ago

make it so

tivac commented 8 years ago

Does #139 cover this one as well @ctcleary?

ctcleary commented 8 years ago

So the last question isn't left dangling, the new listing page does not provide sort_by functionality. Everything is sorted by updated_at.

Implementing sort_by on timestamp data should be somewhat easy. Providing sort by on alphabetical data will be trickier and probably require a separate or bifurcated PageState