Repository navigation
feat: show how long ago a video was published on its card - #27
Merged
Merged
Conversation
Member
|
Thanks a lot for this one! (。•̀ᴗ-)✧ A few small things before I merge:
I'll squash it when merging. I'll try it on a TV before merging. |
The cards in the shelves, the feed, the library and the playlists only showed the channel and the view count, so the age of a video was only visible on its detail page. The views and the age now sit on their own line under the channel name, like the phone app, and the loading cards gain a matching line. A narrow card keeps the whole channel name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Subscriptions feed has its own loading card, so it gets the channel line and the views and age line too. The comment in VideoCard is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tellur1an
force-pushed
the
feat/card-upload-age
branch
from
November 23, 2026 14:56
70ff95d to
4ad5639
Compare
Contributor
Author
|
Thanks! All three done:
|
Member
|
Merged, thanks a lot! (ノ◕ヮ◕)ノ*:・゚✧ It'll ship with the next TV release. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Video cards (home shelves, subscriptions feed, library, playlists, channel pages, related shelf) only showed the channel and the view count. The upload age was visible only on the detail page and in the player info panel. The phone app shows it with every title.
The card now has:
Why a separate line
A card is 196 dp wide with 12 sp meta text.
Channel · views · ageon one line truncates almost always, and the age is the part that gets cut off. Putting the views and the age on their own line keeps the full channel name and always shows the age. If a video has neither views nor an age, the line is skipped.CardSkeletongets a matching third bar so shelves don't shift when the real cards replace the loading ones.No data changes:
Video.ageis already mapped fromuploaded/publishedAtand used byDetailHeader,InfoPanelandSearchResults.Testing
:core:ui:testDebugUnitTest,:app:assembleDebug,:app:compileDebugAndroidTestKotlinpass.🤖 Generated with Claude Code