Skip to content

History polish: simpler overview, swipe tip, honest weekly distance - #97

Merged
SamiPr0 merged 5 commits into
mainfrom
feat/history-polish-2
Oct 9, 2026
Merged

SamiPr0 merged 5 commits into
mainfrom
feat/history-polish-2

Conversation

@SamiPr0

@SamiPr0 SamiPr0 commented Oct 9, 2026

Copy link
Copy Markdown
Owner

Follow-ups to the History redesign (#96).

What

  1. Dropped the "N this week" line: it repeated the week header right below it.
  2. The whole bar along the card expands the calendar ("Show calendar" / "Hide calendar"), instead of a small text button.
  3. One-time swipe tip ("Tip: swipe a visit to the left to delete it. · Got it"), remembered on-device; it also goes away once a visit is swiped away. New small HintRepository (DataStore, same pattern as the pass zoom) that the History view model reads.
  4. Honest weekly distance: a week where only some visits have a logged distance reads "4.2 km logged" instead of a bare total that undercounts.
  5. Add button no longer covers row chevrons: the chevrons are gone, and the button collapses to a plus once the list is scrolled.

Tests

Unit tests for the hint repository (local storage, provider, fake), the view model's tip state, the weekly "logged" totals; screen tests for the tip and the logged label. ./gradlew check ktfmtCheck is green locally. Checked on an emulator; connectedDebugAndroidTest was not run (the instrumented History test only got the extra constructor argument).

Known

The collapsed add button can still sit over the right end of a week header's total while scrolling.

🤖 Generated with Claude Code

SamiPr0 and others added 5 commits October 9, 2026 19:51
Remembers on-device which tips the user dismissed, like the pass zoom
does for its preference.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Shown until it is dismissed, and false until the stored answer is read
so it never flashes for someone who already dismissed it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A week where only some visits have a distance reads 4.2 km logged, since
the total undercounts; the row chevrons go, they only covered by the add
button.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Drop the this-week line, expand the calendar with a bar across the
card, show a dismissible swipe-to-delete tip, and collapse the add
button to a plus once the list is scrolled.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A swipe to the left now only asks to delete: the row springs back and a
dialog asks for confirmation, so a swipe by mistake changes nothing.
The Undo snackbar after a confirmed delete stays.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@SamiPr0
SamiPr0 merged commit 544792a into main Oct 9, 2026
3 checks passed
@SamiPr0
SamiPr0 deleted the feat/history-polish-2 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