Skip to content

Show Terminal and Window settings by default in Appearance pane - #10628

Merged
AmethystLiang merged 1 commit into
mainfrom
terminal-settings-should-not-be-hidden
Jul 26, 2026
Merged

AmethystLiang merged 1 commit into
mainfrom
terminal-settings-should-not-be-hidden

Conversation

@AmethystLiang

Copy link
Copy Markdown
Contributor

Summary

Appearance pane now shows Interface, Terminal, and Window sections open by default. Sections remain independently collapsible, and search still force-opens matching sections to reveal advanced controls.

Why: Terminal and Window settings were too easy to miss when only Interface started expanded. This change improves discoverability while preserving user control over which sections to collapse.

Changes

  • Switched from single accordion (only one open at a time) to independent sections model
  • All three sections start open by default
  • Each section can collapse independently
  • During search, section toggles are disabled to prevent user gestures from silently rewriting state that only applies after clearing the search filter
  • Deep-link navigation (e.g., Usage percentages) reopens a target section without collapsing siblings
  • Updated comments from "accordion" to "section" terminology throughout
  • Removed stale i18n keys for "ghostty" translation (product name stays untranslated for search consistency)
  • Minor locale fixes: ellipsis character and Ghostty translation in Chinese

Testing

  • Added test: all three sections expanded by default
  • Added test: independent collapse behavior
  • Added test: deep-link reopens without collapsing siblings
  • Added test: search disables toggles, preventing surprise-collapse when filter clears
  • Comprehensive test suite covers default state, toggling, deep links, and search interaction

Terminal and Window & Sidebar sections now expand alongside Interface by
default so users don't miss advanced settings. Sections remain independently
collapsible and each can be force-open on deep-link navigation without
collapsing siblings. Search disables toggles to prevent unexpected collapse
when query clears. Remove unused "ghostty" translation key; product name
stays untranslated for search consistency.
@coderabbitai

coderabbitai Bot commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Appearance settings now open all sections by default, support independent collapsing, reopen sections for deep links, and disable toggles during search. Tests cover these behaviors. Ghostty search keywords and import-related translations were updated across locales, and the onboarding detection message now uses a Unicode ellipsis.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description covers summary and testing, but it omits required Screenshots, AI Review Report, Security Audit, and Notes sections. Add the missing template sections, or fill them with 'No visual change' and concise review/security notes if applicable.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title matches the main user-facing change: default expansion of Terminal and Window settings in the Appearance pane.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ 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.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/renderer/src/components/onboarding/GhosttyDiscoveryRow.tsx (1)

18-20: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Keep the explanatory comment synchronized with the text.

The comment still quotes Looking for a Ghostty config..., while the fallback now uses the Unicode ellipsis. Update the comment to avoid stale documentation.

Also applies to: 31-31


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 3d5bcf14-c9c9-4712-884a-38e07a782278

📥 Commits

Reviewing files that changed from the base of the PR and between 468f5b7 and 39349a0.

📒 Files selected for processing (13)
  • src/renderer/src/components/onboarding/GhosttyDiscoveryRow.tsx
  • src/renderer/src/components/settings/AppearancePane.test.tsx
  • src/renderer/src/components/settings/AppearancePane.tsx
  • src/renderer/src/components/settings/AppearanceSection.tsx
  • src/renderer/src/components/settings/Settings.tsx
  • src/renderer/src/components/settings/appearance-usage-percentage-search.ts
  • src/renderer/src/components/settings/terminal-advanced-platform-search.ts
  • src/renderer/src/components/settings/terminal-pane-appearance-search.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
💤 Files with no reviewable changes (4)
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/ja.json

@AmethystLiang
AmethystLiang merged commit 912c249 into main Jul 26, 2026
2 checks passed
OrcaWin added a commit to hsusul/orca that referenced this pull request Jul 27, 2026
The PR mirrors three drifted lint steps by hand, which fixes today's gap
but not the mechanism that created it. Two follow-ups were required to
make the change actually land green:

- Add check:quadratic-buffer-concat, a fourth step that drifted out of
  pr.yml after this PR was opened (stablyai#10851, 2026-07-26). Mirroring by hand
  had already re-drifted before the fix merged.
- Allowlist the intentional untranslated "Ghostty" product-name search
  keywords. verify:localization-coverage fails on current main (stablyai#10628
  added them without an allowlist entry), so enabling the step as-is
  turns every PR red.
- Add config/scripts/pr-workflow-lint-parity.test.mjs, which resolves the
  `lint` chain to leaf commands and fails when any has no pr.yml step.
  This is the recurrence guard the linked issue asked for.

Verified: the gate independently rediscovers all four missing steps
against origin/main's pr.yml, passes on the fixed one, and `pnpm lint`
now completes all 10 steps with exit 0.
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…lyai#10628)

Terminal and Window & Sidebar sections now expand alongside Interface by
default so users don't miss advanced settings. Sections remain independently
collapsible and each can be force-open on deep-link navigation without
collapsing siblings. Search disables toggles to prevent unexpected collapse
when query clears. Remove unused "ghostty" translation key; product name
stays untranslated for search consistency.
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