chore: release v1.1.3

Fix column sort headers so a third click clears the sort and restores
the list's default order.
This commit is contained in:
Steven RYDELL
2026-08-01 23:31:27 +02:00
parent 41b3824894
commit eda20cbe2f
4 changed files with 15 additions and 6 deletions
+5
View File
@@ -2,6 +2,11 @@
All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/).
## [1.1.3] - 2026-08-01
### Fixed
- Column sort headers now cycle unsorted → ascending → descending → unsorted, so a third click clears the sort and restores the list's default order (previously stuck alternating between ascending and descending).
## [1.1.2] - 2026-08-01 ## [1.1.2] - 2026-08-01
### Added ### Added
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "stalwart-webui-fork", "name": "stalwart-webui-fork",
"version": "1.1.2", "version": "1.1.3",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "stalwart-webui-fork", "name": "stalwart-webui-fork",
"version": "1.1.2", "version": "1.1.3",
"dependencies": { "dependencies": {
"@daypicker/react": "^10.0.1", "@daypicker/react": "^10.0.1",
"@radix-ui/react-alert-dialog": "^1.1.23", "@radix-ui/react-alert-dialog": "^1.1.23",
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "stalwart-webui-fork", "name": "stalwart-webui-fork",
"private": true, "private": true,
"version": "1.1.2", "version": "1.1.3",
"description": "Stalwart WebUI Fork", "description": "Stalwart WebUI Fork",
"type": "module", "type": "module",
"scripts": { "scripts": {
+7 -3
View File
@@ -1018,12 +1018,16 @@ export function DynamicList({ viewName }: DynamicListProps) {
}); });
}, []); }, []);
// Cycle: unsorted → ascending → descending → unsorted (default).
const toggleSort = useCallback((field: string) => { const toggleSort = useCallback((field: string) => {
setSort((prev) => { setSort((prev) => {
if (prev?.field === field) { if (prev?.field !== field) {
return { field, ascending: !prev.ascending }; return { field, ascending: true };
} }
return { field, ascending: true }; if (prev.ascending) {
return { field, ascending: false };
}
return null;
}); });
}, []); }, []);