From 4fde2a6d83d5fe85aa56fb9d3d630f546cb6bbb1 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Mon, 28 Sep 2026 08:34:11 -0400 Subject: [PATCH] feat(auth): GetProfile returns the account theme The Android app's app-chrome theme (UX pass item 6) reads the account theme from GET /api/auth/profile and re-applies it at startup in SERVER sync mode. PUT /api/auth/theme already persisted the value; this completes the round trip on the profile read. --- internal/handlers/auth.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/handlers/auth.go b/internal/handlers/auth.go index 8a6471c..991ba0c 100644 --- a/internal/handlers/auth.go +++ b/internal/handlers/auth.go @@ -101,6 +101,7 @@ type UserProfile struct { FirstName string `json:"first_name"` LastName string `json:"last_name"` Role string `json:"role"` + Theme string `json:"theme,omitempty"` } type UpdateProfileRequest struct { @@ -502,6 +503,7 @@ func (h *AuthHandler) GetProfile(c *echo.Context) error { FirstName: firstName, LastName: lastName, Role: user.Role, + Theme: user.Theme.String, }) }