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

Apply filters in Node Finder on enter #2917

Merged
merged 5 commits into from
Jun 13, 2024

Conversation

zaelgohary
Copy link
Contributor

@zaelgohary zaelgohary commented Jun 9, 2024

Description

  • Apply filters on enter only if filters have changed and valid
  • Prevent default on submit

Related Issues

Checklist

  • Tests included
  • Build pass
  • Documentation
  • Code format and docstrings
  • Screenshots/Video attached (needed for UI changes)

@amiraabouhadid
Copy link
Contributor

Please attach a video of the change

amiraabouhadid
amiraabouhadid approved these changes Jun 9, 2024
@zaelgohary zaelgohary marked this pull request as draft June 9, 2024 09:22
@zaelgohary zaelgohary marked this pull request as ready for review June 9, 2024 11:15
@zaelgohary zaelgohary changed the title Apply filters on enter Apply filters in Node Finder on enter Jun 9, 2024
amiraabouhadid
amiraabouhadid previously approved these changes Jun 10, 2024
Copy link
Contributor

@amiraabouhadid amiraabouhadid left a comment

Choose a reason for hiding this comment

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

good catch @MohamedElmdary , lgtm

@amiraabouhadid amiraabouhadid self-requested a review June 10, 2024 08:19
@amiraabouhadid amiraabouhadid dismissed their stale review June 10, 2024 08:19

found an issue

Copy link
Contributor

@amiraabouhadid amiraabouhadid left a comment

Choose a reason for hiding this comment

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

@MohamedElmdary
Copy link
Member

when i toggle gpu and press enter filter isnt applied https://www.loom.com/share/b9ebddf09b78483284485fd0606daf50?sid=65474f3e-4857-458d-85cb-8bc841021735

nice catch !!

@MohamedElmdary
Copy link
Member

@zaelgohary after checking @amiraabouhadid comment I notice that using keyup.enter might fix this issue however we need to limit when should apply works

          <VForm :disabled="loading" v-show="!collapsible || filterOpened" @keyup.enter="!valid || !changed ? undefined : apply()">

@zaelgohary zaelgohary marked this pull request as draft June 12, 2024 08:32
@zaelgohary zaelgohary marked this pull request as ready for review June 12, 2024 09:19
@zaelgohary zaelgohary merged commit bfd5029 into development_2.6 Jun 13, 2024
3 checks passed
@zaelgohary zaelgohary deleted the development_2.6_filter_node_on_enter branch June 13, 2024 06:42
@xmonader xmonader added this to the 2.6.0 milestone Sep 24, 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.

6 participants