Repository navigation
fix(calendar): keep premiere badges on one line - #402
Conversation
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]>
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. |
|
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 configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughAndroid 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. ChangesCalendar badge display
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to 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)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
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 |
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
TexthadmaxLines = 1but kept soft wrapping, so the label wrapped after "SERIES". Only that first line was drawn, and the pill kept the full width.Solution
series_premierebadge 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.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
./gradlew testDebugUnitTestand the CI lint set (lintDebugfor android-shared, phone and TV;lintVitalReleasefor 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
Textparameters. 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
BadgePillcomposables for phone (CalendarScreen.kt) and TV (TvCalendarScreen.kt)CalendarBadge.SeriesPremierelabel from "SERIES PREMIERE" to "PREMIERE" since "NEW SEASON" already covers season premieresMacroscope summarized cbbc84c.