Skip to content

Zoom the history calendar out to a year of months - #94

Closed
SamiPr0 wants to merge 4 commits into
feat/history-list-redesignfrom
feat/history-year-zoom
Closed

SamiPr0 wants to merge 4 commits into
feat/history-list-redesignfrom
feat/history-year-zoom

Conversation

@SamiPr0

@SamiPr0 SamiPr0 commented Oct 8, 2026

Copy link
Copy Markdown
Owner

Stacked on #93 (which is stacked on #92); retarget as the earlier PRs merge.

What

Zooming out of the month calendar shows the year as 12 tiles, each shaded by how many times you went that month and showing the count (12+ visits in a month is the darkest tile; the scale stretches if a month beats that).

  • Zoom out with a two-finger pinch or by tapping the "‹ 2026" above the month title.
  • Tap a month, or pinch in, to zoom back in to it. Swiping changes year; the current month has a ring and future months are dimmed.
  • The pinch only reacts to two fingers, so swiping between months and tapping days keep working.

Structure

YearModel.kt (tiles, years, which month to reopen), YearCalendar.kt (the tiles), PinchGesture.kt, and HistoryCalendar.kt, which switches between the two zoom levels.

Tests

Unit tests for the year model and the pinch thresholds; screen tests for zooming out and back into a tapped month. ./gradlew check ktfmtCheck is green locally. The pinch gesture itself has not been tried on a device (the emulator hung before I could).

🤖 Generated with Claude Code

SamiPr0 and others added 4 commits October 9, 2026 16:52
Twelve month tiles shaded by visits, the years to page through, and
which month to open when zooming back in. The visits label moves next
to it so both calendars share it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Detects a two-finger pinch out or in without consuming single touches,
so pager swipes and day taps keep working.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Pinch out, or tap the year above the month, to see the year as twelve
tiles shaded by how often you went. Tap a month or pinch in to return.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@SamiPr0

SamiPr0 commented Oct 9, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #96, which combined this stack and is merged into main (cbab128). Closing; the branch is left in place.

@SamiPr0 SamiPr0 closed this Oct 9, 2026
@SamiPr0
SamiPr0 deleted the feat/history-year-zoom branch October 9, 2026 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant