Skip to content

Revert "Clarify macOS access prompt guidance" - #11821

Merged
brennanb2025 merged 1 commit into
mainfrom
revert-11807-brennanb2025/clarify-macos-access-prompt-toast
Jul 31, 2026
Merged

brennanb2025 merged 1 commit into
mainfrom
revert-11807-brennanb2025/clarify-macos-access-prompt-toast

Conversation

@brennanb2025

Copy link
Copy Markdown
Contributor

Reverts #11807

@brennanb2025
brennanb2025 merged commit 4d044c4 into main Jul 31, 2026
41 checks passed
@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: 49ef6949-7bef-4363-8d52-ff5f62076946

📥 Commits

Reviewing files that changed from the base of the PR and between 9f30a78 and 067e68f.

📒 Files selected for processing (7)
  • 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/lib/settings-navigation-types.ts

📝 Walkthrough

Walkthrough

Removed developer-permissions highlight props, row styling, timeout state, cleanup, and navigation handling. Removed the Full Disk Access settings target constant. Updated the macOS TCC notice text and navigation to target only the developer permissions pane. Updated the related localization and test title. Deleted the developer-permissions pane test file.

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

@greptile-apps

greptile-apps Bot commented Jul 31, 2026 •

Copy link
Copy Markdown

Greptile Summary

This PR reverts #11807 ("Clarify macOS access prompt guidance"), undoing the deep-link and row-highlight feature that navigated users directly to the Full Disk Access entry in Developer Permissions when they clicked "Open Settings" from the macOS TCC toast.

Confidence Score: 4/5

The revert is mechanically complete and internally consistent — no dangling references to removed constants or props were left behind.

All seven touched files revert cleanly to their pre-#11807 state. The only gap is in the updated test suite: the toast-content assertion and the settings-navigation-target assertion were both dropped without replacement, so the reverted strings and the navigation call site are now untested. This is a test-coverage concern rather than a runtime defect.

Files Needing Attention: src/renderer/src/hooks/useMacosTccPromptNotice.test.tsx — two assertions were removed without replacement, leaving toast content and navigation target unverified.

Important Files Changed

Filename Overview
src/renderer/src/hooks/useMacosTccPromptNotice.ts Toast title/description reverted to shorter strings; sectionId removed from openSettingsTarget call so "Open Settings" lands on the pane without deep-linking to the Full Disk Access row. Logic is internally consistent.
src/renderer/src/hooks/useMacosTccPromptNotice.test.tsx Toast content assertion and settingsNavigationTarget assertion dropped alongside the features being reverted, leaving toast content and navigation target untested.
src/renderer/src/components/settings/DeveloperPermissionsPane.tsx highlightedSettingId prop and data-settings-section/data-highlighted attributes removed from permission rows. Clean revert with no residual references.
src/renderer/src/components/settings/DeveloperPermissionsPane.test.tsx Entire file deleted — it exclusively tested the highlighting feature being reverted, so deletion is correct.
src/renderer/src/components/settings/Settings.tsx Removes highlightedSettingsTargetId state, the auto-clear useEffect, the SETTINGS_TARGET_HIGHLIGHT_MS constant, and the prop pass-through to DeveloperPermissionsPane. Clean revert.
src/renderer/src/i18n/locales/en.json Reverts useMacosTccPromptNotice title and description keys to pre-#11807 strings; consistent with the hook changes.
src/renderer/src/lib/settings-navigation-types.ts FULL_DISK_ACCESS_SETTINGS_TARGET_ID constant removed; all consuming imports (hook, tests) were updated in the same PR.

Comments Outside Diff (2)

  1. src/renderer/src/hooks/useMacosTccPromptNotice.test.tsx, line 114-120 (link)

    P2 Toast content left unasserted after revert

    The test previously verified the toast title and description matched the strings in en.json. That assertion was removed here, but the replacement strings ("Reduce repeated macOS file-access prompts" / "macOS attributes file access…") are never verified by any test. If the translate call keys drift from en.json or a typo is introduced in the fallback strings, no test will catch it.

    Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

  2. src/renderer/src/hooks/useMacosTccPromptNotice.test.tsx, line 139-144 (link)

    P2 Settings navigation target no longer verified

    The test confirms acknowledge is called when clicking the "Open Settings" action, but no longer asserts that openSettingsTarget was called at all — or that it was called with { pane: 'developer-permissions', repoId: null }. If the navigation target accidentally regresses (e.g., wrong pane, extra/missing fields), this test will still pass.

    Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Reviews (1): Last reviewed commit: "Revert "Clarify macOS access prompt guid..." | Re-trigger Greptile

enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
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