Skip to content

fix(calendar): link an empty week to the other two views - #403

Merged
Quick104 merged 4 commits into
mainfrom
t3code/qa-fix-issue-398
Sep 29, 2026
Merged

Quick104 merged 4 commits into
mainfrom
t3code/qa-fix-issue-398

Conversation

@Quick104

@Quick104 Quick104 commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

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):

Empty view Title Buttons
Following Nothing from shows you follow Trending, All
Trending Nothing trending this week (new) Following, All
All Nothing scheduled this week Following, Trending
  • Phone and tablet (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 legacy all filter value counts as All. Any other saved legacy filter, such as favorites, links to all three views.
  • TV (TvCalendarScreen.kt): CalendarMessage now 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.
  • TV focus. Pressing a button switches the view and removes the pressed button, so focus fell through to the top menu. The handler now moves focus to the new view's filter chip.

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:lintVitalRelease and :androidTvApp:lintVitalRelease pass with no new lint errors. The two lint warnings in CalendarScreen.kt are on lines this change doesn't touch.
  • :androidApp:assembleDebug and :androidTvApp:assembleDebug build.
  • On emulators against shared dev, admin profile, in the week of 18 October 2027 (empty in all three views):
    • Before, on a debug build of main at 86e1ebc7, phone (folded silo_fold_api36), tablet (unfolded) and TV (firestick_api28, Android 9) showed exactly what the issue describes.
    • After, all three surfaces show the table above, and each button switches to its view.
    • On TV, Down from the week strip reaches the buttons and Left/Right moves between them. After a press, focus lands on the new view's filter chip.
    • With the phone's saved filter set to favorites, the three buttons wrap at phone width: Following and Trending on the first line, All centered below.
    • At font scale 2.0 on phone, the buttons widen to fit their labels with no clipping.
  • Not run: the build supply-chain scripts, since no build files changed. Also not re-walked: C5's step of returning to a populated week afterwards; week navigation is unchanged.

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

  • An empty calendar week now shows buttons for the other two calendar views instead of a single Show Everything action. Selecting one sets the filter via CalendarViewModel.setFilter.
  • On TV, selecting a link also requests focus on the matching filter control. TV error states still show a single Refresh action.
  • Adds view-specific empty titles and subtitles, e.g. "Nothing trending this week" for Trending.
  • Uses a wrapping FlowRow on phone and a Row on TV for the new action buttons. The legacy All value is normalized to Everything on phone and to All on TV.

Macroscope summarized 54f9689.

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]>
@coderabbitai

coderabbitai Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 29 minutes.

Check out review usage here.

View limit details

Limit 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.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 4e9bbb2a-6ebc-48c2-8a98-3a381e34dc50

📥 Commits

Reviewing files that changed from the base of the PR and between c38fb93 and 54f9689.

📒 Files selected for processing (2)
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/calendar/CalendarScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/calendar/TvCalendarScreen.kt

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-27T15:30:09.481797Z 54f9689 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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]>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Quick104 and others added 2 commits September 27, 2026 15:15
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]>
@Quick104
Quick104 merged commit 9174d7c into main Sep 29, 2026
5 checks passed
@Quick104
Quick104 deleted the t3code/qa-fix-issue-398 branch September 29, 2026 18:55
This was referenced Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Calendar empty state only offers Show Everything, with no link to the other views (Android phone, tablet, TV)

1 participant