ResistanceCalendar / resistance-calendar-frontend

A central listing of upcoming progressive events
https://resistance-calendar-staging.herokuapp.com/
MIT License
7 stars 8 forks source link

Specify sort order for events #92

Closed aaghevli closed 7 years ago

aaghevli commented 7 years ago

See the docs for the API for examples:

https://github.com/ResistanceCalendar/resistance-calendar-api#ordering

Specifically by start date (default order is asc): http://resistance-calendar.herokuapp.com/v1/events?$orderby=start_date http://resistance-calendar.herokuapp.com/v1/events?$orderby=start_date%20desc

dorono commented 7 years ago

Gonna be out for a while, unassigning myself since it's the weekend and don't want to prevent anyone else from working on this.

dorono commented 7 years ago

Gonna be out for a while, unassigning myself since it's the weekend and don't want to prevent anyone else from working on this.

pfarnach commented 7 years ago

@InciteDemocracy what sort order do we want for this? Do we want to set a default, or expose the option to the user with a toggle button or something? (obviously the former would be simpler to implement)

InciteDemocracy commented 7 years ago

For starters we just need events to be in chronological order. When you arrive at the site events happening today will be displayed at the top, scrolling down them gets you to events happening tomorrow, etc. (V2 can include sorting by proximity and attendance etc.)

This is related to issue: https://github.com/ResistanceCalendar/resistance-calendar-frontend/issues/89

pfarnach commented 7 years ago

Resolved with https://github.com/ResistanceCalendar/resistance-calendar-frontend/pull/109