Repository navigation
Redesign iOS Calendar UX: Trakt-style glass nav card - #24
Conversation
The Calendar tab's controls were cramped and heavy: the Following/Trending/All segmented control read as cut-off loose text against the black background (its glass capsule was invisible there), and the filter + week strip were both pinned on top of the title bar — three frozen bands that ate the top of the screen and left almost nothing scrolling. This reworks the phone layout around a single Trakt-inspired floating calendar card and a contained scope control, keeping the tvOS focus paths untouched. - CalendarFilterBar: iOS now renders a contained segmented control — a visible track with a near-white pill that slides between segments (matchedGeometry) — so it no longer looks clipped. tvOS keeps its glass + focus chrome. - CalendarView: removed the standalone "Calendar" title bar; folded its search / profile actions (and the iPad sidebar toggle) into the floating card's top row to reclaim that vertical space. The card uses Liquid Glass (.siloGlass) and rides the scroll view's top safe-area inset, so the agenda refracts under it as it scrolls. The scope control scrolls away with the content; only the card pins. - CalendarWeekStrip: iOS week cells are now Trakt-style — weekday / boxed day number / event-count badge (selected fills the box, today outlines it), flanked by prev/next chevrons. tvOS strip unchanged. - Fix "Today": from another week it now awaits the current-week reload and scrolls to today's shelf (mirroring a day-strip tap) instead of leaving the user at the top of the week. goToToday() is now async. Builds green on the Silo (iOS) and SiloTV (tvOS) schemes. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughThe calendar screen now uses separate iOS/macOS and tvOS navigation layouts. On phone, the week strip is pinned above the agenda, and Today reloads the current week before scrolling to the selected day. ChangesCalendar screen platform split
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (2)
iosApp/iosApp/Screens/Calendar/CalendarView.swift (2)
161-165: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value
monthLabelis duplicated.This Thursday-anchored
monthLabelis identical to the one inCalendarWeekStrip(lines 177-181). Consider extracting it (e.g., aCalendarWeekcomputed property) to keep the two in sync.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@iosApp/iosApp/Screens/Calendar/CalendarView.swift` around lines 161 - 165, The Thursday-anchored monthLabel logic is duplicated between CalendarView.monthLabel and CalendarWeekStrip, so update the shared month formatting in one place. Extract the anchor-based month label computation into a common CalendarWeek computed property or helper, then have both CalendarView and CalendarWeekStrip use that shared symbol to keep the label behavior in sync.
171-183: 🩺 Stability & Availability | 🔵 TrivialRemove the fixed 50 ms delay before
scrollTo.
goToToday()already waits for the week load, and each day shelf has a stable.id(day), so the extra sleep is just a magic timing assumption. If a layout beat is still needed, use a next-runloop retry or an explicit “week rendered” signal instead of a hard-coded timeout.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@iosApp/iosApp/Screens/Calendar/CalendarView.swift` around lines 171 - 183, The returnToToday(proxy:) flow in CalendarView.swift should no longer rely on a hard-coded 50 ms sleep before scrolling. Since viewModel.goToToday() already awaits the week load and the day shelves use stable identifiers via .id(day), remove the fixed Task.sleep delay and make the scroll happen only after the today day is selected and the week is ready; if layout timing is still an issue, replace the timeout with a next-runloop retry or an explicit render-ready signal around returnToToday and viewModel.goToToday.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@iosApp/iosApp/Screens/Calendar/CalendarView.swift`:
- Around line 161-165: The Thursday-anchored monthLabel logic is duplicated
between CalendarView.monthLabel and CalendarWeekStrip, so update the shared
month formatting in one place. Extract the anchor-based month label computation
into a common CalendarWeek computed property or helper, then have both
CalendarView and CalendarWeekStrip use that shared symbol to keep the label
behavior in sync.
- Around line 171-183: The returnToToday(proxy:) flow in CalendarView.swift
should no longer rely on a hard-coded 50 ms sleep before scrolling. Since
viewModel.goToToday() already awaits the week load and the day shelves use
stable identifiers via .id(day), remove the fixed Task.sleep delay and make the
scroll happen only after the today day is selected and the week is ready; if
layout timing is still an issue, replace the timeout with a next-runloop retry
or an explicit render-ready signal around returnToToday and viewModel.goToToday.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: b5aa1f3a-9cac-4a9e-9ac8-bdf26da337a2
📒 Files selected for processing (4)
iosApp/iosApp/Screens/Calendar/CalendarFilterBar.swiftiosApp/iosApp/Screens/Calendar/CalendarView.swiftiosApp/iosApp/Screens/Calendar/CalendarViewModel.swiftiosApp/iosApp/Screens/Calendar/CalendarWeekStrip.swift
- Extract the Thursday-anchored month label to CalendarWeek.monthLabel so CalendarView and CalendarWeekStrip share one source of truth. - Replace returnToToday's hard-coded 50ms Task.sleep with a one-runloop DispatchQueue.main.async defer (the same hand-off CalendarDayShelf uses), so the scroll waits for the reloaded week to render without a magic timeout. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
Thanks @coderabbitai — both nitpicks addressed in 0eade24:
Both schemes (Silo / SiloTV) build green. 🤖 Addressed by Claude Code |
|
Tip For best results, initiate chat on the files or code changes.
✏️ Learnings added
|
What & why
The iOS Calendar tab's controls were cramped and heavy. The Following/Trending/All segmented control read as cut-off loose text against the black background (its glass capsule was invisible there), and the filter + week strip were both pinned on top of the title bar — three frozen bands that ate the top of the screen and left almost nothing scrolling.
This reworks the phone layout around a single Trakt-inspired floating glass calendar card plus a contained scope control. The tvOS focus paths are deliberately left untouched.
Changes
CalendarFilterBar— iOS now renders a contained segmented control: a visible track with a near-white pill that slides between segments (matchedGeometryEffect), so it no longer looks clipped. tvOS keeps its glass + focus chrome.CalendarView— removed the standalone "Calendar" title bar and folded its search / profile actions (and the iPad sidebar toggle) into the floating card's top row to reclaim that vertical space. The card uses Liquid Glass (.siloGlass) and rides the scroll view's top safe-area inset, so the agenda refracts under it as it scrolls. The scope control scrolls away with the content; only the card pins.CalendarWeekStrip— iOS week cells are now Trakt-style: weekday / boxed day number / event-count badge (selected fills the box, today outlines it), flanked by prev/next chevrons. tvOS strip unchanged.awaits the current-week reload and scrolls to today's shelf (mirroring a day-strip tap) instead of dumping the user at the top of the week.goToToday()is nowasync.Reviewer notes
continuumSurfaceElevated/Liquid Glass.scrollTo— flagged in case it needs tuning on slow loads.Screens/Calendar/files. Built green on the Silo (iOS) and SiloTV (tvOS) schemes; not yet verified on macOS (SiloMacshares the iOS layout path).🤖 Generated with Claude Code
Summary by CodeRabbit