neojato / DeLorean-v2

A Professional Template for large GDG events. This project has been designed to continue to be your DevFest/IWD website solution without having to create a new site or Firebase project every year.
https://delorean-demo.firebaseapp.com
MIT License
47 stars 54 forks source link

Sections' and Sessions' sort order cannot be influenced #30

Open MrCsabaToth opened 6 years ago

MrCsabaToth commented 6 years ago

The Sections and Sessions right now are listed in the order they were entered. There should be a way to change that order.

Expected Behavior

To have some kind of a way to change the order of sessions and sections.

Current Behavior

The Sections and Sessions right now are listed in the order they were entered.

Possible Solution

Either explicitly manually set a rank variable (just like for sponsor levels), or at some later point we can introduce some list widget which allows ordering by drag & drop on the UI?

Steps to Reproduce

  1. Add a new Section. It will be added to the end.
  2. Add a new Session within a Section. It will be added to the end of the Section.

Detailed Description

Normally we'd want to list the sessions grouped by location and sorted by time within that location. The time is currently a free text entry, so it's easier to rely on an explicit rank field, and that will allow more flexibility than an assumed ordering/grouping.

Possible Implementation

Add a rank field to both Section and Session. Allow the entry and edition of that value, and later maybe even GUI drag & drop order list widget editing at some point in the future.

MrCsabaToth commented 6 years ago

neojato commented 6 years ago

@MrCsabaToth I plan on testing your PR tonight and will merge asap.

MrCsabaToth commented 6 years ago

No rush! (the cat suggests otherwise, but no rush)

MrCsabaToth commented 6 years ago

PR https://github.com/neojato/DeLorean-v2/pull/31 resolves this