Skip to content

feat: add theme_mode, theme_light, theme_dark to UserAppearanceSettings - #25076

Merged
jaaydenh merged 16 commits into
mainfrom
feat/theme-mode-api
May 14, 2026
Merged

jaaydenh merged 16 commits into
mainfrom
feat/theme-mode-api

Conversation

@jaaydenh

@jaaydenh jaaydenh commented May 8, 2026

Copy link
Copy Markdown
Contributor

Part 1: Backend portion of a change broken into 2 PRs.
Part 2: #25077

Adds three new UserAppearanceSettings fields (theme_mode, theme_light, theme_dark) on top of the existing theme_preference and terminal_font. Replaces GetUserThemePreference and GetUserTerminalFont with a single GetUserAppearanceSettings aggregate query. The PUT handler is wrapped in db.InTx so sync-mode's mode + slot writes can never half-apply.

Adds three new UserAppearanceSettings fields (theme_mode, theme_light,
theme_dark) on top of the existing theme_preference and terminal_font.
Replaces GetUserThemePreference and GetUserTerminalFont with a single
GetUserAppearanceSettings aggregate query. The PUT handler is wrapped
in db.InTx so sync-mode's mode + slot writes can never half-apply.
@jaaydenh jaaydenh self-assigned this May 8, 2026
@github-actions

github-actions Bot commented May 8, 2026

Copy link
Copy Markdown
Contributor

Docs preview

📖 View docs preview for docs/reference/api/schemas.md

jaaydenh and others added 2 commits May 12, 2026 13:17
# Conflicts:
#	coderd/database/dbauthz/dbauthz.go
#	coderd/database/dbmetrics/querymetrics.go
#	coderd/database/dbmock/dbmock.go
#	coderd/database/querier.go
#	coderd/database/queries.sql.go

@DanielleMaywood DanielleMaywood left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code is fine but the comments are a little over the top

Comment thread coderd/users.go Outdated
Comment thread codersdk/users.go Outdated
Comment thread codersdk/users.go Outdated
Comment thread codersdk/users.go Outdated
Comment thread codersdk/users.go Outdated
@jaaydenh
jaaydenh merged commit 024132e into main May 14, 2026
31 checks passed
@jaaydenh
jaaydenh deleted the feat/theme-mode-api branch May 14, 2026 04:44
@github-actions github-actions Bot locked and limited conversation to collaborators May 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants