Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show when healthkit linked goal was last synced with healthkit #601

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

krugerk
Copy link
Contributor

@krugerk krugerk commented Jan 2, 2025

Summary

The user can see the most recent datapoints and can infer from that when the last sync took place. This PR displays the date directly so the user need not infer when that might have been.

For UI changes including screenshots of before and after is great.

when synced today

showing time
last synced with healthkit

previous

showing the full date/time

Image

Validation

ran app in simulator

Tickets

Fixes #193


private func refreshPullDown() {
let dateFormatter = ISO8601DateFormatter()
dateFormatter.formatOptions = [.withFullDate, .withFullTime]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dreeves
Copy link
Member

dreeves commented Jan 3, 2025

Proposal: strip that down to nothing but HH:MM -- no date, no seconds, no am/pm, no timezone, nothing. I would've thought that too extreme but it's what Stripe does on their mobile app and I realized it works because you figure it out by experimentation.

@krugerk krugerk force-pushed the feature/when-was-goal-last-synced-with-apple-health branch from 26eb85c to c2374bb Compare January 5, 2025 13:47
@krugerk
Copy link
Contributor Author

krugerk commented Jan 5, 2025

Proposal: strip that down to nothing but HH:MM -- no date, no seconds, no am/pm, no timezone, nothing. I would've thought that too extreme but it's what Stripe does on their mobile app and I realized it works because you figure it out by experimentation.

updated to show date too (in user's preferred format) when last sync was not in the same day and to show the time in the user's preferred format

@krugerk krugerk marked this pull request as ready for review January 5, 2025 13:47
@krugerk krugerk requested a review from a team as a code owner January 5, 2025 13:47
@krugerk krugerk requested review from theospears and removed request for a team January 5, 2025 13:47
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.

App should indicate when it last auto-fetched from Apple Health
2 participants