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

Choose action select now correctly searches labels #1126

Merged
merged 1 commit into from
Apr 6, 2021

Conversation

rob-mccann
Copy link
Contributor

@rob-mccann rob-mccann commented Apr 5, 2021

Pull Request check-list

  • If your changes affects code, did your write the tests?
    • cant seem to see any test coverage at the moment for this
  • Are tests passing? (npm test on both front/server)
  • Is the linter passing? (npm run eslint on both front/server)
  • Did you run prettier? (npm run prettier on both front/server)
  • If you are adding a new features/services, did you run integration comparator? (npm run compare-translations on front)
  • If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)
  • If you are adding a new features/services which needs explanation, did you modify the user documentation? See the GitHub repo and the website.
  • Did you add fake requests data for the demo mode (front/src/config/demo.json) so that the demo website is working without a backend? (if needed) See https://demo.gladysassistant.com.

Description of change

The select box is currently filtering on value part of the option which causes some results to be missed when searching/filtering the list.

Fixes #1123
Fixes #1094

@codecov
Copy link

codecov bot commented Apr 5, 2021

Codecov Report

Merging #1126 (0bb776e) into master (be8e6c5) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1126   +/-   ##
=======================================
  Coverage   96.26%   96.26%           
=======================================
  Files         636      636           
  Lines        8087     8087           
=======================================
  Hits         7785     7785           
  Misses        302      302           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update be8e6c5...0bb776e. Read the comment docs.

@LM1LC3N7
Copy link
Contributor

LM1LC3N7 commented Apr 5, 2021

Thank you for your work 🙂

@rob-mccann rob-mccann changed the title WIP: Choose action select now correctly searches labels Choose action select now correctly searches labels Apr 5, 2021
Copy link
Contributor

@atrovato atrovato left a comment

Choose a reason for hiding this comment

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

Good job, but I had the same problem with the trigger selector, do we do this here or in another PR?

@rob-mccann
Copy link
Contributor Author

My suggestion would be to merge this for now if it's ok (as this is the select that was raised a couple of times). I'll take a look at wrapping react-select and replacing all instances with that so we can just pass in translation keys to avoid this boilerplate each time.

Copy link
Contributor

@Pierre-Gilles Pierre-Gilles left a comment

Choose a reason for hiding this comment

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

Looks good to me! Amazing work 🙂

@Pierre-Gilles Pierre-Gilles merged commit 015c620 into GladysAssistant:master Apr 6, 2021
Jean-PhilippeD pushed a commit to Jean-PhilippeD/Gladys that referenced this pull request Oct 13, 2021
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.

SCENE : autofill not working in the select Bug (scenes): "New action" text filtering not working well
4 participants