Allow configuring default sort order for built-in list pages #4698
ivanvasyliuk
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Background
Vendure v2 used the legacy Admin UI where administrators had certain expectations about how lists were sorted by default. When migrating to the new React dashboard (v3), the default sort order for some built-in pages changed (e.g. the product list now sorts by updatedAt DESC by default — hardcoded in products.tsx).
This breaks muscle memory for existing administrators who are used to a different default sort order from the previous admin UI.
Problem
There is currently no way to customize the default sort order for built-in list pages through the extension API. The DashboardDataTableExtensionDefinition does not expose a defaultSort property.
The only workaround is patching node_modules via patch-package, which is fragile and needs to be maintained across upgrades.
Feature request
Add a defaultSort property to DashboardDataTableExtensionDefinition so that the default sort order can be configured per-project without modifying the source:
This would allow teams migrating from v2 to easily match the sort behavior their administrators are used to, without any patches.
Vendure version: 3.6.2
All reactions