-
Notifications
You must be signed in to change notification settings - Fork 7
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
base: master
Are you sure you want to change the base?
show when healthkit linked goal was last synced with healthkit #601
Conversation
BeeSwift/GoalViewController.swift
Outdated
|
||
private func refreshPullDown() { | ||
let dateFormatter = ISO8601DateFormatter() | ||
dateFormatter.formatOptions = [.withFullDate, .withFullTime] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
26eb85c
to
c2374bb
Compare
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 |
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](https://private-user-images.githubusercontent.com/4656811/400205414-b7e0323f-7231-489d-91de-db4c3e483fe4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2OTgwMjIsIm5iZiI6MTczOTY5NzcyMiwicGF0aCI6Ii80NjU2ODExLzQwMDIwNTQxNC1iN2UwMzIzZi03MjMxLTQ4OWQtOTFkZS1kYjRjM2U0ODNmZTQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTZUMDkyMjAyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OGZjMDhjYjBmY2NhZjdmMzgxZTFkMDc0YWIzNzFlNzQ1ZjZjNDg5YzQwMDQyN2Q0Y2ExNjlmMjBkNDI1ZDMxNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.iWXgDa7TSnyT4lGd0IftastENYWazYoEC20Dm3Nsr-Q)
previous
showing the full date/time
Validation
ran app in simulator
Tickets
Fixes #193