Sort direction for epics and roadmaps
Follow up on https://gitlab.com/gitlab-org/gitlab-ee/issues/6494 to add sort direction for the epics view and the roadmap view.
The sort choice and the sort direction should be stored in the BE.
This applies to all the sorts in epics/roadmap view, ie
- Start date
- Due date
- Created date
- Last updated
The UI design should follow https://gitlab.com/gitlab-org/gitlab-ce/issues/39849:
sort-lowest / Low to high / ascending / A–Z / 1-9 / 1918–2018 |
sort-highest / High to low / descending / Z–A / 9-1 / 2018—1918 |
---|---|
![]() |
![]() |
In particular, when you switch to a different sort option, the direction should be defaulted, per the same design logic as https://gitlab.com/gitlab-org/gitlab-ce/issues/39849.
- Start date (ascending)
- Due date (ascending)
- Created date (descending)
- Last updated (descending)
For example, say you are currently looking at the list with Last updated (ascending)
. If you change to Due date
, then the direction will be automatically changed to descending, per the above list.
Say you then change to ascending. Then you log into GitLab with another device and go to the epics list, it will be Due date (ascending)
.
When you first visit epics or roadmaps and nothing is stored in the BE, then you should get Created date (descending)
by default.
The values are unique per instance and shared across epic lists and roadmap views. So if you go to Group A and look at the epics list, and say you select Due date (descending)
. Then you go to Group B and look at the roadmap view. You will also see Due date (descending)
.