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

Added search button to search filters #6277

Open
wants to merge 6 commits into
base: development
Choose a base branch
from

Conversation

JL0000
Copy link
Contributor

@JL0000 JL0000 commented Dec 4, 2024

Added search button to search filters

Pull Request Type

  • Bugfix
  • Feature Implementation
  • Documentation
  • Other

Related issue

closes #6194

Description

Created a search button that applies the filters and triggers search in Search Filters. Search button is only visible when there is text in the search box.

There is no event passed to the search for this button, so will not duplicate window with shift.

Screenshots

image

Desktop

  • OS: MacOS
  • OS Version: 15.1.1 (24B2091)
  • FreeTube version: v0.22.0 Beta

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) December 4, 2024 16:09
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Dec 4, 2024
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.

In its current state this pull request feels overcomplicated. Please rewrite it to emit the query from the top-nav to the App component and pass it down to the search filters with a prop, then you can call router.push directly in the search filters component instead of misusing the store to forward your events.

@absidue absidue added PR: changes requested and removed PR: waiting for review For PRs that are complete, tested, and ready for review labels Dec 4, 2024
@JL0000
Copy link
Contributor Author

JL0000 commented Dec 7, 2024

do we want to support creating new window by pressing shift?

auto-merge was automatically disabled December 7, 2024 19:37

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) December 7, 2024 19:37
auto-merge was automatically disabled December 7, 2024 19:53

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) December 7, 2024 19:53
auto-merge was automatically disabled December 7, 2024 20:01

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) December 7, 2024 20:01
auto-merge was automatically disabled December 7, 2024 20:05

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) December 7, 2024 20:06
auto-merge was automatically disabled December 7, 2024 21:53

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) December 7, 2024 21:53
@PikachuEXE
Copy link
Collaborator

I imagine people are using this to refine the existing search result
Or they will use this first, close and type in query and press shift+enter

Though if possible supporting it won't hurt

auto-merge was automatically disabled December 9, 2024 14:39

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) December 9, 2024 14:39
auto-merge was automatically disabled December 9, 2024 14:43

Head branch was pushed to by a user without write access

@JL0000 JL0000 force-pushed the add-search-button-to-search-filters branch from fae77a3 to f0f6ac1 Compare December 9, 2024 14:43
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) December 9, 2024 14:44
@efb4f5ff-1298-471a-8973-3d47447115dc

do we want to support creating new window by pressing shift?

Yes best to give the users the ability to do that here as well

Copy link
Contributor

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

Copy link
Contributor

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

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.

[Feature Request]: Add apply button to search filters modal
4 participants