[Discover] De-angularize side bar search field#46679
Conversation
💚 Build Succeeded |
|
Pinging @elastic/kibana-app |
src/legacy/core_plugins/kibana/public/discover/components/field_chooser/_field_chooser.scss
Outdated
Show resolved
Hide resolved
💔 Build Failed |
ryankeairns
left a comment
There was a problem hiding this comment.
Great start! It looks like the Lens stuff is moving along, so we can steal from them soon to improve this further :)
💚 Build Succeeded |
💚 Build Succeeded |
💚 Build Succeeded |
|
@elasticmachine merge upstream |
💚 Build Succeeded |
flash1293
left a comment
There was a problem hiding this comment.
Tested in chrome and works, LGTM 👍
One thing I noticed (not a blocker for this PR): Currently _source is implicitly selected if nothing else is selected. Somehow (this is probably a separate bug) it is counted as a missing field and thus not shown in the selected list from now on (even if it's there and shown in the table). It might make sense to show _source as the initial selected field when Discover is opened, just to be consistent with what is shown in the table and in the side bar.
...egacy/core_plugins/kibana/public/discover/components/field_chooser/discover_field_search.tsx
Show resolved
Hide resolved
.../core_plugins/kibana/public/discover/components/field_chooser/discover_field_search.test.tsx
Outdated
Show resolved
Hide resolved
.../core_plugins/kibana/public/discover/components/field_chooser/discover_field_search.test.tsx
Outdated
Show resolved
Hide resolved
| <EuiFlexItem grow={false}> | ||
| <EuiButtonIcon | ||
| aria-expanded={showFilter} | ||
| aria-label={filterBtnAriaLabel} |
There was a problem hiding this comment.
IMHO it would be nice to also have this in a tooltip - what do you think?
…om:kertal/kibana into kertal-pr-2019-09-23-discover-field-filter
good catch, thx! now |
💔 Build Failed |
- due to padding issues collapsing didn't work
💔 Build Failed |
…-23-discover-field-filter
… btn - this caused the functional test to fail
💚 Build Succeeded |
* Add DiscoverFieldSearch react component * Adapt field_chooser.js * Add jest test * Adapt scss
Summary
De-angularize and adapt new design for Discover's field search.
Aside the search/filter by name, additional fields for filtering can be displayed. Note that they are not part of the PR (still angular), will be targeted soon.
One difference to the original behavior is that the filtering/searching also takes place in selected fields.
Additional filter fields folded:


Additional fields unfolded:
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.- [ ] Documentation was added for features that require explanation or tutorialsFor maintainers
- [ ] This was checked for breaking API changes and was labeled appropriately