bidluo / Lemur

WIP Lemmy Client for iOS. Built for iOS 17
GNU General Public License v3.0
7 stars 0 forks source link

Sorting #7

Closed bidluo closed 1 year ago

bidluo commented 1 year ago

Objective

Provide a user with the ability to sort posts and comments according to various criteria. The sorting options for comments are "Hot", "Top", "New", and "Old". The sorting options for posts include "Active", "Hot", "New", "Old", "TopDay", "TopWeek", "TopMonth", "TopYear", "TopAll", "MostComments", "NewComments", "TopHour", "TopSixHour", "TopTwelveHour", "TopThreeMonths", "TopSixMonths", and "TopNineMonths". The time-bound "TopX" sort options should be contained within a submenu in the main sort menu.

User Stories

As a user, I want to:

  1. Sort the posts and comments I view according to my preferred criteria.
  2. Easily change my sorting preference in the UI.

Acceptance Criteria

  1. Posts and comments should be sortable according to the described criteria.
  2. The UI should offer an easy way to change the sorting preference.
  3. The “Top*" sorting options for posts should be arranged in a submenu, clearly separated from the main sorting options.

Required API Fields

Post

https://join-lemmy.org/api/types/SortType.html sort param on post list API call with one of these options

Comment

https://join-lemmy.org/api/types/CommentSortType.html sort param on the comment list API call with one of these options

Out of Scope

  1. Remembering sort
  2. Applying multiple sorting options at once.