Skip to content

Move language setting to primary interface section - #10594

Merged
AmethystLiang merged 3 commits into
mainfrom
ui-language-is-buried-inside-a-collapsed-advance
Jul 26, 2026
Merged

AmethystLiang merged 3 commits into
mainfrom
ui-language-is-buried-inside-a-collapsed-advance

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Jul 25, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #10591

Summary

Moves the UI language setting from the collapsed Advanced disclosure to the primary Interface section, alongside Theme, Zoom, and Font preferences. This improves discoverability of a first-class presentation setting. The collapsed Interface summary now includes the selected language when the setting is enabled.

Screenshots

Visible layout change (no assets attached):

  • Before: Language lived only inside the collapsed Interface → Advanced disclosure (with titlebar / tray / menu-bar chrome).
  • After: Language is a primary control under Appearance → Interface (Theme → Language → Zoom → IDE Font). Advanced retains platform-chrome controls only.

Testing

  • pnpm lint
  • pnpm typecheck
  • pnpm test (AppearancePane unit tests)
  • pnpm build
  • Unit tests: primary Language control with collapsed Advanced; searching "language" keeps Advanced closed; Interface summary includes language

AI Review Report

Review findings addressed:

  • PR description no longer claims "No visual change"
  • Tests lock Language outside a still-present collapsed Advanced shell
  • Search for "language" asserts Advanced stays closed
  • Interface accordion summary includes the selected language
  • Dropped restating comments

Security Audit

No security implications.

Notes

Language is now a primary interface setting with Theme, Zoom, and Typography. Advanced section contains only platform chrome controls (Titlebar, System Tray, Menu Bar Icon).

Language is a first-class presentation preference alongside Theme and
Zoom, so it shouldn't be buried in the Advanced disclosure. Advanced
now contains only platform-chrome controls.
@coderabbitai

coderabbitai Bot commented Jul 25, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: cf6b5bf6-7b5e-4f23-8359-8ba416e24879

📥 Commits

Reviewing files that changed from the base of the PR and between 1eacc1a and 6cf5f4f.

📒 Files selected for processing (2)
  • src/renderer/src/components/settings/AppearancePane.test.tsx
  • src/renderer/src/components/settings/AppearancePane.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/renderer/src/components/settings/AppearancePane.tsx

📝 Walkthrough

Walkthrough

The Appearance settings now treat Language as a primary setting rather than an advanced platform-chrome setting. Advanced filtering is limited to titlebar, system tray, and menu bar icon controls. The Language selector is rendered in the main section when enabled, uses the derived title and entry metadata, updates settings.uiLanguage, and applies primary visibility behavior. Interface summaries are generated by a shared helper that includes the selected language when enabled, with tests covering search behavior, visibility, summary composition, and font fallback.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: moving the language setting into the primary interface section.
Description check ✅ Passed The description covers the summary, screenshots, testing, AI review, security audit, and notes required by the template.
Linked Issues check ✅ Passed The PR matches issue #10591 by promoting UI Language out of the collapsed Advanced disclosure into the primary Interface section.
Out of Scope Changes check ✅ Passed The added summary helper and tests support the language-setting move and appear within the requested scope.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot 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.

🧹 Nitpick comments (1)
src/renderer/src/components/settings/AppearancePane.test.tsx (1)

206-207: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Remove redundant test comments.

The test name already states this behavior. As per coding guidelines, comments must be concise, limited to non-obvious information, and preferably one line.

Source: Coding guidelines


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 829416d6-3c1f-44dc-ad9f-fbc2d46e95ca

📥 Commits

Reviewing files that changed from the base of the PR and between 9eff372 and e69c210.

📒 Files selected for processing (2)
  • src/renderer/src/components/settings/AppearanceInterfaceSection.tsx
  • src/renderer/src/components/settings/AppearancePane.test.tsx

Extracts the interface summary logic into a dedicated module that includes theme, language, and font selections. This makes the chosen language visible in the collapsed Interface section summary, addressing the discoverability issue where language was hidden until Advanced was expanded.
@AmethystLiang
AmethystLiang merged commit 1648262 into main Jul 26, 2026
1 check passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
* Move language setting to primary interface section

Language is a first-class presentation preference alongside Theme and
Zoom, so it shouldn't be buried in the Advanced disclosure. Advanced
now contains only platform-chrome controls.

* Show selected language in Interface section summary

Extracts the interface summary logic into a dedicated module that includes theme, language, and font selections. This makes the chosen language visible in the collapsed Interface section summary, addressing the discoverability issue where language was hidden until Advanced was expanded.
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.

UI Language is buried inside a collapsed "Advanced" disclosure

1 participant