mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-18 16:12:11 +00:00
fix(settings): let the display name change after the setup flow
The setup flow asks for the name the greeting and the reports use, and the profile route has always accepted it, but no settings surface offered the field and /api/auth/me did not publish it. A name chosen on the first day stayed for good. The account payload now carries `displayName`, the profile card shows the field beside the username and saves it with the rest of the profile, and an emptied field clears the name.
This commit is contained in:
1 parent
6037ebd3d6
commit
1e606834d8
6 files changed
+299
-30
No files matched your search
@@ -157,6 +157,12 @@ export interface AuthUser {
|
||||
* Defaults to `false` when the field is absent (a stale /me payload).
|
||||
*/
|
||||
disableCoach: boolean;
|
||||
/**
|
||||
* The name the app addresses the account by (dashboard greeting, reports),
|
||||
* null when none was given. Edited on the profile card. Optional in the
|
||||
* type so a stale /me payload coerces to "no display name".
|
||||
*/
|
||||
displayName?: string | null;
|
||||
/**
|
||||
* v1.7.0 — optional patient-identity fields used by the health-record
|
||||
* export (PDF cover + FHIR Patient). All optional; `insuranceNumber`
|
||||
|
||||
Reference in new issue
Block a user