Skip to content

Add lines to graph and mini graph for "current time" on prior days - #644

Merged
marionbarker merged 4 commits into
loopandlearn:devfrom
aug0211:auggie-same-time-prior-day-lines
Sep 17, 2026
Merged

marionbarker merged 4 commits into
loopandlearn:devfrom
aug0211:auggie-same-time-prior-day-lines

Conversation

@aug0211

@aug0211 aug0211 commented May 8, 2026

Copy link
Copy Markdown
Contributor
  • Add vertical dotted orange lines to main graph for "this time" on prior days when scrolling back
  • Add vertical dotted orange lines to the mini graph for "this time" on prior days

afshopify and others added 2 commits May 8, 2026 01:21
- Add vertical dotted orange lines to main graph for "this time" on prior days when scrolling back
- Add vertical dotted orange lines to the mini graph for "this time" on prior days
- Removed unneeded empty lines
@aug0211 aug0211 changed the title Add lines to graph and mini graph for this time prior days Add lines to graph and mini graph for "current time" on prior days May 9, 2026
@bjorkert

Copy link
Copy Markdown
Member

In what way are they tappable, what should happen if you tap them?

@aug0211

aug0211 commented Sep 17, 2026

Copy link
Copy Markdown
Contributor Author

In the mini graph, it's kind of basic. Not too fancy here. The line make it visible in the mini graph where "current time" was on prior days. Tap it on the mini graph and the main graph updates to show what was going on at that time (just like scrolling the mini graph currently does). Not much fanciness here, probably easiest to see and experience by deploying it.

Edited the PR description - the dotted orange line in the main graph is just visual, tapping it does nothing.

image

@bjorkert

Copy link
Copy Markdown
Member

Thanks for the clarification and for updating the description. Tapping anywhere on the mini graph already positions the main graph at that time, lines or not, so that part is existing behavior rather than something this PR introduces. The lines themselves are a nice visual aid. Before proceeding I would like them behind a Graph settings toggle next to Show Midnight Lines, default off, like the other time markers.

@aug0211

aug0211 commented Sep 17, 2026

Copy link
Copy Markdown
Contributor Author

Good idea that makes sense.

The vertical dotted orange lines marking the current time on prior days
rendered unconditionally on both the main and mini graphs. Gate them on a
new "Show Prior Day Time Lines" toggle in Graph Settings, defaulting to
off, so they behave like Show Midnight Lines and the other time markers.

The new storage key is unset for existing users, which reads as false, so
the lines are hidden until explicitly enabled.
@aug0211

aug0211 commented Sep 17, 2026

Copy link
Copy Markdown
Contributor Author

@bjorkert I took a crack at this and it's committed now.

@marionbarker marionbarker left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve by test on iPhone 15 pro with 4 days of data.
Very nice.

@marionbarker
marionbarker merged commit 1f39057 into loopandlearn:dev Sep 17, 2026
2 checks passed
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.

4 participants