diff --git a/CHANGELOG.md b/CHANGELOG.md index a04d715..387d5e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,30 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [2.1.0] - 2026-11-18 + +### Added +- Mail Rules editor under Account > Filters & Auto-Replies: + - Rules listed as readable sentences, with an enable switch and reordering by drag and drop, keyboard or menu. + - Rule builder with "all / any" conditions, exceptions and actions on compact rows. +- Blocked senders and Safe senders pages under Account > Filters & Auto-Replies. +- Vacation Response page with a date range picker. +- Weekly schedule editor for working hours (Account > Calendars > Settings) and mail rule schedules. +- Searchable time zone picker that shows UTC offsets and offers the browser's time zone. +- Local time and local date fields, with a time input that follows the 12-hour or 24-hour clock of the user's locale. +- Pasting several values at once into list fields, with duplicate and invalid entry reporting. + +### Changed +- Map entries use the value format their key declares in the schema, so the maximum disk space quota is entered with the size field (unit selector) and shown with units. +- Account pages follow the account selected in the top bar, including management settings. +- Forms check required fields and minimum item counts inside nested lists before saving. + +### Fixed +- Lists below their minimum number of entries are reported on the field before saving. +- On phones, select menus no longer cut off long labels, popovers keep a margin from the screen edge, and object pickers no longer show an empty row. +- Search boxes use a clear button that matches the theme. +- Switching an object to another variant (for example an MTA route from Local to MX) no longer fails with "name: required": unchanged immutable fields are now sent with the new variant. + ## [2.0.6] - 2026-11-13 ### Fixed diff --git a/package-lock.json b/package-lock.json index f62738b..c864625 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,14 +1,17 @@ { "name": "stalwart-webui", - "version": "2.0.4", + "version": "2.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "stalwart-webui", - "version": "2.0.4", + "version": "2.1.0", "dependencies": { "@daypicker/react": "^10.0.2", + "@dnd-kit/core": "^6.3.1", + "@dnd-kit/sortable": "^10.0.0", + "@dnd-kit/utilities": "^3.2.2", "@fontsource-variable/inter": "^5.3.0", "@fontsource-variable/jetbrains-mono": "^5.3.0", "@fontsource-variable/plus-jakarta-sans": "^5.3.0", @@ -387,6 +390,59 @@ } } }, + "node_modules/@dnd-kit/accessibility": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@dnd-kit/accessibility/-/accessibility-3.1.1.tgz", + "integrity": "sha512-2P+YgaXF+gRsIihwwY1gCsQSYnu9Zyj2py8kY5fFvUM1qm2WA2u639R6YNVfU4GWr+ZM5mqEsfHZZLoRONbemw==", + "license": "MIT", + "dependencies": { + "tslib": "^2.0.0" + }, + "peerDependencies": { + "react": ">=16.8.0" + } + }, + "node_modules/@dnd-kit/core": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/@dnd-kit/core/-/core-6.3.1.tgz", + "integrity": "sha512-xkGBRQQab4RLwgXxoqETICr6S5JlogafbhNsidmrkVv2YRs5MLwpjoF2qpiGjQt8S9AoxtIV603s0GIUpY5eYQ==", + "license": "MIT", + "dependencies": { + "@dnd-kit/accessibility": "^3.1.1", + "@dnd-kit/utilities": "^3.2.2", + "tslib": "^2.0.0" + }, + "peerDependencies": { + "react": ">=16.8.0", + "react-dom": ">=16.8.0" + } + }, + "node_modules/@dnd-kit/sortable": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/@dnd-kit/sortable/-/sortable-10.0.0.tgz", + "integrity": "sha512-+xqhmIIzvAYMGfBYYnbKuNicfSsk4RksY2XdmJhT+HAC01nix6fHCztU68jooFiMUB01Ky3F0FyOvhG/BZrWkg==", + "license": "MIT", + "dependencies": { + "@dnd-kit/utilities": "^3.2.2", + "tslib": "^2.0.0" + }, + "peerDependencies": { + "@dnd-kit/core": "^6.3.0", + "react": ">=16.8.0" + } + }, + "node_modules/@dnd-kit/utilities": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@dnd-kit/utilities/-/utilities-3.2.2.tgz", + "integrity": "sha512-+MKAJEOfaBe5SmV6t34p80MMKhjvUz0vRrvVJbPT0WElzaOJ/1xs+D+KDv+tD/NE5ujfrChEcshd4fLn0wpiqg==", + "license": "MIT", + "dependencies": { + "tslib": "^2.0.0" + }, + "peerDependencies": { + "react": ">=16.8.0" + } + }, "node_modules/@emnapi/core": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.11.1.tgz", diff --git a/package.json b/package.json index 2874580..1eb5e17 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "stalwart-webui", "private": true, - "version": "2.0.6", + "version": "2.1.0", "stalwart": { "minServerVersion": "1.0.0" }, @@ -18,6 +18,9 @@ }, "dependencies": { "@daypicker/react": "^10.0.2", + "@dnd-kit/core": "^6.3.1", + "@dnd-kit/sortable": "^10.0.0", + "@dnd-kit/utilities": "^3.2.2", "@fontsource-variable/inter": "^5.3.0", "@fontsource-variable/jetbrains-mono": "^5.3.0", "@fontsource-variable/plus-jakarta-sans": "^5.3.0", @@ -78,4 +81,4 @@ "typescript-eslint": "^8.71.2", "vite": "^8.3.4" } -} \ No newline at end of file +} diff --git a/src/components/common/ObjectPicker.tsx b/src/components/common/ObjectPicker.tsx index 414af4b..df77168 100644 --- a/src/components/common/ObjectPicker.tsx +++ b/src/components/common/ObjectPicker.tsx @@ -36,9 +36,12 @@ export function ObjectPicker({ schema, objectName, label, value, onChange, onCle const noPermissionMessage = useNoPermissionMessage(schema, objectName); return ( - + {value && ( - + {labelLoading ? (