Skip to content

feat: show how long ago a video was published on its card - #27

Merged
Priveetee merged 2 commits into
TypeType-Video:devfrom
tellur1an:feat/card-upload-age
Nov 23, 2026
Merged

Priveetee merged 2 commits into
TypeType-Video:devfrom
tellur1an:feat/card-upload-age

Conversation

@tellur1an

Copy link
Copy Markdown
Contributor

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:

Title
Channel
2.9K views  ·  6 days ago

Why a separate line

A card is 196 dp wide with 12 sp meta text. Channel · views · age on 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.

CardSkeleton gets a matching third bar so shelves don't shift when the real cards replace the loading ones.

No data changes: Video.age is already mapped from uploaded / publishedAt and used by DetailHeader, InfoPanel and SearchResults.

Testing

  • :core:ui:testDebugUnitTest, :app:assembleDebug, :app:compileDebugAndroidTestKotlin pass.
  • Installed a debug build on an NVIDIA SHIELD (4K) and checked the home, subscriptions, library and playlist screens. The three lines fit cleanly with no clipping.

🤖 Generated with Claude Code

@Priveetee

Copy link
Copy Markdown
Member

Thanks a lot for this one! (。•̀ᴗ-)✧

A few small things before I merge:

  • Could you point the PR at dev? main only moves through releases.
  • Please drop the comment in VideoCard, the code reads fine without it.
  • The Subscriptions feed has its own CardSkeleton in FeedPane.kt; it could get the same third line.

I'll squash it when merging. I'll try it on a TV before merging.

tellur1an and others added 2 commits November 23, 2026 08:55
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
tellur1an force-pushed the feat/card-upload-age branch from 70ff95d to 4ad5639 Compare November 23, 2026 14:56
@tellur1an
tellur1an changed the base branch from main to dev November 23, 2026 14:56
@tellur1an

Copy link
Copy Markdown
Contributor Author

Thanks! All three done:

  • Rebased onto dev and retargeted the PR.
  • Dropped the comment in VideoCard.
  • FeedPane's CardSkeleton now has the channel line and the views/age line, sized like the shared CardSkeleton.

:core:ui and :feature:subscriptions unit tests and :app:assembleDebug pass.

@Priveetee
Priveetee merged commit c2a3bf9 into TypeType-Video:dev Nov 23, 2026
1 of 2 checks passed
@Priveetee

Copy link
Copy Markdown
Member

Merged, thanks a lot! (ノ◕ヮ◕)ノ*:・゚✧ It'll ship with the next TV release.

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.

2 participants