Skip to content

Add play all button#9340

Open
r3dArch wants to merge 1 commit into
FreeTubeApp:developmentfrom
r3dArch:development
Open

Add play all button#9340
r3dArch wants to merge 1 commit into
FreeTubeApp:developmentfrom
r3dArch:development

Conversation

@r3dArch

@r3dArch r3dArch commented Jun 28, 2026

Copy link
Copy Markdown

Pull Request Type

  • Bugfix
  • Feature Implementation
  • Documentation
  • Other

Related issue

Closes #629

Description

This PR adds a button to the home tab, videos tab, shorts tab, and live tab of a channel to play all of the respective content based on the sorting selected. It also left justifies the content of the select container.

Screenshots

Before

Grimshot 2026-06-28 13-15-48 Grimshot 2026-06-28 13-15-52

After

Grimshot 2026-06-28 13-12-09 Grimshot 2026-06-28 13-12-13 Grimshot 2026-06-28 13-12-20 Grimshot 2026-06-28 13-12-31 Grimshot 2026-06-28 13-12-40 Grimshot 2026-06-28 13-12-46 Grimshot 2026-06-28 13-12-56 Grimshot 2026-06-28 13-13-02

Testing

  • Requires Fix online playlist parsing & revert workaround with youtubei.js update #9325
  • Go to any channel
  • Home tab should have a play all button that opens a playlist with all channel content ordered by newest
  • Videos, shorts, and live tabs should have a button that works similarly with their respective content and sorting
  • The videos, shorts, and live tabs play all button should be hidden when not sorting by newest or most popular as youtube only has playlists for sorting by newest or most popular

Desktop

  • OS: Arch Linux
  • OS Version: Kernel 7.0.10-zen1-1-zen
  • FreeTube version: 0.24.1

Additional context

@github-actions github-actions Bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Jun 28, 2026
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) June 28, 2026 17:26
@efb4f5ff-1298-471a-8973-3d47447115dc

Copy link
Copy Markdown
Member

#9325 is merged, please rebase into dev branch

auto-merge was automatically disabled July 2, 2026 21:09

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) July 2, 2026 21:09
@r3dArch r3dArch marked this pull request as draft July 2, 2026 21:09
auto-merge was automatically disabled July 2, 2026 21:09

Pull request was converted to draft

@github-actions github-actions Bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Jul 2, 2026
@r3dArch

r3dArch commented Jul 2, 2026

Copy link
Copy Markdown
Author

@efb4f5ff-1298-471a-8973-3d47447115dc I think my changes are good, but something seems to be broken. Even using the main development branch the sort selection drop down doesn't show up. I'm going to look into it now.

@r3dArch r3dArch marked this pull request as ready for review July 2, 2026 21:34
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) July 2, 2026 21:34
@github-actions github-actions Bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Jul 2, 2026
@r3dArch

r3dArch commented Jul 2, 2026

Copy link
Copy Markdown
Author

I forgot to pull the latest changes from the main repo. Everything seems to be good now.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please revert the placement of the Sort By dropdown.
Also put the Play All button the the left of the dropdown

@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc added PR: changes requested and removed PR: waiting for review For PRs that are complete, tested, and ready for review labels Jul 2, 2026
auto-merge was automatically disabled July 2, 2026 21:52

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) July 2, 2026 21:52
auto-merge was automatically disabled July 2, 2026 21:55

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) July 2, 2026 21:55
@r3dArch

r3dArch commented Jul 2, 2026

Copy link
Copy Markdown
Author

How is this?
Grimshot 2026-07-02 17-56-33
Grimshot 2026-07-02 17-56-38

@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The placement on the Home tab feels a bit weird to me. It being to the right is fine but its too high. I think aligning the height of the button to match the height of the header of the Videos section would be better.

Before you make this change. Could you please answer the following question (it could be the change above isnt needed depending on the answer). What is the reason you placed the Play All button on the Home page in the first place? The Videos tab Play All button brings me to the same playlist so it feels a bit unnecessary but i could be missing something here.

@r3dArch

r3dArch commented Jul 2, 2026

Copy link
Copy Markdown
Author

The play all button on the home tab should play all of a channels content; so if they have videos, shorts, and live content it should all be mixed together. I see what you mean about the look, but I don't quite understand your suggested change. Are you saying to have the button at the same level as the videos text?

@efb4f5ff-1298-471a-8973-3d47447115dc

Copy link
Copy Markdown
Member

The play all button on the home tab should play all of a channels content; so if they have videos, shorts, and live content it should all be mixed together

You are right. I somehow didnt notice it the first time and thought it was the same.

Are you saying to have the button at the same level as the videos text?

Correct

@r3dArch

r3dArch commented Jul 3, 2026

Copy link
Copy Markdown
Author

To make this change I've been looking at the channel home more closely and it seems that each shelf usually has a playlist button which would link to the respective content, so it might be confusing if it was positioned there. What do you think about putting it in the channel details since it plays all of a channels content?
Grimshot 2026-07-02 22-24-04

@absidue

absidue commented Jul 5, 2026

Copy link
Copy Markdown
Member

Most people will want just the videos, shorts or live streams, not everything mixed together, so I would get rid of the play all uploads button entirely.

Additionally instead of having a separate button for each tab, I would simplify it to one button in the template, with a v-if (we only use v-show on the FtSelect components so that they maintain their state correctly when the user switches tabs) that points to a computed that decides whether that one button should be shown or not (e.g. with a switch statement) and then instead of defining the click handler inline it could be single function in the script section which uses the current tab and sort by information to send it to the correct URL. That makes the template easier to read and avoids Vue having to re-calculate and re-render the button every time the tab is changed (it will only need to make changes when the button gets shown or hidden).

auto-merge was automatically disabled July 5, 2026 17:45

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) July 5, 2026 17:46
@r3dArch

r3dArch commented Jul 5, 2026

Copy link
Copy Markdown
Author

@absidue I made the requested changes, please let me know if you want it done any differently. Thank you for the explanation of v-if and v-show; I had not worked with Vue before this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Play All button

3 participants