Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve video playlist search UX #4929

Merged

Conversation

kommunarr
Copy link
Collaborator

@kommunarr kommunarr commented Apr 11, 2024

Improve video playlist search UX

Pull Request Type

  • Feature Implementation

Related issue

None

Description

Clicking a button to enable/disable search has felt pretty arbitrary and cumbersome in my experience. This PR:

  1. Removes the playlist video search button & makes the search bar appear alongside the other playlist-info controls by default, where playlistInVideoSearchMode is now true when the search bar is non-empty.
  2. Focuses the playlist search bar on Ctrl+F. This is an experimental change testing how people like the convenience of Ctrl+F for a route with a prominent search bar. I, personally, have been pressing it in my personal usage on this page thinking it would focus this bar, to minor frustration.
  3. Fixes subject/verb agreement on two search labels: There are no videos in this playlist that matches your search -> There are no videos in this playlist that match your search
  4. Hides the search bar when there are <2 videos in the playlist

Screenshots

Screenshot_20240411_091333

Testing

  • (REG) Ensure search filter is populated when searching for a video from the User Playlists page
  • Ensure search filter is active/inactive based on if trimmed search input is empty
  • Try using the icons with search filter active (I thought this was a reason why we had this implemented like this, but it turns out all of the playlist options work just the same)

Desktop

  • OS: OpenSUSE
  • OS Version: TW

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) April 11, 2024 14:17
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Apr 11, 2024
Copy link
Member

Choose a reason for hiding this comment

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

Removes the playlist video search button & makes the search bar appear alongside the other playlist-info controls by default, where playlistInVideoSearchMode is now true when the search bar is non-empty.

Please Hide search when there is 0 or 1 vids in the playlist. I see no reason for it to be there.

Focuses the playlist search bar on Ctrl+F. This is an experimental change testing how people like the convenience of Ctrl+F for a route with a prominent search bar. I, personally, have been pressing it in my personal usage on this page thinking it would focus this bar, to minor frustration.

Please list it in https://docs.freetubeapp.io/usage/keyboard-shortcuts/ after PR is merged.

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

This PR does not close #4924. That is about the add to playlist window.

PikachuEXE
PikachuEXE previously approved these changes Apr 12, 2024
Copy link
Collaborator

@PikachuEXE PikachuEXE left a comment

Choose a reason for hiding this comment

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

No necessary in this PR
Maybe also add Ctrl+F to playlists view to be consistent?

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

This is an experimental change testing how people like the convenience of Ctrl+F for a route with a prominent search bar.

Thinking about this again and i think this should belong in the Experimental Settings with a toggle

@kommunarr
Copy link
Collaborator Author

Thinking about this again and i think this should belong in the Experimental Settings with a toggle

Honest q: why? This is something people will either type in or not type in.

Copy link
Member

@absidue absidue left a comment

Choose a reason for hiding this comment

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

Could you please update the CSS for the searchInputsRow class in ft-playlist-info.scss and remove the grid stuff, as that causes a wider margin on the right side than the left side, as there is a blank colum with an 8px gap.

src/renderer/components/playlist-info/playlist-info.js Outdated Show resolved Hide resolved
@PikachuEXE
Copy link
Collaborator

@absidue 's comment about searchInputsRow addressed?

@kommunarr
Copy link
Collaborator Author

I somehow missed that comment. So many self-facepalms since coming back lol. Lemme check

@kommunarr kommunarr mentioned this pull request Apr 14, 2024
1 task
@PikachuEXE
Copy link
Collaborator

Either no margin at all or have margin on both sides
Also I think there should be spacing between the input box and the buttons above (8px?)
image

SC after applying my suggested changes
image

@kommunarr
Copy link
Collaborator Author

@PikachuEXE Thank you for concealing my secret that I put inline instead of block and forgot to hit save 🤦‍♂️

@FreeTubeBot FreeTubeBot merged commit 5359d84 into FreeTubeApp:development Apr 16, 2024
5 checks passed
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Apr 16, 2024
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.

5 participants