Remove macOS notification permission checking (#404)
* fix: address review findings * fix: mock process.platform as darwin in system-denied test The test exercises the macOS notification permission gate, which only checks systemPreferences.getNotificationSettings on darwin. Without mocking the platform, Linux CI takes the non-darwin path and the assertion fails. * chore: remove stale test files * refactor: remove macOS notification permission checking The systemPreferences.getNotificationSettings() check added friction without meaningful benefit — macOS handles permission prompting natively when a notification is posted, making the manual check redundant. Removes getPermissionStatus(), the system-denied dispatch reason, the IPC handler, the renderer permission-blocked banner, and all related tests.
This commit is contained in:
+1
-7
@@ -339,13 +339,7 @@ export type NotificationDispatchRequest = {
|
||||
export type NotificationDispatchResult = {
|
||||
delivered: boolean
|
||||
/** Present when delivered is false. Tells the caller why delivery was skipped. */
|
||||
reason?:
|
||||
| 'disabled'
|
||||
| 'source-disabled'
|
||||
| 'suppressed-focus'
|
||||
| 'cooldown'
|
||||
| 'not-supported'
|
||||
| 'system-denied'
|
||||
reason?: 'disabled' | 'source-disabled' | 'suppressed-focus' | 'cooldown' | 'not-supported'
|
||||
}
|
||||
|
||||
export type WorktreeCardProperty = 'status' | 'unread' | 'ci' | 'issue' | 'pr' | 'comment'
|
||||
|
||||
Reference in New Issue
Block a user