feat(android): cluster close events on the activity day timeline #321
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "314_stack-close-activity-dots"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #314.
What changed
On the day timeline of an activity command, events that sat minutes apart drew on top of each other and their labels collided. Now:
06:40–06:52). The lane stays 64 dp tall. A wider screen keeps more events apart.06:40 · title), and a row opens that note. Back or a tap outside closes the menu.<series> 06:45 <title>, or<series> 3 shards 06:40–06:52for a cluster (new pluralactivity_cluster).How
ui/ActivityChart.kt:timelineClusters(events, width)andTimelineCluster(pure, dp-based) replacetimelineLabels.ui/Activity.kt:ActivityTimelinedraws the clusters and their touch targets. Like the ⋮ options overlay,ClusterMenuis aSurfacedrawn in the content, not a platform popup, so layoutlib renders it. It sits inside its lane, raised byzIndexand unbounded in height. Nothing can lie between the menu and the scrolling content, sodismissingOutsidecatches presses outside the menu in the initial pass and consumes them. The open cluster ("<series>@HH:mm") is state ofActivityContent, saved byActivityScreenper range.Tests
ActivityChartTest: far-apart events stay single, minutes-apart events merge with span and count, phone vs tablet width, chains, alternating labels, clamping at the ends of the day, empty input, the cluster key.ActivityDayCloseEventsScreenshot(a cluster of three and a single dot) andActivityDayClusterMenuScreenshot(the menu open). The three-series day scenes changed: Read's 06:45 and 08:15 are now one cluster at phone width. The plain day scene changed only slightly because labels are now centred on their dot.nix build .#streamd-app(unit + screenshot validation) andnix flake checkpass.Docs
R36 in
REQUIREMENTS.md, the activity paragraph inREADME.mdand the activity screen bullet inAGENTS.md.