Skip to content

Commit

Permalink
MWPW-160200: clean up sort options for caas (#3031)
Browse files Browse the repository at this point in the history
* Revert "MWPW-156749: Fix video CLS " (#2899) (#2900)

Revert "MWPW-156749: Fix video CLS  (#2849)"

This reverts commit d4134c8.

* MWPW-157946: added colon to be consistent with other sort options

* MWPW-157946: rearranged sort orders

* missed changing the way last modified was displayed

* missed changing the way last modified was displayed

* missed changing the way last modified was displayed

---------

Co-authored-by: milo-pr-merge[bot] <169241390+milo-pr-merge[bot]@users.noreply.github.com>
Co-authored-by: Okan Sahin <39759830+mokimo@users.noreply.github.com>
Co-authored-by: Blaine Gunn <Blainegunn@gmail.com>
Co-authored-by: Sheridan Sunier <sunier@Sheridans-MacBook-Pro.local>
Co-authored-by: Sheridan Sunier <sunier@sheridans-mbp.corp.adobe.com>
  • Loading branch information
6 people authored Oct 23, 2024
1 parent 111cda1 commit 55d31ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions libs/blocks/caas-config/caas-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ const defaultOptions = {
featured: 'Featured',
dateDesc: 'Date: (Newest to Oldest)',
dateAsc: 'Date: (Oldest to Newest)',
modifiedDesc: 'Date: (Last Modified, Newest to Oldest)',
modifiedAsc: 'Date (Last Modified, Oldest to Newest)',
modifiedDesc: 'Modified Date: (Newest to Oldest)',
modifiedAsc: 'Modified Date: (Oldest to Newest)',
eventSort: 'Events: (Live, Upcoming, OnDemand)',
titleAsc: 'Title: (A - Z)',
titleDesc: 'Title: (Z - A)',
Expand Down Expand Up @@ -546,10 +546,10 @@ const SortPanel = () => {
<div>Sort options to display:</div>
<div class="sort-options">
<${Input} label="Featured Sort" prop="sortFeatured" type="checkbox" />
<${Input} label="Date: (Oldest to Newest)" prop="sortDateAsc" type="checkbox" />
<${Input} label="Date: (Newest to Oldest)" prop="sortDateDesc" type="checkbox" />
<${Input} label="Date (Last Modified, Oldest to Newest)" prop="sortModifiedAsc" type="checkbox" />
<${Input} label="Date: (Last Modified, Newest to Oldest)" prop="sortModifiedDesc" type="checkbox" />
<${Input} label="Date: (Oldest to Newest)" prop="sortDateAsc" type="checkbox" />
<${Input} label="Modified Date: (Oldest to Newest)" prop="sortModifiedAsc" type="checkbox" />
<${Input} label="Modified Date: (Newest to Oldest)" prop="sortModifiedDesc" type="checkbox" />
<${Input} label="Events" prop="sortEventSort" type="checkbox" />
<${Input} label="Title A-Z" prop="sortTitleAsc" type="checkbox" />
<${Input} label="Title Z-A" prop="sortTitleDesc" type="checkbox" />
Expand Down
6 changes: 3 additions & 3 deletions libs/blocks/caas/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,10 +293,10 @@ const buildComplexQuery = (andLogicTags, orLogicTags, notLogicTags) => {
const getSortOptions = (state, strs) => {
const sortVals = {
featured: 'Featured',
dateAsc: 'Date: (Oldest to Newest)',
dateDesc: 'Date: (Newest to Oldest)',
modifiedDesc: 'Date: (Last Modified, Newest to Oldest)',
modifiedAsc: 'Date (Last Modified, Oldest to Newest)',
dateAsc: 'Date: (Oldest to Newest)',
modifiedDesc: 'Modified Date: (Newest to Oldest)',
modifiedAsc: 'Modified Date: (Oldest to Newest)',
eventSort: 'Events: (Live, Upcoming, OnDemand)',
titleAsc: 'Title A-Z',
titleDesc: 'Title Z-A',
Expand Down

0 comments on commit 55d31ee

Please sign in to comment.