Repository navigation
Refine macOS access prompt guidance - #11822
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe change updates macOS TCC permission titles and descriptions in supported locales. Permission guidance now refers to Orca instead of Orca Helper. macOS permission notices navigate to the Developer Permissions pane and target the Full Disk Access row. Settings temporarily highlights the targeted row for three seconds. Tests cover notice content, navigation targets, row identifiers, highlight styling, and highlight removal. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
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.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 512ed3a8-2db0-4a7f-80ba-eb9a313eb9f9
📒 Files selected for processing (12)
config/scripts/locale-macos-tcc-key-overrides.mjssrc/renderer/src/components/settings/DeveloperPermissionsPane.test.tsxsrc/renderer/src/components/settings/DeveloperPermissionsPane.tsxsrc/renderer/src/components/settings/Settings.tsxsrc/renderer/src/hooks/useMacosTccPromptNotice.test.tsxsrc/renderer/src/hooks/useMacosTccPromptNotice.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/lib/settings-navigation-types.ts
| setHighlightedSettingsTargetId( | ||
| settingsNavigationTarget.pane === 'developer-permissions' | ||
| ? (settingsNavigationTarget.sectionId ?? null) | ||
| : null | ||
| ) |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Restart the highlight duration for repeated navigation.
If the user opens the same target before its timeout expires, React ignores the identical state update. The existing timeout then removes the highlight less than three seconds after the latest navigation. Store a navigation sequence with the target, or explicitly reset the timer for every navigation.
Greptile SummaryThis PR refines the macOS TCC (Transparency, Consent, and Control) prompt guidance by updating the toast copy to reflect the actual system dialog wording, adding a 3-second accent highlight to the Full Disk Access row when navigated from the toast, and removing incorrect references to "Orca Helper" from all localized permission descriptions.
Confidence Score: 5/5Safe to merge — changes are limited to UI copy, a new highlight prop, and localization strings with no effect on data flow or permissions logic. All changed code is presentational: toast strings, a transient CSS highlight driven by a scoped setTimeout, and localization entries. The new FULL_DISK_ACCESS_SETTINGS_TARGET_ID constant is correctly derived from the existing permission id ('full-disk-access') and the settingId pattern in DeveloperPermissionsPane, so the deep-link wiring is consistent end-to-end. The removed 'Orca Helper' instruction is a correctness fix with no runtime risk. Tests cover both the highlight lifecycle and the updated toast payload. Files Needing Attention: No files require special attention.
|
| Filename | Overview |
|---|---|
| src/renderer/src/hooks/useMacosTccPromptNotice.ts | Toast copy updated and action now deep-links to the Full Disk Access row via FULL_DISK_ACCESS_SETTINGS_TARGET_ID; logic is clean and consistent with the type definition. |
| src/renderer/src/components/settings/DeveloperPermissionsPane.tsx | Adds highlightedSettingId prop; each permission row gains data-settings-section and data-highlighted attributes with transition classes for the 3-second accent highlight; settingId construction matches the exported constant correctly. |
| src/renderer/src/components/settings/Settings.tsx | Adds highlightedSettingsTargetId state set on developer-permissions navigation, auto-cleared after 3 s via window.setTimeout; passed to DeveloperPermissionsPane; highlight is correctly scoped to the developer-permissions pane only. |
| src/renderer/src/lib/settings-navigation-types.ts | Adds the FULL_DISK_ACCESS_SETTINGS_TARGET_ID constant ('developer-permissions-full-disk-access') which matches the settingId pattern used in DeveloperPermissionsPane. |
| src/renderer/src/components/settings/DeveloperPermissionsPane.test.tsx | New test verifies highlight is applied when highlightedSettingId matches the Full Disk Access row and cleared on re-render without the prop. |
| src/renderer/src/hooks/useMacosTccPromptNotice.test.tsx | Extended to assert exact toast title/description copy and the settingsNavigationTarget sectionId. |
| config/scripts/locale-macos-tcc-key-overrides.mjs | Adds title key override for the four non-English locales and updates the description/Automation entries to remove Orca Helper; in sync with the locale JSON files. |
| src/renderer/src/i18n/locales/en.json | Title and description strings updated; Automation (7ca17b62c8) removes Orca Helper instruction; all changes are consistent with the hook source. |
Reviews (2): Last reviewed commit: "Use official macOS styling in prompt" | Re-trigger Greptile
* Refine macOS access prompt guidance * Capitalize MacOS in access prompt * Use official macOS styling in prompt
Summary
Follow-up to #11807 after #11821.
Validation
Screenshots
Revised toast
Standard Full Disk Access highlight