-
Notifications
You must be signed in to change notification settings - Fork 891
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
Add search playlists with matching videos function #4537
Add search playlists with matching videos function #4537
Conversation
src/renderer/components/ft-playlist-add-video-prompt/ft-playlist-add-video-prompt.css
Outdated
Show resolved
Hide resolved
1674a34
to
f370a07
Compare
If there is no web build nesting can be used now (I tested locally before submitting PR, just not the web build) Anyway updated |
Also won't work if we ever switch to Tauri, but we'll probably have to get rid of loads of other modern CSS and JavaScript stuff then anyway. Tauri 1 supports macOS 10.13+ (High Sierra), which was released in 2017. However we could always set the minimum version higher ourselves. |
If we need to support older versions then we could always use browserslist with postcss and babel configurations https://github.com/browserslist/browserslist?tab=readme-ov-file#browserslist- |
Well this only shows the playlist that the video is included in, not the video(s) itself. |
static/locales/en-US.yaml
Outdated
@@ -141,6 +141,7 @@ User Playlists: | |||
You have no playlists. Click on the create new playlist button to create a new one.: You have no playlists. Click on the create new playlist button to create a new one. | |||
Empty Search Message: There are no videos in this playlist that matches your search | |||
Search bar placeholder: Search in Playlist | |||
Search in Videos: Search in Videos |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be more specific imo
Search in Videos: Search in Videos | |
Search in Videos: Search for Videos in Playlist |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not searching for videos, but searching for playlist(s) with matching videos
No idea how to make it short
static/locales/en-US.yaml
Outdated
@@ -141,6 +141,7 @@ User Playlists: | |||
You have no playlists. Click on the create new playlist button to create a new one.: You have no playlists. Click on the create new playlist button to create a new one. | |||
Empty Search Message: There are no videos in this playlist that matches your search | |||
Search bar placeholder: Search in Playlist |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Search bar placeholder: Search in Playlist | |
Search bar placeholder: Search for Playlist |
Trying to understand the use case. Someone wants to find videos they saved with a specific keyword (which is what this search bar did in previous versions of FreeTube, and what most people will assume this does when loading up the updated app). They put the keyword into the search bar and are presented with the playlists that contain a specific video. They then have to scroll a lot to find that section of their playlist. It doesn't sound like a pleasant UX. I would not be personally familiar with any other use cases. |
@PikachuEXE hmm i understand what you're saying. Not sure whats the best approach here @jasonhenriquez suggestion: Maybe make the searchbar function as before without the toggle? So remove toggle and users can use the searchbar to 1) playlist name, 2) video title. If we go that way maybe we should also add a search in the playlist it self so the user can look up the vid they're trying to find |
@efb4f5ff-1298-471a-8973-3d47447115dc I'm not sure if that addresses my concern. Or rather, not a concern, but just a question of what problem is being solved by this feature being present on the User Playlists page. At least in my usage, I haven't encountered the use case of needing to find which playlist has which video based on a keyword. If I did, what would I do from there? Click to open the playlist and then do another search to find the video I just searched? Instead, I often encounter the problem of needing to find the video link(s) / entry(s) that exists in one of my playlists based on the keyword. The location of this search bar is where we've trained current users of FreeTube to find the feature for that second use case. I think this space would be better reserved for a playlist-agnostic video search bar. This would work in that the video search results would load in lieu of or below the playlists, very similar to what we had there prior. There's then the question of what to do when one video appears in multiple playlists or has duplicate entries (my thought would be to just show it multiple times, optionally with information on its owning playlist and/or playlist index), but that's thankfully a rarer and far less irksome problem to encounter than the ones this solution resolves. This minimize the jarringness of the existing feature being replaced with something that looks similar but does something very different and is more comparatively niche in utility. |
Actions for me:
|
Pull request was converted to draft
Sry if it is seen as inappropriate to comment, but I think:
|
@toby63 We cant just show playlists and videos along side each other that will create a big mess. The playlist default search is searching only for playlist titles BUT if the user wants to find a video the just hit that toggle and search for the video title and it will show you results of the playlists that matches the search query for the video you are looking for. How this is currently implemented is a step into the right direction IMO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I disagree.
Example for how one specific result would like:
|
.searchInputsRow { | ||
display: grid; | ||
|
||
/* 2 columns */ | ||
grid-template-columns: 1fr auto; | ||
column-gap: 16px; | ||
} | ||
@media only screen and (max-width: 800px) { | ||
.searchInputsRow { | ||
/* Switch to 2 rows from 2 columns */ | ||
grid-template-columns: auto; | ||
grid-template-rows: auto auto; | ||
} | ||
} | ||
|
||
.optionsRow { | ||
display: grid; | ||
grid-template-columns: repeat(2, 1fr); | ||
grid-template-rows: 1fr; | ||
} | ||
@media only screen and (max-width: 800px) { | ||
.optionsRow { | ||
/* Switch to 2 rows from 2 columns */ | ||
grid-template-columns: auto; | ||
grid-template-rows: auto auto; | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As they both use the same media query and CSS rules, the two media query blocks can be merged into one.
.searchInputsRow { | |
display: grid; | |
/* 2 columns */ | |
grid-template-columns: 1fr auto; | |
column-gap: 16px; | |
} | |
@media only screen and (max-width: 800px) { | |
.searchInputsRow { | |
/* Switch to 2 rows from 2 columns */ | |
grid-template-columns: auto; | |
grid-template-rows: auto auto; | |
} | |
} | |
.optionsRow { | |
display: grid; | |
grid-template-columns: repeat(2, 1fr); | |
grid-template-rows: 1fr; | |
} | |
@media only screen and (max-width: 800px) { | |
.optionsRow { | |
/* Switch to 2 rows from 2 columns */ | |
grid-template-columns: auto; | |
grid-template-rows: auto auto; | |
} | |
} | |
.searchInputsRow { | |
display: grid; | |
/* 2 columns */ | |
grid-template-columns: 1fr auto; | |
column-gap: 16px; | |
} | |
.optionsRow { | |
display: grid; | |
grid-template-columns: repeat(2, 1fr); | |
grid-template-rows: 1fr; | |
} | |
@media only screen and (max-width: 800px) { | |
.searchInputsRow, | |
.optionsRow { | |
/* Switch to 2 rows from 2 columns */ | |
grid-template-columns: auto; | |
grid-template-rows: auto auto; | |
} | |
} | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No longer valid, they now have different properties
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code inside the media queries is the same for both.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't see align-items: stretch
on the GitHub website or in the mobile app, are you sure that all of your local changes got pushed to GitHub?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh that's caused by missing change to make new toggle vertically centered
Just committed the missing change
This isnt a strong argument and one you cant make. You cant voice your opinion and make that a reflection of how others will or will not use FT.
That would be nice yes but im pretty sure that isnt something we can do. First of all Videos are now properly part of a Playlist. That means that a Playlist contains X amount of Videos. Doing something like you suggested would mean we have to somehow decouple the Video that is stored inside the Playlist when you want to watch the video. I dont see anything like this happening and i stand by my point that this implementation is in the right direction. |
Would it be possible to also include the channel name in the search like if the search text is in the video title and/or youtube channel. |
@ArthurKun21 I think that suits the search within a specific Playlist better than the global Playlist search but i like to hear from the other devs in the team about this. If we decide that it suits the search within a Playlist better than that is out of scope of this PR. Edit: If we do this then we should do it for both searches otherwise it would cause confusion |
It will still turn out to be true, believe me.
Well it would probably be possible with PikachuEXE#66, but I acknowledge that it's difficult (as outlined in that FR). And what about my "side-line" proposal, that if you click on the playlist FreeTube could at least "jump" directly to the video position in the playlist? It would still be two clicks, but not a double-search. |
Ofcourse we will inform current users about the change
@toby63 This is how it behaves now VirtualBoxVM_ZeWk10pGUd.mp4 |
Thx for the illustration, I see you already had this idea 😉. I will then wait until PikachuEXE#66 might be functional and then we might get full video search once again 🤞. Just out of curiosity, does this work with mutiple search results in one playlist too? |
What do you mean by multiple searches? Multiple video results showing inside the playlist based on the search? |
Yes. |
Yes it does that |
@efb4f5ff-1298-471a-8973-3d47447115dc Thx and also thx for the patience 🙂. |
@efb4f5ff-1298-471a-8973-3d47447115dc |
…h-matching-videos * development: Fix handling of video published date in video lists (FreeTubeApp#4752) Translated using Weblate (Dutch) Translated using Weblate (Chinese (Simplified)) Bump lefthook from 1.6.4 to 1.6.5 (FreeTubeApp#4758) Bump marked from 12.0.0 to 12.0.1 (FreeTubeApp#4757) Bump electron from 29.1.0 to 29.1.1 (FreeTubeApp#4756) Translated using Weblate (Portuguese) Translated using Weblate (Portuguese (Brazil)) Improve touch controls for dash quality selector (FreeTubeApp#4750) Translated using Weblate (Serbian) Translated using Weblate (Spanish) Translated using Weblate (French) Translated using Weblate (German) Translated using Weblate (Estonian)
src/renderer/components/ft-playlist-add-video-prompt/ft-playlist-add-video-prompt.js
Show resolved
Hide resolved
* development: Translated using Weblate (Czech) Translated using Weblate (Slovenian) Add search playlists with matching videos function (FreeTubeApp#4537) Translated using Weblate (Danish) Translated using Weblate (Danish) Translated using Weblate (Danish) # Conflicts: # src/renderer/views/UserPlaylists/UserPlaylists.js
Pull Request Type
Related issue
Improvement to #4234
Description
Screenshots
Testing
Desktop
Additional context