Repository navigation
fix(web): keep modules visible when switching to manual sort - #10342
JunaidAhamed-7777 wants to merge 1 commit into
Conversation
Do not copy the descending prefix onto the Manual option. Both module views expect sort_order, and -sort_order falls through to an empty list.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Description
Switching to Manual from any descending module sort makes the active or archived module list empty. The dropdown sends
-sort_order, but the list only recognizessort_order. The invalid preference also survives a reload.Use the option being selected, rather than the current sort mode, to decide whether to keep the descending prefix. Manual always sends
sort_order; other sortable columns keep the current direction. If an invalid preference was already saved, selecting Manual again replaces it.Type of Change
Screenshots and Media (if applicable)
No visual design changes. The authenticated browser flow was not run.
Test Scenarios
An isolated regression harness exercised the actual React dropdown click handlers and the module ordering utility using pinned dependencies: five regressions failed on unchanged
preview; all 13 cases passed with the fix. Web formatting, lint and route type generation/TypeScript checks passed. The unchanged workspace-wide check was blocked by the local i18n generator's socket requirement; it was not verified end to end. No backend files changed.References
Found while tracing module sorting. This is separate from #10204, which corrects the actual descending sort of several fields; it does not change the dropdown.
Summary by CodeRabbit