[stable33] feat: default sort by creation date#6886
Merged
vitormattos merged 3 commits intostable33from Feb 14, 2026
Merged
Conversation
Change the default file list sorting from name (ascending) to creation date (descending) to display the most recently created files first. This improves user experience by showing latest documents at the top of the list. - Default sorting_mode: 'created_at' (was 'name') - Default sorting_direction: 'desc' (was 'asc') - toggleSortBy now resets to 'asc' for any new column selection Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Update unit tests to match the new default sorting behavior: - Mock loadState now returns 'created_at' and 'desc' as defaults - Test expectations updated to reflect new initial state - 'toggleSortingDirection' test now expects 'asc' after toggle (from 'desc') - Test for saved settings now expects 'created_at' and 'desc' values Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Simplify Vue mock configuration in vuelidate.spec.js to properly track the use() method call. Replace complex mock setup with direct mock object that preserves method call tracking across module resets. - Update mock to use simple object with vi.fn() for use method - Add beforeEach to clear mock between tests - Ensure mockUse is properly tracked when plugin is imported Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of PR #6884