Skip to content

fix(desktop): preserve theme while the gateway starts - #1067

Merged
nixuuu merged 2 commits into
devfrom
feat/persist-mobile-theme-setting
Nov 21, 2026
Merged

nixuuu merged 2 commits into
devfrom
feat/persist-mobile-theme-setting

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Changes

  • Keep the saved Electron appearance on the loading screen when the gateway cannot supply settings. A reload during an outage otherwise uses the browser defaults and writes them to the desktop cache, which can turn the next database startup screen white.
  • Apply the cached color scheme and both palettes in the document head. A gateway response still takes precedence when it contains appearance settings.

Thanks to @mikuyeyu for reporting the startup flash.

Fixes: #102

Verification

  • Reproduced the white “Starting PostgreSQL…” screen in Electron on nix-pc (Linux). The new live regression fails against the previous web build because the offline reload replaces the saved Dark scheme with System.
  • On nix-pc, the production web build and the live Electron regression passed. The regression covers explicit Dark and Light against the opposite system preference, both System preferences, and persistence across an offline reload. The same regression checks the palette on the startup and migration screens after integrating the latest dev revision. Desktop typecheck and targeted formatting and lint also passed.
  • Checked the loading HTML in Chromium before the app initialized at desktop and phone widths. Both palettes, System, and gateway settings taking precedence rendered as expected.
  • The Android native client was checked on an isolated emulator. It has its own native launch and gateway connection screens. Electron’s database startup screen does not exist on mobile.
  • No UI copy changed. GitHub Actions runs the full repository checks.

@nixuuu
nixuuu enabled auto-merge (squash) November 21, 2026 10:45
@nixuuu
nixuuu disabled auto-merge November 21, 2026 10:50
@nixuuu
nixuuu enabled auto-merge (squash) November 21, 2026 10:52
@nixuuu
nixuuu merged commit b55f88a into dev Nov 21, 2026
17 checks passed
@nixuuu
nixuuu deleted the feat/persist-mobile-theme-setting branch November 21, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant