Skip to content

feat: add sort by publication date & fix case-insensitive search#2054

Open
gauravsaini wants to merge 2 commits into
ubuntu:mainfrom
gauravsaini:fix/add-sort-options-1993
Open

feat: add sort by publication date & fix case-insensitive search#2054
gauravsaini wants to merge 2 commits into
ubuntu:mainfrom
gauravsaini:fix/add-sort-options-1993

Conversation

@gauravsaini

Copy link
Copy Markdown

Summary

Changes

Sort by publication date

  • Added publishedDateAsc and publishedDateDesc to SnapSortOrder enum
  • Publication date uses the latest release date across all available channels
  • Added new sort options to search page dropdown
  • Added l10n strings for the new sort options

Case-insensitive search

  • Fixed filtering of featured snaps in categories to be case-insensitive
  • Previously, searching for 'py' would not match 'Python' due to case-sensitive comparison

Add new sort options to search results:
- Publication date (Oldest first)
- Publication date (Newest first)

The publication date is determined by the latest release date
across all available channels for each snap.

Also fix case-sensitive filtering in category search results.
When filtering featured snaps by name within categories, the search
is now case-insensitive. Previously, searching for 'py' would not
match 'Python' due to case-sensitive string comparison.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant