FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

Update most paginated places to auto load next page (except comments)

Open PikachuEXE opened this issue 1 year ago • 19 comments

Pull Request Type

  • [ ] Bugfix
  • [x] Feature Implementation
  • [ ] Documentation
  • [ ] Other

Related issue

https://github.com/FreeTubeApp/FreeTube/discussions/4521

Description

Make following places to auto load next page

  • every subscription tab
  • channel tabs with pagination
  • hashtag page
  • history page
  • search result page
  • user playlists page
  • single playlist page (remote & local playlists)

Comments already handled by https://github.com/FreeTubeApp/FreeTube/pull/3352 so not handled by this new option

Screenshots

image

Testing

Test places above with pagination and scroll down to ensure next page auto loaded only if option enabled

Desktop

  • OS:
  • OS Version:
  • FreeTube version:

Additional context

PikachuEXE avatar Jan 17 '24 01:01 PikachuEXE

This would make sense to be next to Comment Auto Load. Which by the way, should not be under Player Settings, which we currently have it at for some reason. So maybe move that too.

kommunarr avatar Jan 17 '24 02:01 kommunarr

Update comment section to auto load next page when this new option is enabled

I don't see why Comment Auto Load should be in General section when the only place it affects is comment section in watch page which is next to player (strictly speaking the Up Next & playlist components are also outside the actual video player and we place options like Autoplay Playlists & Play Next Video in the same section)

PikachuEXE avatar Jan 17 '24 02:01 PikachuEXE

Instead of duplicating the code across all components, it would probably be better to create a dedicated component for it and then reuse that in the other components. When it becomes visible it can emit an event and then the "parent" can use that to call it's own increaseLimit or loadMore function.

absidue avatar Jan 17 '24 07:01 absidue

@absidue Done (except comment section with custom logic

PikachuEXE avatar Jan 18 '24 01:01 PikachuEXE

This pull request has conflicts, please resolve those before we can evaluate the pull request.

github-actions[bot] avatar Jan 18 '24 03:01 github-actions[bot]

Conflicts have been resolved. A maintainer will review the pull request shortly.

github-actions[bot] avatar Jan 18 '24 07:01 github-actions[bot]

Everything works like expected. I did notice that this doesnt work for creator playlists but i assume that is because of YT.

If yes on previous statement then we have change messaging in tooltip

I need an example of creator playlists Also please suggest a new message (I think there might be more than 1 type of special playlists that might not work with this new feature in the future...)

PikachuEXE avatar Jan 22 '24 02:01 PikachuEXE

Sorry for the delay, its not working for me on these playlists

  • https://youtube.com/playlist?list=PL8mG-RkN2uTw7PhlnAr4pZZz2QubIbujH
  • https://youtube.com/playlist?list=PL950974742C0D24CC
  • https://youtube.com/playlist?list=PLBsP89CPrMeNm71T5gYC6jebm9vPbLBiP

Also wanted to chime in on the earlier topic about the placement of Comment Auto Load. Why not merge the Auto comment load and this setting into one and put it under General Settings as Infinite Scroll?

Coz Comment Auto Load also loads the comment section, not just next page

PikachuEXE avatar Feb 03 '24 00:02 PikachuEXE

Implemented auto load for single playlist page (remote & local playlists)

PikachuEXE avatar Feb 03 '24 03:02 PikachuEXE

This PR is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 14 days.

github-actions[bot] avatar Mar 06 '24 01:03 github-actions[bot]

Hello~?

PikachuEXE avatar Mar 06 '24 01:03 PikachuEXE

This pull request has conflicts, please resolve those before we can evaluate the pull request.

github-actions[bot] avatar Mar 06 '24 20:03 github-actions[bot]

Conflicts have been resolved. A maintainer will review the pull request shortly.

github-actions[bot] avatar Mar 07 '24 00:03 github-actions[bot]

This pull request has conflicts, please resolve those before we can evaluate the pull request.

github-actions[bot] avatar Mar 13 '24 06:03 github-actions[bot]

Conflicts have been resolved. A maintainer will review the pull request shortly.

github-actions[bot] avatar Mar 13 '24 06:03 github-actions[bot]

This pull request has conflicts, please resolve those before we can evaluate the pull request.

github-actions[bot] avatar Mar 14 '24 21:03 github-actions[bot]

Conflicts have been resolved. A maintainer will review the pull request shortly.

github-actions[bot] avatar Mar 15 '24 00:03 github-actions[bot]

This does NOT handle video comment auto load

Looking back at this, are we certain that maintaining this level of granularity is worth the cost of adding another setting to the pile (compared to combining these into one setting)? See this discussion here:

Adding more controls & optionality is something we would prefer not to do. We would prefer the solution that had the fewest amount of additional controls or settings added because we want to be conscientious of cluttering up the UI (more than it already is, but we're working on that). As a corollary of 1, that means making development choices that: a. have good-for-most-everyone default behaviors, and b. (when 2a does not suffice) lean into our existing settings and controls without having to add additional ones.

kommunarr avatar Apr 14 '24 22:04 kommunarr

So what's suggested is: replace commentAutoLoadEnabled with this new setting?

PikachuEXE avatar Apr 15 '24 03:04 PikachuEXE

I think one could argue for the technical implementation of either replacing the existing setting or adding this as a new behavior of the commentAutoLoadEnabled variable. The latter is maybe less preferable until I finally get an answer on what is actually desired for #4342. But yes, behaviorally, replacing the Comment Auto Load setting with this one.

kommunarr avatar Apr 15 '24 03:04 kommunarr

Removing commentAutoLoadEnabled is fine for me As long as we inform users on release note

PikachuEXE avatar Apr 15 '24 03:04 PikachuEXE

Setting commentAutoLoadEnabled removed, tooltip for new setting updated

PikachuEXE avatar Apr 15 '24 03:04 PikachuEXE