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

[EuiComboBox] Added sortMatchesBy prop #3089

Merged
merged 13 commits into from
Mar 19, 2020
Merged

Conversation

anishagg17
Copy link
Contributor

@anishagg17 anishagg17 commented Mar 16, 2020

Summary

Fixes: #1767 & Fixes #652

added startingWith prop to combobox, it can be seen in action on the last combobox demo in the view section

Checklist

- [ ] Check against all themes for compatibility in both light and dark modes
- [ ] Checked in mobile
- [ ] Checked in IE11 and Firefox

  • Added new Prop
  • Added documentation examples
  • Added or updated jest tests
    - [ ] Checked for breaking changes and labeled appropriately
    - [ ] Checked for accessibility including keyboard-only and screenreader modes
  • A changelog entry exists and is marked appropriately

src/components/combo_box/combo_box.tsx Outdated Show resolved Hide resolved
anishagg17 and others added 3 commits March 16, 2020 20:19
Co-Authored-By: Caroline Horn <549577+cchaos@users.noreply.github.com>
@cchaos
Copy link
Contributor

cchaos commented Mar 18, 2020

@anishagg17 You'll still need to update the docs with the new prop name and add tests.

@anishagg17
Copy link
Contributor Author

anishagg17 commented Mar 18, 2020

I have already updated docs with an example showing startsWith property

This test has some linting error can you please help me by fixing it

Screenshot 2020-03-18 at 2 26 24 PM

src-docs/src/views/combo_box/combo_box_example.js Outdated Show resolved Hide resolved
src-docs/src/views/combo_box/combo_box_example.js Outdated Show resolved Hide resolved
@cchaos cchaos requested a review from thompsongl March 18, 2020 13:35
anishagg17 and others added 2 commits March 18, 2020 19:22
Co-Authored-By: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-Authored-By: Caroline Horn <549577+cchaos@users.noreply.github.com>
@cchaos
Copy link
Contributor

cchaos commented Mar 18, 2020

Jenkins, test this

Copy link
Contributor

@thompsongl thompsongl left a comment

Choose a reason for hiding this comment

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

These will get the tests working.

There's also an eslint error in src-docs/src/views/combo_box/combo_box_example.js that you'll want to fix

src/components/combo_box/combo_box.test.tsx Outdated Show resolved Hide resolved
src/components/combo_box/combo_box.test.tsx Outdated Show resolved Hide resolved
src/components/combo_box/combo_box.test.tsx Outdated Show resolved Hide resolved
anishagg17 and others added 3 commits March 18, 2020 21:15
Co-Authored-By: Greg Thompson <thompsongl@users.noreply.github.com>
Co-Authored-By: Greg Thompson <thompsongl@users.noreply.github.com>
@thompsongl
Copy link
Contributor

jenkins test this

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_3089/

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

This looks great! Thanks!

@cchaos cchaos requested a review from thompsongl March 18, 2020 23:35
@cchaos cchaos changed the title added startingWith prop to combobox [EuiComboBox] Added sortMatchesBy prop Mar 19, 2020
Copy link
Contributor

@thompsongl thompsongl left a comment

Choose a reason for hiding this comment

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

Thanks, @anishagg17

Just need to fix the merge conflict

@thompsongl
Copy link
Contributor

jenkins test this

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_3089/

@thompsongl thompsongl merged commit 93ca8ef into elastic:master Mar 19, 2020
@anishagg17 anishagg17 deleted the combo branch March 19, 2020 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants