Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughAdds an optional 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (2)
src/main/persistence.test.ts (1)
683-683: 🗄️ Data Integrity & Integration | 🔵 Trivial | ⚡ Quick winAdd an existing-profile backfill regression case.
This assertion covers a new profile only. Add a fixture for an existing settings file that omits
appFontWeightand assert that loading it produces400, locking in the legacy-profile compatibility requirement.src/renderer/src/components/settings/AppearanceInterfaceSection.tsx (1)
207-228: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winDerive the suffix from the imported bounds instead of hardcoding.
APP_FONT_WEIGHT_MIN/APP_FONT_WEIGHT_MAXare already imported and used formin/max, butsuffix="100-900"is a separate literal. If the bounds ever change, this label silently goes stale.♻️ Proposed fix
- suffix="100-900" + suffix={`${APP_FONT_WEIGHT_MIN}-${APP_FONT_WEIGHT_MAX}`}
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 483389dd-e0b1-4303-b411-6545a080993a
📒 Files selected for processing (17)
src/main/persistence.test.tssrc/renderer/src/App.tsxsrc/renderer/src/assets/main.csssrc/renderer/src/components/settings/AppearanceInterfaceSection.tsxsrc/renderer/src/components/settings/AppearancePane.test.tsxsrc/renderer/src/components/settings/appearance-search.tssrc/renderer/src/components/settings/setting-labels.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/renderer/src/popout.tsxsrc/shared/app-fonts.test.tssrc/shared/app-fonts.tssrc/shared/constants.tssrc/shared/types.ts
Summary
Adds an IDE Font Weight setting under Settings → Appearance → Interface, directly below IDE Font, so users can lighten or strengthen the base weight of interface text.
appFontWeightsetting (default400), clamped to the CSSfont-weightrange100–900by a shared normalizer (src/shared/app-fonts.ts, mirroringterminal-fonts.ts).--app-font-weightCSS variable from the same effect that owns--app-font-family, in both the main window (App.tsx) and the dashboard pop-out (popout.tsx); consumed by thebodybase style inmain.css.font-medium/font-semiboldUI) keep their hierarchy — only default-weight text follows the setting.400via the persisted-settings defaults, so the UI is unchanged until a user opts in.Screenshots
Testing
pnpm lint— every gate passes with this diff exceptverify:localization-coverage, which fails identically on unchanged currentmainin my environment (pre-existing"Ghostty"keyword findings interminal-advanced-platform-search.ts/terminal-pane-appearance-search.ts, files untouched by this PR)pnpm typecheckpnpm test— 37,522 passed; the only 4 failures (GPU-flag, git-prompt, and socket-timing suites) reproduce identically on cleanmainin this environment and are unrelated to this changepnpm buildsrc/shared/app-fonts.test.ts), AppearancePane commit + clamp component tests, and persistence default-backfill/update-merge coverageAI Review Report
Implemented and reviewed with an AI coding agent. The review explicitly checked:
300/700updatesgetComputedStyle(document.body).fontWeightimmediately, and an accidental400300entry clamps to900.appFontWeightis optional inGlobalSettings, so existing fixtures and persisted profiles need no migration; missing values normalize to400at every read site (settings UI, main window, pop-out).verify:localization-catalogpasses.Security Audit
Notes