Repository navigation
fix(calendar): link an empty week to the other two views - #403
Conversation
The empty Calendar state offered only Show Everything, and only in Following and Trending. All offered nothing on phone and tablet and Refresh on TV, and Trending reused the generic title. The empty state now links to the other two views, never the current one, and Trending gets its own title. On TV the links sit in a row of focusable buttons, and pressing one moves focus to the new view's filter chip instead of letting it fall through to the top menu. Closes #398 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Warning Review limit reachedNext included review available in 29 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7fa49ea343
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
A saved legacy filter such as favorites gets all three links, and three 140 dp buttons in a plain Row need 444 dp, so the last one fell off a narrow phone. A large font scale could crowd two buttons the same way. The links now sit in a centered FlowRow that wraps onto a second line. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a86741e3aa
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
The buttons were fixed at 140 dp, so at a large font scale "Following" and "Trending" were clipped even though the row now wraps. They keep 140 dp as a minimum and widen to fit the label. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Problem
When a Calendar week has nothing in the selected view, the Android empty state offers only Show Everything, and only in Following and Trending. You can't jump to the other filtered view. All offers nothing on phone and tablet, and Refresh on Android TV. Trending also reuses the generic "Nothing scheduled this week" title (#398).
Solution
The empty state links to the other two views, never the current one, matching the Web fix (Silo-Server/silo-server#1494) and the Apple issue (Silo-Server/silo-apple#513):
CalendarScreen.kt): buttons labelled like the filter bar, at least 140 dp wide and growing with the label, in a centered row that wraps onto a second line when they don't fit. The legacyallfilter value counts as All. Any other saved legacy filter, such asfavorites, links to all three views.TvCalendarScreen.kt):CalendarMessagenow takes a list of actions and renders them as a row of focusable buttons below the filter bar. The error state still shows Refresh only.The buttons use the Android filter bar's labels (Following, Trending, All). Web's third link reads "Show everything".
Validation
:androidApp:testDebugUnitTest(679 tests) and:androidTvApp:testDebugUnitTest(1159 tests) pass.:androidApp:lintDebug,:androidTvApp:lintDebug,:androidApp:lintVitalReleaseand:androidTvApp:lintVitalReleasepass with no new lint errors. The two lint warnings inCalendarScreen.ktare on lines this change doesn't touch.:androidApp:assembleDebugand:androidTvApp:assembleDebugbuild.mainat86e1ebc7, phone (foldedsilo_fold_api36), tablet (unfolded) and TV (firestick_api28, Android 9) showed exactly what the issue describes.favorites, the three buttons wrap at phone width: Following and Trending on the first line, All centered below.Evidence: https://evidence.siloserver.org/r/silo-android/issue-398/
Closes #398
Validation tasks: #314 C5, #313 C5
Risk
UI only. The Calendar data, filters and week navigation are unchanged.
Follow-up: the Apple empty state still needs the same change (Silo-Server/silo-apple#513).
AI disclosure
Diagnosis and code by Claude Opus 5.5 (
claude-opus-5-5[1m]) in Claude Code, run from T3 Code. Emulator checks used adb and uiautomator.🤖 Generated with Claude Code
Note
Fix empty calendar week to link to the other two views
CalendarViewModel.setFilter.FlowRowon phone and aRowon TV for the new action buttons. The legacy All value is normalized to Everything on phone and to All on TV.Macroscope summarized 54f9689.