open-swe/ui/src/routes
Johannes du Plessis 30d5d55f0f
feat: add dark mode support to web UI (#1436)
* feat: add dark mode support to web UI

Add a persisted, system-aware theme with a Light/Dark/System toggle in
the sidebar user menu. An inline head script applies the stored theme
before paint to avoid a flash, and the agents-ui surface gets dark
overrides for its --ui-* variables.

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>

* fix: use static theme init script to satisfy CodeQL

Build the no-FOUC theme script from a fully static string literal
instead of interpolating THEME_STORAGE_KEY, so no value flows into
code construction (CodeQL "Improper code sanitization").

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>

* fix: avoid theme flip on hydration for persisted preferences

Only apply a theme after the stored preference is read, instead of
eagerly applying the default "system" theme on first effect. This
prevented a brief flip to the OS theme (then back) on load for users
with a saved preference that differs from their OS setting.

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>

---------

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
2026-06-06 12:06:31 -07:00
..
agents feat: add scheduled web agents (#1422) 2026-06-05 02:20:24 +00:00
__root.tsx feat: add dark mode support to web UI (#1436) 2026-06-06 12:06:31 -07:00
admin.tsx fix: make default repository configurable (#1429) 2026-06-05 13:48:47 -07:00
agents.tsx feat: add Agents chat UI for cloud threads (#1323) 2026-05-22 18:15:59 +00:00
cloud-agents.tsx fix: stabilize agent selector defaults (#1414) 2026-06-04 21:06:25 +00:00
index.tsx feat: add Agents chat UI for cloud threads (#1323) 2026-05-22 18:15:59 +00:00
integrations.tsx feat: open Slack-triggered PRs as the triggering user (#1375) 2026-06-02 15:04:20 -07:00
login.tsx feat: refactor UI into sidebar layout (#1318) 2026-05-20 14:13:23 -07:00
my-settings.tsx fix: stabilize agent selector defaults (#1414) 2026-06-04 21:06:25 +00:00
review.tsx feat: inject org-wide guidelines into reviewer prompt (#1431) 2026-06-05 13:49:30 -07:00
review_.repositories.$owner.tsx feat: restructure Open SWE Review tab + wire create_prs (#1319) 2026-05-21 09:17:07 -07:00
review_.styles.tsx feat: restructure Open SWE Review tab + wire create_prs (#1319) 2026-05-21 09:17:07 -07:00
usage.tsx fix: precompute usage tab caches (#1434) 2026-06-06 08:11:53 -07:00