mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-14 22:50:51 +00:00
feat(profile): persist and expose the date-format preference
Accept dateFormat on the profile PATCH field-by-field, echo it from the profile + /me reads, mirror it into the client auth user, and add the field to the OpenAPI request/response schemas.
This commit is contained in:
1 parent
37e539d0bf
commit
86a9ca2e1e
10 files changed
+57
-1
No files matched your search
@@ -96,6 +96,10 @@ export const GET = apiHandler(async () => {
|
||||
// Hour-cycle display preference (AUTO follows the locale convention,
|
||||
// H12 / H24 pin the cycle). Clients mirror this into their formatters.
|
||||
timeFormat: user.timeFormat ?? "AUTO",
|
||||
// Date-order display preference (AUTO follows the locale convention,
|
||||
// DMY / MDY / YMD pin the field order). Clients mirror this into their
|
||||
// formatters and the <DateField> primitive.
|
||||
dateFormat: user.dateFormat ?? "AUTO",
|
||||
lastReportPracticeName: user.lastReportPracticeName ?? null,
|
||||
// v1.4.47 W3 — per-user Coach opt-out. Default `false` if the
|
||||
// column is absent (partial-deploy rollback safety, see migration
|
||||
|
||||
Reference in new issue
Block a user