Repository navigation
Add configurable break allowances and reset policies - #512
Closed
michaelmvh wants to merge 1 commit into
Closed
michaelmvh wants to merge 1 commit into
michaelmvh wants to merge 1 commit into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Owner
|
Most likely won't be merging this btw. Doesn't make sense, you can keep your fork and use that version of the app |
Author
|
Hey @awaseem thanks for taking a look. Would you mind elaborating on why you did not like this feature request? I'm looking for feedback in case I would like to contribute in the future |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add configurable break allowances and reset policies
Summary
Adds configurable break allowances that persist across focus sessions. Users can choose between a fixed allowance for each break or a shared cumulative time budget, configure how many breaks are available, and decide whether usage resets daily or only when manually reset.
User-facing changes
Demo
foqos-break-allowances.mp4
Remaining allowance during an active session
Allowance accounting
Compatibility
Existing profiles retain their previous break behavior:
allowMultipleBreaksvalue remains available for persisted-profile and snapshot compatibility.Documentation and diagnostics
AI Disclaimer
I’m a software engineer, but Swift and iOS development are not my primary stack. This PR was developed with the assistance of GitHub Copilot, powered by GPT-5.6 Sol. I reviewed the resulting behavior in the iOS Simulator, and the complete test target passes.
Testing
Run with:
DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer make testThe complete
foqosTeststarget passes.