Repository navigation
Revert "Clarify macOS access prompt guidance" - #11821
brennanb2025 merged 1 commit into
Conversation
This reverts commit 7d24dad.
|
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 (7)
📝 WalkthroughWalkthroughRemoved 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
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 |
Greptile SummaryThis 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/5The 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.
|
| 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)
-
src/renderer/src/hooks/useMacosTccPromptNotice.test.tsx, line 114-120 (link)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 thetranslatecall keys drift fromen.jsonor 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!
-
src/renderer/src/hooks/useMacosTccPromptNotice.test.tsx, line 139-144 (link)Settings navigation target no longer verified
The test confirms
acknowledgeis called when clicking the "Open Settings" action, but no longer asserts thatopenSettingsTargetwas 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
…yai#11821) This reverts commit 434acaa.
Reverts #11807