feat(gcal): the adaptive week view - #91
Merged
Merged
Conversation
The selected event keeps its calendar colour and lifts up to a third of the way toward white, settling back on the same 1.6-second wave as the landing's dots. The text colour comes from the base colour so it never flips between black and white mid-pulse. The rhythm constants move to the palette so the dots and the chip share them.
Several day columns share one scrolling 15-minute ruler: 7, 5, 3, or 1 columns at 140, 110, 90, and fewer terminal columns. Five-column weeks slide so a focused weekend day still has a column, and a hidden weekend shows as +N in the header. The focused column is tinted one lift step off the terminal's real background, lighter on dark and darker on light. Left and right change the day, the brackets change the week, and the paired bindings share a description so the help overlay merges each pair onto one row. The now-line is drawn over the slot row that contains the current time instead of being inserted as an extra row, so it no longer lands on the next slot's boundary or cuts a chip in another column. The ruler body, lane rows, and gutter are lifted out of the day view for the week view to reuse, each view runs its own frame clock for the pulsing chip, and the gutter's selection mark is gone now that the pulse marks it.
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 week view to the Google Calendar tab: several day columns on one scrolling 15-minute ruler, 7/5/3/1 columns by terminal width, the focused column tinted off the terminal's own background, the selected chip breathing on the landing's wave, and the now-line drawn over the current slot rather than inserted as a row.
Live replication, per the standing rule for this feature: the real week (38 items) was rendered through the real client at 160, 120, 100, and 80 columns with every line inside the body width; the brackets moved the focus by a week and back; the tint span started at the focused column's first cell at each width; the pulse ran peak, midpoint, base colour with the clock stopped; and the overlaid now-line sat on the 16:45 row at 16:51 with the neighbouring chip untouched.