[DataView] UX improvements for index pattern input in data view flyout#152138
[DataView] UX improvements for index pattern input in data view flyout#152138jughosta merged 34 commits intoelastic:mainfrom
Conversation
|
Looks great @jughosta ! Much easier for the user to understand which index patterns they are selecting, and great that the user can select them via a checkbox. Small comment: When the user selects to have "Rows per page" to e.g. 20 from 10, then it does not remember it next time I am creating a data view. |
|
This is much more userfriedly 👍 and will be very helpful! |
…t' into improvements-for-data-view-flyout
…t' into improvements-for-data-view-flyout
|
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
|
Kept only minimum changes at this stage. |
| </ul> | ||
| </EuiText> | ||
| </EuiPanel> | ||
| </EuiPopover> |
There was a problem hiding this comment.
There was a problem hiding this comment.
I'm tempted to shorted the index pattern field description text now that there's a popover to just the first sentence.
There was a problem hiding this comment.
I agree with shortening the hint text under the field description. I'll work up some text.
| helpText: i18n.translate('indexPatternEditor.validations.titleInputHelpText', { | ||
| defaultMessage: | ||
| 'Enter an index pattern that matches one or more data sources. Use an asterisk (*) to match multiple characters. Spaces and the characters , /, ?, ", <, >, | are not allowed.', | ||
| 'Enter an index pattern that matches one or more data sources. Use a wildcard (*) to match multiple sources. Separate with a comma (,) to match multiple single sources. Spaces and the characters /?"<>| are not allowed.', |
kertal
left a comment
There was a problem hiding this comment.
Even with removing the ability to select indices by mouse (I already miss it, but it can be added in the future) this brings nice UX improvements to this area 👍
|
My suggestion is to remove all hint text underneath the field and use this copy in the help popover. Also explain what an index pattern is. An index pattern is a string that you use to match one or more data streams, indices, or aliases.
|
|
Thanks, @gchaps! |
| pattern: <EuiCode>-test3</EuiCode>, | ||
| }} | ||
| id="indexPatternEditor.titleDocsPopover.dontUseSpecialCharactersDescription" | ||
| defaultMessage="Spaces and the characters /?”<> are not allowed." |
There was a problem hiding this comment.
looks like the | char is missing, also the quote character changed. I'm comparing to the form schema change.
mattkime
left a comment
There was a problem hiding this comment.
one minor comment I'll trust you to resolve. Otherwise looks great!
|
A couple of minor changes:
|
…t' into improvements-for-data-view-flyout
|
@mattkime Good catch! Thanks! |
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @jughosta |
elastic#152138) ## Summary This PR adds some UX improvements to how an index pattern can be entered: - [x] Help text under the input was updated to mention that commas can be used - [x] Added in-product docs popover to Index pattern input - [x] Automatically show all sources again if a comma was entered - [x] It's possible to switch between all available sources and only matching ones via new tabs - [x] Index name will be fully highlighted if ES returns that it was an exact match for a wildcard - [x] Persist the selected "Rows per page" value in localStorage <img width="400" alt="Screenshot 2023-03-01 at 12 02 40" src="https://user-images.githubusercontent.com/1415710/222121556-b0288fdc-8095-4a66-b781-d3d389c7f54a.png"> <img width="400" alt="Screenshot 2023-03-01 at 12 02 46" src="https://user-images.githubusercontent.com/1415710/222121559-ede0ec65-e49f-4253-afaa-7c7980f714c8.png"> <img width="400" alt="Screenshot 2023-03-01 at 11 56 59" src="https://user-images.githubusercontent.com/1415710/222120704-a0b2c974-ca03-450a-9beb-6fe72b03c929.png"> ### Checklist - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md) - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] This renders correctly on smaller devices using a responsive layout. (You can test this [in your browser](https://www.browserstack.com/guide/responsive-testing-on-local-server)) - [x] This was checked for [cross-browser compatibility](https://www.elastic.co/support/matrix#matrix_browsers) --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>





Summary
This PR adds some UX improvements to how an index pattern can be entered:
Checklist