Skip to content

Feature: Adds ascending/descending sort toggle to Resource Manager#6531

Merged
donker merged 3 commits intodnnsoftware:developfrom
adlzanchetta-trilogy:feature/sort-items-in-resource-manager
May 1, 2025
Merged

Feature: Adds ascending/descending sort toggle to Resource Manager#6531
donker merged 3 commits intodnnsoftware:developfrom
adlzanchetta-trilogy:feature/sort-items-in-resource-manager

Conversation

@adlzanchetta-trilogy
Copy link
Copy Markdown
Contributor

Implements #5430 on 9.13.x

Summary

While allowing the user to sort files by name, date and size, the current implementation of the Resource Manager core module does not allow choosing the sort order (ascending/descending). This implementation adds this functionality.

Changes made

API

Current: The logic for sorting files in ascending/descending order is already implemented in AssetManager.Instance.GetFolderContent(...), but the chain of calls from the endpoint GetFolderContent to the class ItemsManager has no option to change the default ascending order.

Change: Logic for forwarding and taking into consideration the optional HTTP GET argument "sortingOrder" is implemented. Ascending order is used by default (i.e., when argument is not provided).

Frontend

Current: There is no toggle button for ascending/descending order.

Change: Added the toggle button, state for controlling the selected order, and adjusted existing calls to the API to always include the argument sortingOrder to persist the selected order.

Screenshot 2025-04-30 142344

Resources

Added words "Ascending" and "Descending" to the localization texts so that the respective state name is show when cursor moves over the added button.

Result

Sorting ASC/DESC by name Sorting ASC/DESC by size
Screenshot 2025-04-30 142344 Screenshot 2025-04-30 142431
Screenshot 2025-04-30 142354 Screenshot 2025-04-30 142421

@adlzanchetta-trilogy
Copy link
Copy Markdown
Contributor Author

adlzanchetta-trilogy commented Apr 30, 2025

@microsoft-github-policy-service agree company="Trilogy"

@valadas valadas changed the base branch from release/9.13.9 to develop April 30, 2025 22:35
@valadas valadas added this to the 10.0.2 milestone Apr 30, 2025
Copy link
Copy Markdown
Contributor

@donker donker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this

@donker donker merged commit 27b4dc0 into dnnsoftware:develop May 1, 2025
3 checks passed
@valadas valadas modified the milestones: 10.0.2, 10.1.0 Jul 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants