Add sort by date in history page#7157
Conversation
|
Hi @anurag2787 nice to see a pr from you again. Did you already take a look at #6214 and the feedback we left on that |
There was a problem hiding this comment.
Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.
Files not reviewed (1)
- src/renderer/views/History/History.css: Language not supported
Comments suppressed due to low confidence (1)
static/locales/en-US.yaml:53
- There is a trailing whitespace at the end of the 'Latest First' text which should be removed for consistency.
DateNewestHistory: Latest First
| :value="sortOrder" | ||
| :select-names="sortByNames" | ||
| :select-values="sortByValues" | ||
| :icon="getIconForSortPreference(setHistorySortOrder)" |
There was a problem hiding this comment.
The getIconForSortPreference function is receiving setHistorySortOrder as its argument; it likely should receive the current sort order (e.g., the value from sortOrder) to determine the correct icon.
| :icon="getIconForSortPreference(setHistorySortOrder)" | |
| :icon="getIconForSortPreference(sortOrder)" |
There was a problem hiding this comment.
tested how copilot would work on this PR. Please disregard if this is a non issue.
Head branch was pushed to by a user without write access
|
In getIconForSortPreference function instead of passing setHistorySortOrder i have passed the value of it sortOrder so that it can determine the correct icon |
efb4f5ff-1298-471a-8973-3d47447115dc
left a comment
There was a problem hiding this comment.
Icon doesnt change like on other pages.
VirtualBoxVM_4KNwAlFBhV.mp4
| Live: Live | ||
| Community: Community | ||
| Sort By: Sort By | ||
| DateOldestHistory: Oldest First |
There was a problem hiding this comment.
| DateOldestHistory: Oldest First | |
| DateOldestHistory: Earliest Watched First |
| Community: Community | ||
| Sort By: Sort By | ||
| DateOldestHistory: Oldest First | ||
| DateNewestHistory: Latest First |
There was a problem hiding this comment.
| DateNewestHistory: Latest First | |
| DateNewestHistory: Latest Watched First |
Head branch was pushed to by a user without write access
|
Fixed Icon change like on other pages 12.04.2025_12.46.03_REC.mp4Also Updated history sort labels |
Head branch was pushed to by a user without write access
|
I have fixed it, the new translation keys now been added to the History instead of Global |
Not quite done reviewing
kommunarr
left a comment
There was a problem hiding this comment.
issue (blocking): When setting order to Earliest Watched First and then new history entries are added, they're shown at the start instead of the end, despite them being the latest entries watched. I believe this is because upsertToHistoryCache is not updated to handle non-default sort methods.
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Head branch was pushed to by a user without write access
Head branch was pushed to by a user without write access
Head branch was pushed to by a user without write access
Head branch was pushed to by a user without write access
c82969d to
e16d423
Compare
|
Conflicts have been resolved. A maintainer will review the pull request shortly. |
|
I have accidentally pushed yarn.lock file in my commit and am now facing some difficulties reverting it back to the original state could you please help me to resolve this |
|
Reversed |
Head branch was pushed to by a user without write access
already implemented, dismissing so this can get merged


Pull Request Type
Related issue
closes #5595
Description
In this PR i have added sort button in the history page where allowing user can organize their watch history either by Latest First or Oldest First where it will shows the watch history in ascending or descending order
Testing
Icon should change
Earliest first should not show latest when new entry added
Sorting doesn't change when user uses keywords to filter
Sort order change affects all other windows and new windows and future app instances
General regression
Demo
Sort By Oldest First
Sort By Latest First
Desktop