Skip to content

feat/notification-permissions#18

Merged
brendan-ch merged 23 commits into
mainfrom
feat/notification-permissions
Jan 21, 2026
Merged

feat/notification-permissions#18
brendan-ch merged 23 commits into
mainfrom
feat/notification-permissions

Conversation

@brendan-ch

Copy link
Copy Markdown
Owner
  • Add ability to request permission for sending notifications
    • Add button in settings view to request permission
    • If not dismissed (controlled via UserDefaults), display callout alongside timer to request permission
  • Mark the application as an agent (this will hide it from the dock and Cmd+Tab)

Closes #8

Note: still needs UI test for the callout next to the timer

@brendan-ch brendan-ch self-assigned this Jan 20, 2026
@brendan-ch brendan-ch added the enhancement New feature or request label Jan 20, 2026
…se State instead of AppStorage

UserDefaults is read once to set the state, and then a one-way sync is established from state to UserDefaults.
For some reason AppStorage doesn't play well with app.launchArguments (seems like values just aren't updated?)
@brendan-ch brendan-ch marked this pull request as ready for review January 21, 2026 20:30
}

private func updateMenuBarText() {
if case .running(let timeRemaining, _) = timerContext.state {

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the future, add test case for menu bar text generation

@brendan-ch brendan-ch merged commit d9dffb4 into main Jan 21, 2026
1 check passed
@brendan-ch brendan-ch deleted the feat/notification-permissions branch January 21, 2026 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include notification permissions setting

1 participant