feat(gcal): the day view - #86
Merged
Merged
Conversation
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.
Adds the day view to the Google Calendar tab, and the drawing it shares with the week view to come: filled chips in the calendar colour with the start time in the head, the week header with today marked in Google blue and the icon's folded corner, the full-day ruler at 15-minute rows laid into lanes for overlaps, and the selected-event footer. The ruler scrolls between the pinned header and footer: it opens a third of the way down on the now-line (or the day's first event), up/down move between chips and pull the selection into view, shift+up/down scroll one hour,
trecentres. The manifest declareso(open in Google Calendar) andt(today).Two fixes from the live run ride along: empty event fields (location, organizer, attendee names, attachment titles) rendered as "(unspecified)", and the landing was centred twice, once by its own indentation and once by the widget, which pushed it into the right half of wide terminals.
Replicated on a real account from a scratch config at 120×40 and 80×24: the ruler anchors on the now-line, shift+down moves four rows, right re-anchors on the next day's first event,
treturns, escape lands on the menu, and every ruler row stays inside the ruler body's width. Lucas approved the day view at his checkpoint with the look marked for iteration once the integration is complete.