add search filter reset button#7531
add search filter reset button#7531FreeTubeBot merged 4 commits intoFreeTubeApp:developmentfrom ozrendev:add-filter-reset-btn
Conversation
| </FtFlexBox> | ||
| <div class="searchFilterCloseButtonContainer"> | ||
| <FtButton | ||
| :label="$t('Clear filters')" |
There was a problem hiding this comment.
Also need an entry in static/locales/en-US.yaml so people can translate
| :label="$t('Clear filters')" | |
| :label="$t('Search Filters.Clear Filters')" |
There was a problem hiding this comment.
Thanks for the quick response, have committed those changes
Head branch was pushed to by a user without write access
The clear filters button is using the secondary color var as I thought this would be less confusing. I can change it to the primary color though or whichever is suitable? |
|
Please read my comment again. I do not have anything against the secondary color theme. I have an issue with the text within it |
Head branch was pushed to by a user without write access
static/locales/en-US.yaml
Outdated
| Fetching results. Please wait: Fetching results. Please wait | ||
| Fetch more results: Fetch more results | ||
| There are no more results for this search: There are no more results for this search | ||
| Clear Filters: Clear filters |
Head branch was pushed to by a user without write access
|
Probably very out of scope: I need someone else to verify because i dont know if its my panel put if my secondary color theme is set to Red the Close button got a different shade of Red then the Clear Filters button |
|
Ok disregard what i said. Ty for testing :) |
* development: (214 commits) Translated using Weblate (Portuguese (Brazil)) Translated using Weblate (French) Translated using Weblate (French) add search filter reset button (FreeTubeApp#7531) ! Fix variant selection when no variant's audio role marked as main (FreeTubeApp#7571) Make sure description isn't null when extracting chapters from description (FreeTubeApp#7505) Translated using Weblate (French) Bump stefanzweifel/git-auto-commit-action from 5 to 6 (FreeTubeApp#7564) Translated using Weblate (Swedish) Bump the eslint group with 3 updates (FreeTubeApp#7567) Bump sass from 1.89.1 to 1.89.2 (FreeTubeApp#7565) Bump shaka-player from 4.14.15 to 4.14.18 (FreeTubeApp#7566) Bump postcss from 8.5.4 to 8.5.5 in the stylelint group (FreeTubeApp#7568) Bump electron-builder from 26.0.16 to 26.0.17 (FreeTubeApp#7569) Translated using Weblate (English (United Kingdom)) add beta to asset name (FreeTubeApp#7512) Translated using Weblate (Dutch) Translated using Weblate (Dutch) Fix builds failing due to broken Weblate keys (FreeTubeApp#7560) Translated using Weblate (Persian) ... # Conflicts: # package.json # src/renderer/helpers/api/local.js
Summoning @kommunarr @ozrendev @pkrasicki for this discussion. The image above shows how this currently looks like in dev branch. Only real change compared to this PR is that the cancel button is now always white which is consistent within the whole application. From my daily use of this feature something feels a bit off and i would like to share that with you to see if its just a me problem or something bigger (UI/UX issue). Everytime i apply a filter i somehow automatically gravitate towards the Clear Filters button as if my brain thinks that is has search now functionality applied to it. First i thought it must be because it is a different color compared to the cancel button but now i think this is happening because it is a similar style button as the close button and the positioning of this button. So in my mind this could be solved if the functionally is visually moved somewhere else in the filters modal and maybe a different style of button. idk something that is used often to clear stuff. Does this make sense at all or am i just used to this placement from other applications/websites and try to apply it here? |
|
I agree Clear Filters shouldn't be styled as main action (the one that should be would be a new button for "Search, though I tried once and implementing it seems difficult... Edit: issue related to adding search #6194 also see attempted PR's linked to that issue |
|
I found this icon. Would this icon portrait the action better? Edit: @pkrasicki i like the positioning of the icon in your screenshot! |
|
Yeah, that one is better. |
|
@pkrasicki Would you like to PR it if others approve of this placement and icon? @PikachuEXE @kommunarr @ozrendev thoughts on discussion? |
|
Not really, it's just a quick mockup I did in Gimp. You might also want to consider repositioning the refresh button on subscriptions page: #6293 (reply in thread). |
|
If it's shown always and it's shown as disabled by default then I guess it's easy enough to learn that it's a reset button |
i agree |
|
Every time an user applies a filter on YT it performs a search. If we would copy this behavior over than FT users will be ratelimited way faster because it will do multiple requests. We have implemented something that applies to our usecase. Regarding how it should look like. I think we need to be consistent here. The filter icon in the top nav is just an icon and when you hover on it you will see the description of it. IMO we should do the same with the Clear filters icon. We could make it disabled by default or make it appear once a filter has been chosen. |
Yeah I agree having the filter icon appear when a filter is selected should give the user enough feedback to know it's a clear icon (with tooltip) I know it's just a mockup, but also having the icon a bit bigger (same size as the current filter icon) would help. The position looks good! |
|
@ozrendev would you like to create a pr for it? |
Yeah, I'll do this soon! |













Pull Request Type
Related issue
closes #7396
Description
Add button that clears active search filters
Screenshots
Before

After
