fix(settings): lint, size and test follow-ups for the date format

The admin reset link is a component of its own instead of one made during render, the version line of the plugin panels moved into small modules, the new settings rows hand their save on as void, the date picker takes an accessible name for fields without a visible label (the Vacay hire date), the Vacay and poll tests type through the shared picker, and the theme, size and lint baselines are lowered to what the files hold now.
This commit is contained in:
Maurice
2026-11-03 22:08:54 +01:00
parent 44c6fbf372
commit adbe3a40f6
19 changed files with 188 additions and 99 deletions
+8 -1
View File
@@ -43,7 +43,14 @@ export const WEEK_START_DAY: Record<WeekStart, number> = { monday: 1, sunday: 0,
* own order and separator. Dates written with a month name ("3 Nov") keep the
* language's wording either way.
*/
export const DATE_FORMAT_VALUES = ['auto', 'YYYY-MM-DD', 'YYYY/MM/DD', 'DD.MM.YYYY', 'DD/MM/YYYY', 'MM/DD/YYYY'] as const;
export const DATE_FORMAT_VALUES = [
'auto',
'YYYY-MM-DD',
'YYYY/MM/DD',
'DD.MM.YYYY',
'DD/MM/YYYY',
'MM/DD/YYYY',
] as const;
export type DateFormat = (typeof DATE_FORMAT_VALUES)[number];
export const dateFormatSchema = z.enum(DATE_FORMAT_VALUES);
/** What a user who never picked one gets. */