Skip to content

fix(ui): move language selector to general settings - #104638

Merged
vyctorbrzezowski merged 2 commits into
openclaw:mainfrom
vyctorbrzezowski:brzezowski/settings-language
Jul 11, 2026
Merged

vyctorbrzezowski merged 2 commits into
openclaw:mainfrom
vyctorbrzezowski:brzezowski/settings-language

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Jul 11, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The Control UI language selector currently lives in Overview alongside Gateway connection fields, while Settings > General does not expose the preference.

Why This Change Was Made

This PR moves the existing locale selector and persistence behavior into a full-width General card in Settings. It reuses the existing Control UI select styling and removes the selector from Overview without changing the supported locale list.

User Impact

Users can find and change the Control UI language under Settings > General, where a global interface preference is expected.

Evidence

Before on origin/main

Settings > General starts with Model & Thinking and has no language preference.

Before: General settings without a language selector

Proposed in this PR

Settings > General includes a full-width General card with the styled language selector.

Proposed: language selector in General settings

Validated with:

  • node scripts/run-vitest.mjs ui/src/pages/config/quick.test.ts ui/src/pages/overview/view.render.test.ts — 29 tests passed
  • node scripts/run-tsgo.mjs -p tsconfig.ui.json --incremental --tsBuildInfoFile /tmp/settings-language-ui.tsbuildinfo
  • node_modules/.bin/oxfmt --check ui/src/pages/config/config-page.ts ui/src/pages/config/quick.test.ts ui/src/pages/config/quick.ts ui/src/pages/overview/overview-page.ts ui/src/pages/overview/view.render.test.ts ui/src/pages/overview/view.ts ui/src/styles/config-quick.css
  • git diff --check origin/main...HEAD
  • Mocked Control UI verification at /overview and /settings/general

AI-assisted: yes. I reviewed the diff and understand the changes.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Jul 11, 2026
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review July 11, 2026 19:07
@clawsweeper

clawsweeper Bot commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 11, 2026, 4:11 PM ET / 20:11 UTC.

Summary
Moves the existing Control UI language selector from Overview into a full-width Settings > General card while preserving supported locales and UiSettings.locale persistence.

PR surface: Source -3, Tests -14. Total -17 across 7 files.

Reproducibility: not applicable. This PR relocates an existing selector rather than fixing a failing runtime contract, and the inspected screenshots establish the before-and-after placement.

Review metrics: none identified.

Stored data model
Persistent data-model change detected: serialized state: ui/src/pages/overview/view.render.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🐚 platinum hermit ✨ media proof bonus
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • none.

Next step before merge

  • No automated repair is warranted; this maintainer-associated protected PR should proceed through ordinary maintainer merge handling.

Security
Cleared: The patch is limited to Control UI rendering, styling, and tests and introduces no concrete security or supply-chain concern.

Review details

Best possible solution:

Land the focused single-owner relocation through normal maintainer handling, keeping the language preference backed by the existing UiSettings.locale persistence and i18n paths.

Do we have a high-confidence way to reproduce the issue?

Not applicable; this PR relocates an existing selector rather than fixing a failing runtime contract, and the inspected screenshots establish the before-and-after placement.

Is this the best way to solve the issue?

Yes. Moving the sole selector to ConfigPage's existing Settings workspace and deleting the Overview-specific callback is the narrowest maintainable solution without adding configuration or persistence surface.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against e34bff22763d.

Label changes

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. Inspected before-and-after screenshots directly demonstrate the changed Settings > General behavior, and the repository's real-behavior-proof check passes.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before-and-after screenshots directly demonstrate the changed Settings > General behavior, and the repository's real-behavior-proof check passes.

Label justifications:

  • P3: This is a focused, low-risk Control UI discoverability improvement for an existing preference.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before-and-after screenshots directly demonstrate the changed Settings > General behavior, and the repository's real-behavior-proof check passes.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before-and-after screenshots directly demonstrate the changed Settings > General behavior, and the repository's real-behavior-proof check passes.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before-and-after screenshots directly demonstrate the changed Settings > General behavior, and the repository's real-behavior-proof check passes.
Evidence reviewed

PR surface:

Source -3, Tests -14. Total -17 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 5 54 57 -3
Tests 2 20 34 -14
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 74 91 -17

What I checked:

  • Canonical settings ownership: The branch handles locale changes in ConfigPage by updating the existing persisted UI settings and the i18n runtime, rather than introducing another storage path. (ui/src/pages/config/config-page.ts:587, 448071e5c8fb)
  • Persisted locale remains authoritative: The Settings renderer uses a supported persisted settings.locale before falling back to the active i18n locale, preserving the pre-hydration selection invariant from Overview. (ui/src/pages/config/config-page.ts:823, 448071e5c8fb)
  • Single selector surface: The new General card renders the supported locale options and forwards changes to ConfigPage; the former Overview selector and callback are removed. (ui/src/pages/config/quick.ts:345, 448071e5c8fb)
  • Focused regression coverage: The branch test verifies that a persisted non-English locale is selected and that changing the selector invokes the locale callback. (ui/src/pages/config/quick.test.ts:150, 448071e5c8fb)
  • Direct visual proof: The inspected before screenshot shows no language preference in General settings, while the inspected after screenshot shows the new full-width General card and language selector. (ui/src/pages/config/quick.ts:1100, 448071e5c8fb)
  • Current-head validation: Live GitHub checks pass, including real behavior proof, build, lint, production types, test types, and test lanes. (448071e5c8fb)

Likely related people:

  • steipete: Current-main history attributes the Overview locale selector, UiSettings.locale, and ConfigPage settings ownership to the same Control UI implementation commit. (role: introduced behavior and current settings-workspace owner; confidence: high; commits: 8bebdd0d032d; files: ui/src/pages/overview/view.ts, ui/src/pages/config/config-page.ts, ui/src/app/settings.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
Review history (1 earlier review cycle)
  • reviewed 2026-07-11T19:24:46.963Z sha 448071e :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Jul 11, 2026
@vyctorbrzezowski
vyctorbrzezowski merged commit 6082a0c into openclaw:main Jul 11, 2026
118 of 123 checks passed
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/settings-language branch July 11, 2026 21:17
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 12, 2026
* fix(ui): move language selector to general settings

* fix(ui): remove stale settings import
@vyctorbrzezowski vyctorbrzezowski self-assigned this Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant