Skip to content

[stable33] feat: default sort by creation date#6886

Merged
vitormattos merged 3 commits intostable33from
backport/6884/stable33
Feb 14, 2026
Merged

[stable33] feat: default sort by creation date#6886
vitormattos merged 3 commits intostable33from
backport/6884/stable33

Conversation

@backportbot-libresign
Copy link

Backport of PR #6884

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>
@github-project-automation github-project-automation bot moved this to 0. Needs triage in Roadmap Feb 14, 2026
@backportbot-libresign backportbot-libresign bot added this to the Next RC (33) milestone Feb 14, 2026
@vitormattos vitormattos merged commit 5b74622 into stable33 Feb 14, 2026
60 checks passed
@vitormattos vitormattos deleted the backport/6884/stable33 branch February 14, 2026 01:51
@github-project-automation github-project-automation bot moved this from 0. Needs triage to 4. to release in Roadmap Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: 4. to release

Development

Successfully merging this pull request may close these issues.

1 participant

Comments