fix(uve): sort content palette by 'Most Popular' in descending usage …#35851
fix(uve): sort content palette by 'Most Popular' in descending usage …#35851Neehakethi wants to merge 1 commit into
Conversation
…order (#35848) The 'Sort by Most Popular' option was passing direction: 'ASC' to the sort command, which put the lowest-usage content types first. Changed to 'DESC' so highest-usage content types appear at the top. Also updated the corresponding unit tests to reflect the corrected direction, and added a new test asserting that the popular option is marked active when currentSort is { orderby: 'usage', direction: 'DESC' }. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Claude finished @Neehakethi's task in 1m 11s —— View job ReviewThe fix is correct and well-scoped: "Most Popular" now passes One thing worth a second look: Stale
If you want to handle it transparently, the cleanest spot is the Minor:
Otherwise clean. |
…order (#35848)
The 'Sort by Most Popular' option was passing direction: 'ASC' to the sort command, which put the lowest-usage content types first. Changed to 'DESC' so highest-usage content types appear at the top.
Also updated the corresponding unit tests to reflect the corrected direction, and added a new test asserting that the popular option is marked active when currentSort is { orderby: 'usage', direction: 'DESC' }.
Screen.Recording.2026-05-27.at.1.25.27.PM.mov