[One Discover] Add 'Read More', 'Read Less' functionality to highlight_fields#215326
Conversation
|
Pinging @elastic/obs-ux-logs-team (Team:obs-ux-logs) |
…urce-definitions/scripts/fix-location-collection.ts'
davismcphee
left a comment
There was a problem hiding this comment.
Code-only review, Data Discovery changes LGTM (really just tsconfig.json update).
There was a problem hiding this comment.
It's great that you added tests to understand the behaviour of the hook.
Could you please also add information in src/platform/packages/shared/kbn-react-hooks/README.md
…er-hovers-on-a-field-in-document-view-in-discover
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
History
|
|
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/14221559934 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…t_fields (elastic#215326) Added Read More/ Read Less functionality to fields in Document view in Discover. Also width of a field has been slightly increased. <img width="766" alt="Screenshot 2025-03-21 at 11 10 02" src="https://github.com/user-attachments/assets/771f0b0e-4613-4b5f-9785-558f22f44236" /> <img width="784" alt="Screenshot 2025-03-21 at 11 15 28" src="https://github.com/user-attachments/assets/3b5a8b18-fbce-4cf6-9ede-9dfb70b33c2f" /> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit d92ecd4) # Conflicts: # src/platform/plugins/shared/unified_doc_viewer/tsconfig.json
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
2 similar comments
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
…ghlight_fields (#215326) (#216856) # Backport This will backport the following commits from `main` to `8.x`: - [[One Discover] Add 'Read More', 'Read Less' functionality to highlight_fields (#215326)](#215326) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Robert Stelmach","email":"60304951+rStelmach@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-04-02T14:01:12Z","message":"[One Discover] Add 'Read More', 'Read Less' functionality to highlight_fields (#215326)\n\nAdded Read More/ Read Less functionality to fields in Document view in\nDiscover.\nAlso width of a field has been slightly increased.\n\n<img width=\"766\" alt=\"Screenshot 2025-03-21 at 11 10 02\"\nsrc=\"https://github.com/user-attachments/assets/771f0b0e-4613-4b5f-9785-558f22f44236\"\n/>\n<img width=\"784\" alt=\"Screenshot 2025-03-21 at 11 15 28\"\nsrc=\"https://github.com/user-attachments/assets/3b5a8b18-fbce-4cf6-9ede-9dfb70b33c2f\"\n/>\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"d92ecd4a174d91cfb4772ef70c18262f23cdf0d0","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:feature","Team:obs-ux-logs","backport:version","v9.1.0","v8.19.0"],"title":"[One Discover] Add 'Read More', 'Read Less' functionality to highlight_fields","number":215326,"url":"https://github.com/elastic/kibana/pull/215326","mergeCommit":{"message":"[One Discover] Add 'Read More', 'Read Less' functionality to highlight_fields (#215326)\n\nAdded Read More/ Read Less functionality to fields in Document view in\nDiscover.\nAlso width of a field has been slightly increased.\n\n<img width=\"766\" alt=\"Screenshot 2025-03-21 at 11 10 02\"\nsrc=\"https://github.com/user-attachments/assets/771f0b0e-4613-4b5f-9785-558f22f44236\"\n/>\n<img width=\"784\" alt=\"Screenshot 2025-03-21 at 11 15 28\"\nsrc=\"https://github.com/user-attachments/assets/3b5a8b18-fbce-4cf6-9ede-9dfb70b33c2f\"\n/>\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"d92ecd4a174d91cfb4772ef70c18262f23cdf0d0"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/215326","number":215326,"mergeCommit":{"message":"[One Discover] Add 'Read More', 'Read Less' functionality to highlight_fields (#215326)\n\nAdded Read More/ Read Less functionality to fields in Document view in\nDiscover.\nAlso width of a field has been slightly increased.\n\n<img width=\"766\" alt=\"Screenshot 2025-03-21 at 11 10 02\"\nsrc=\"https://github.com/user-attachments/assets/771f0b0e-4613-4b5f-9785-558f22f44236\"\n/>\n<img width=\"784\" alt=\"Screenshot 2025-03-21 at 11 15 28\"\nsrc=\"https://github.com/user-attachments/assets/3b5a8b18-fbce-4cf6-9ede-9dfb70b33c2f\"\n/>\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"d92ecd4a174d91cfb4772ef70c18262f23cdf0d0"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Added Read More/ Read Less functionality to fields in Document view in Discover.
Also width of a field has been slightly increased.