Repository navigation
focus: add a Pomodoro timer tab with the agent mascot at a desk - #18
Merged
Merged
Conversation
A Focus tab for working in rounds without a phone timer. Two rulers set the focus and break lengths, and only for setup: once started they give way to a countdown and a strip of the whole set, with the mascot walking along it. The mascot is the agent mascot itself, posed through AgentActivityGlyph.Posed and drawn by the shared GlyphCellsView, typing at a desk while it fills with colour through the round; it has tea on breaks and naps on the long one. The long break scales with the break (three times it, 10 to 45 minutes, none from a 15-minute break up), because a fixed 15 minutes is shorter than a 30-minute break. The clock is an end date, so it survives sleep. On the closed notch the countdown takes the trailing shoulder; the leading one shows the focus mascot, the artwork, or the agent sprite, with agents beating media. A pinned crypto price now outranks everything but the HUD, agent attention included. When a round ends the notch opens on Focus for six seconds, after any agent prompt. Focus is off by default. Settings > Focus holds the switch, chime, auto-start and set shape. The settings rail scrolls now that it has eight entries, so the rows go back to 20pt instead of shrinking again.
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.
Adds Focus, a Pomodoro timer tab. Off by default; switch it on in Settings › Focus.
AgentActivityGlyph.Posed, drawn by the sharedGlyphCellsView), typing at a desk (keys light, code appears on the monitor) and filling with colour through the round. Tea on breaks, a nap on the long break, dimmed when paused.tools/trading-testsupdated.Design rounds:
docs/design/pomodoro-ui-v1…v4.html,pomodoro-ui-v5-rules.html.Testing: Debug build,
bash tools/trading-tests/run.sh(all pass), FrameDump scenarios for setup, running, the three shoulders and Settings › Focus, plus a hand test of the running app. A debug build launched withNOTCH_FOCUS_SECONDS_PER_MINUTE=2runs a set in a couple of minutes.