Skip to content

Refine macOS access prompt guidance - #11822

Merged
brennanb2025 merged 3 commits into
mainfrom
brennanb2025/refine-macos-access-guidance
Jul 31, 2026
Merged

brennanb2025 merged 3 commits into
mainfrom
brennanb2025/refine-macos-access-guidance

Conversation

@brennanb2025

Copy link
Copy Markdown
Contributor

Summary

  • use outcome-focused toast copy without process or helper implementation details
  • deep-link Full Disk Access and use the standard accent/ring highlight for three seconds
  • remove the incorrect Orca Helper instruction from localized Full Disk Access guidance

Follow-up to #11807 after #11821.

Validation

  • targeted Vitest: 3 files, 7 tests
  • web typecheck
  • changed-file native and type-aware oxlint
  • max-lines ratchet, formatting, and whitespace checks
  • localization catalog, extraction, coverage, and repair-policy checks
  • visible Electron validation in an isolated macOS profile: exercised the real toast action, confirmed the exact row and standard highlight, and verified the highlight clears after three seconds

Screenshots

Revised toast

Revised macOS access guidance toast

Standard Full Disk Access highlight

Full Disk Access row using the standard highlight treatment

@coderabbitai

coderabbitai Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 83c6f418-aad7-4d79-801e-637412e12f61

📥 Commits

Reviewing files that changed from the base of the PR and between 138d367 and 539f8e0.

📒 Files selected for processing (3)
  • src/renderer/src/hooks/useMacosTccPromptNotice.test.tsx
  • src/renderer/src/hooks/useMacosTccPromptNotice.ts
  • src/renderer/src/i18n/locales/en.json

📝 Walkthrough

Walkthrough

The 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)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description covers the summary, screenshots, and validation, but it omits the required AI Review Report, Security Audit, and Notes sections. Add the required AI Review Report, Security Audit, and Notes sections, and map Validation to the template's Testing section.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change to macOS access prompt guidance.
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.

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

📥 Commits

Reviewing files that changed from the base of the PR and between 4d044c4 and 701cfb1.

📒 Files selected for processing (12)
  • config/scripts/locale-macos-tcc-key-overrides.mjs
  • src/renderer/src/components/settings/DeveloperPermissionsPane.test.tsx
  • src/renderer/src/components/settings/DeveloperPermissionsPane.tsx
  • src/renderer/src/components/settings/Settings.tsx
  • src/renderer/src/hooks/useMacosTccPromptNotice.test.tsx
  • src/renderer/src/hooks/useMacosTccPromptNotice.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
  • src/renderer/src/lib/settings-navigation-types.ts

Comment on lines +679 to +683
setHighlightedSettingsTargetId(
settingsNavigationTarget.pane === 'developer-permissions'
? (settingsNavigationTarget.sectionId ?? null)
: null
)

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.

🎯 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-apps

greptile-apps Bot commented Jul 31, 2026 •

Copy link
Copy Markdown

Greptile Summary

This 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.

  • Toast copy: Title and description updated to outcome-focused language ("Seeing 'Orca would like to access…' prompts?") and the action now deep-links directly to the Full Disk Access row via FULL_DISK_ACCESS_SETTINGS_TARGET_ID, triggering scroll and a 3-second bg-accent / ring-2 ring-inset highlight that auto-clears via window.setTimeout in Settings.tsx.
  • Localization: All five locales (en, es, ja, ko, zh) and the TCC key-overrides file are updated in sync for both the new title key and the revised description/Automation entries.
  • Test coverage: A new DeveloperPermissionsPane.test.tsx tests the highlight lifecycle, and useMacosTccPromptNotice.test.tsx is extended to assert the exact toast copy and the settingsNavigationTarget payload including sectionId.

Confidence Score: 5/5

Safe 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.

Important Files Changed

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

@brennanb2025
brennanb2025 merged commit 4205d5f into main Jul 31, 2026
40 checks passed
@brennanb2025
brennanb2025 deleted the brennanb2025/refine-macos-access-guidance branch July 31, 2026 22:13
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
* Refine macOS access prompt guidance

* Capitalize MacOS in access prompt

* Use official macOS styling in prompt
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