Render schedules in a human-readable format - #66
Merged
Conversation
The detail screen printed raw ISO fragments in a machine-ish order — "2026-03-14 – 2026-03-16 · 09:15:00–17:00:00" — which reads as data, not as a plan. Lead with the time and follow with the day it falls on, and drop everything redundant: a shared date is written once, the year only appears when the schedule isn't in the current year. Dates are split by hand rather than parsed through Date, which would reinterpret the element's own timezone as the device's and slide the day. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The element detail screen printed schedules as raw ISO fragments in a machine-ish order —
2026-03-14 – 2026-03-16 · 09:15:00–17:00:00. That reads as data, not as a plan. Times now lead and the day they fall on follows, with everything redundant dropped.2026-03-14Mar 142026-03-14 – 2026-03-16Mar 14 to Mar 162026-03-14 · 09:00:00–17:30:009 AM to 5:30 PM, Mar 142026-03-14 – 2026-03-16 · 09:15:00–17:00:009:15 AM, Mar 14 to 5 PM, Mar 162026-03-14 · 12:00:0012 PM, Mar 142026-03-14 · 17:00:00Until 5 PM, Mar 14Details:
Dec 30, 2026 to Jan 2, 2027rather than looking like it starts in 2027.:00—5 PM, not5:00 PM.allDay: truesuppresses any times still stored on the record from an earlier edit.Date, which would reinterpret the element's own timezone as the device's and slide the day.Formatting moved out of
ElementDetailScreenintosrc/map/formatSchedule.tsso it could be unit tested; times render 12-hour AM/PM with no locale awareness, matching the rest of the app.