[Discover] make field icons consistent across field list and doc tables#129621
Conversation
|
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
src/plugins/discover/public/application/main/components/sidebar/discover_field.tsx
Outdated
Show resolved
Hide resolved
kertal
left a comment
There was a problem hiding this comment.
Thx so much! Now the icons is displayed correctly 👍 Added a request for refactoring to our utils folder for shared code, also saw some code as comment ready for a cleanup.
Note to myself: we currently have 2 ways in the code to get the label of the icon, version field's label in the DocViewer table is unknown therefore. We should also refactor this to a nice helper function in out utils folder to have a single point of 'failure', but that can be done in a follow up PR, there's another PR inflight working with field types , so there a good opportunity to simplify after that : #126657
|
You got it @kertal ! Updated the PR with your requests. |
kertal
left a comment
There was a problem hiding this comment.
Thx so much Andrew, LGTM , tested locally and works as expected 👍
src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table.tsx
Outdated
Show resolved
Hide resolved
|
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
Summary
Fixes #124017
Makes icons in the doc viewer tables match the fields list.
Modern
Legacy
Testing help
1. Create an index with a version field and give it a document
2. Create data view
3. View the document in Discover