Skip to content

fix(calendar): keep premiere badges on one line - #402

Merged
Quick104 merged 2 commits into
mainfrom
fix/issue-397-calendar-premiere-badge
Sep 29, 2026
Merged

Quick104 merged 2 commits into
mainfrom
fix/issue-397-calendar-premiere-badge

Conversation

@Quick104

@Quick104 Quick104 commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Problem

On Calendar posters, the series-premiere badge showed only SERIES and the rest of the pill was blank. This happened on Android phone, tablet and TV. "SERIES PREMIERE" is wider than a poster at the badge font sizes (11sp on phone, 14sp on TV). The badge Text had maxLines = 1 but kept soft wrapping, so the label wrapped after "SERIES". Only that first line was drawn, and the pill kept the full width.

Solution

  • The series_premiere badge reads PREMIERE on phone, tablet and TV. It fits a poster at every poster size, and NEW SEASON still marks season premieres, so the two stay distinct. This departs from iOS and tvOS, which say "SERIES PREMIERE" at a much smaller font (8pt on iOS); a comment at each label records why.
  • Badge text no longer wraps (softWrap = false, TextOverflow.Ellipsis). A label that is too long for its poster now ends in "…" instead of showing its first word and a blank pill.

An earlier attempt let the pill wrap onto two lines and sized it to the longer line. It was legible but covered too much of the poster, so it was dropped.

Validation

  • Tested on the shared dev server with debug builds on API 36 emulators (phone and 1080p Android TV), using the All filter and the "Youth" S1·E1 series premiere (Sep 21). Before the change, the badge read "SERIES" with a blank pill on both. After it, the badge reads "PREMIERE" on one line, and NEW SEASON and FINALE are unchanged.
  • The Compact poster size (0.86 scale) was checked with a throwaway build that hard-codes the scale. On phone, every label fits. On TV, PREMIERE fits.
  • ./gradlew testDebugUnitTest and the CI lint set (lintDebug for android-shared, phone and TV; lintVitalRelease for phone and TV) pass. The supply-chain checks were not re-run; this change touches no build or workflow files.

Evidence: https://evidence.siloserver.org/r/silo-android/issue-397/

Risk

Low. Two string literals and two Text parameters. The label no longer matches Apple word for word.

Follow-up

With the Compact poster size on TV, NEW SEASON is still slightly too wide and now shows as "NEW SEAS…". Before this change it showed only "NEW". Reducing the TV pill's padding or font would make it fit; that is left for a separate change.

Closes #397
Validation tasks: #314 C1, #313 C1

AI disclosure

Diagnosis and code by Claude Opus 5.5 (claude-opus-5-5[1m]) in Claude Code, run from T3 Code. Emulator checks were driven over ADB.

🤖 Generated with Claude Code

Note

Fix calendar premiere badges to stay on one line

  • Sets badge text to skip soft wrapping and show an ellipsis when too long, in both BadgePill composables for phone (CalendarScreen.kt) and TV (TvCalendarScreen.kt)
  • Shortens the CalendarBadge.SeriesPremiere label from "SERIES PREMIERE" to "PREMIERE" since "NEW SEASON" already covers season premieres
  • Behavioral Change: calendar entries now show "PREMIERE" instead of "SERIES PREMIERE" for series premieres

Macroscope summarized cbbc84c.

The series-premiere badge wrapped after "SERIES" on phone, tablet and TV,
drew only that first word, and left the rest of the pill blank.

Label it "PREMIERE", which fits a poster at the current badge sizes, and
stop badge text from wrapping so an over-long label ends in an ellipsis
instead of a blank pill. NEW SEASON still marks season premieres.

Closes #397

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@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:08:56.273144Z cbbc84c 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.

@coderabbitai

coderabbitai Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 786dd99a-9362-44ca-821a-6651c2a19f1c

📥 Commits

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

📒 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

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

Android and Android TV calendar badges now keep text on one line and truncate overflow with an ellipsis. The SeriesPremiere badge label changes from “SERIES PREMIERE” to “PREMIERE”. Other badge mappings remain unchanged.

Changes

Calendar badge display

Layer / File(s) Summary
Badge text layout and labels
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
Both clients prevent badge text from wrapping and ellipsize overflow. Both map SeriesPremiere to “PREMIERE”; other badge mappings are unchanged.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Medium

Suggested reviewers: rxwatcher

Merge Risk: ⚪ Minimal · up to cbbc8

The scoped badge changes are consistent across phone, tablet, and TV, with no concrete merge-blocking risk identified.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 60.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly states the primary change: keeping calendar premiere badges on one line.
Description check ✅ Passed The description directly explains the badge wrapping problem, the label and layout changes, validation, risk, and follow-up work.
Linked Issues check ✅ Passed The changes address issue #397 on both Android targets. CalendarScreen.kt and TvCalendarScreen.kt map SeriesPremiere to PREMIERE, which distinguishes it from NEW SEASON. Both BadgePill imp…
Out of Scope Changes check ✅ Passed The pull request changes only the calendar badge label and text layout in the phone/tablet and TV calendar screens. These changes directly support issue #397. No unrelated product behavior or files ap…
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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.

@Quick104
Quick104 merged commit 8fad228 into main Sep 29, 2026
5 checks passed
@Quick104
Quick104 deleted the fix/issue-397-calendar-premiere-badge 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 SERIES PREMIERE badge shows only "SERIES" and the rest is blank (Android phone, tablet, TV)

1 participant