Skip to content

Conversation

@Bnyro
Copy link
Member

@Bnyro Bnyro commented Aug 2, 2025

Planned for the homepage redesign with MD3 Expressive:

  • a dropdown to let users change the trending category on the homepage, e.g. to gaming

This doesn't yet really fit into the UI imo, that's why I want to incorporate that with the Expressive PR.

@Bnyro Bnyro requested a review from FineFindus August 2, 2025 11:50
@Bnyro
Copy link
Member Author

Bnyro commented Aug 2, 2025

It might make sense to hide the tab layout when there's only one category available (so in case Piped is used)?

Copy link
Collaborator

@FineFindus FineFindus left a comment

Choose a reason for hiding this comment

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

When changing tabs by directly jumping to a tab some of the tabs around are loaded as well. It would be great if we could avoid the additional requests.

It might make sense to hide the tab layout when there's only one category available (so in case Piped is used)?

I think that depends on how Piped intends to deal with them. With how it currently is I would just hide everything related to trending, considering that the default trending backend will be fully removed at some point and the piped backend hasn't seen any commit in a while. If they update, I agree we should hide the tabs.


class TrendsViewModel : ViewModel() {
val trendingVideos = MutableLiveData<List<StreamItem>>()
val trendingVideos = MutableLiveData<Map<TrendingCategory, List<StreamItem>>>()
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should initialize this with the trending content with already have from the home page, to avoid the additional request.

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree, but that'd be better off in a different PR, since this one focuses only on adding the new kiosk tabs

Copy link
Member Author

Choose a reason for hiding this comment

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

Done in #7600

@Figim
Copy link
Contributor

Figim commented Aug 2, 2025

Newpipe does not support : "music videos"
There is more content here and it is sorted.
https://charts.youtube.com/charts/TopVideos/am/daily

@Bnyro Bnyro force-pushed the trending-categories branch from 55a27f1 to 975cf89 Compare August 3, 2025 10:20
@Bnyro
Copy link
Member Author

Bnyro commented Aug 3, 2025

When changing tabs by directly jumping to a tab some of the tabs around are loaded as well. It would be great if we could avoid the additional requests.

We're interrupting the previous requests now, I doubt there's any better way (except if we wait a few 100ms before doing the initial request).

@Bnyro Bnyro merged commit ff555f7 into libre-tube:master Aug 3, 2025
4 checks passed
@Bnyro Bnyro deleted the trending-categories branch August 3, 2025 10:21
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.

3 participants