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

[Discover][DocViewer] Fix keyboard events in search input #180022

Merged
merged 2 commits into from Apr 5, 2024

Conversation

jughosta
Copy link
Contributor

@jughosta jughosta commented Apr 4, 2024

Summary

This PR fixes keyboard events in DocViewer flyout. Now when the search input is in focus, it would not trigger navigation between docs.

Checklist

@jughosta jughosta added release_note:fix Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Graph) backport:prev-minor Backport to the previous minor version (i.e. one version back from main) Feature:UnifiedDocViewer Issues relating to the unified doc viewer component labels Apr 4, 2024
@jughosta jughosta self-assigned this Apr 4, 2024
@jughosta
Copy link
Contributor Author

jughosta commented Apr 4, 2024

/ci

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
discover 590.4KB 590.5KB +95.0B

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @jughosta

@jughosta jughosta marked this pull request as ready for review April 4, 2024 09:54
@jughosta jughosta requested a review from a team as a code owner April 4, 2024 09:54
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

Copy link
Member

@kertal kertal left a comment

Choose a reason for hiding this comment

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

Oh, we implemented arrow navigation between documents! That's nice! iForgot! But of course it should not hijack the search input! LGTM; thx for fixing it so quickly! 👍

Tested locally in Chrome + Firefox, works as expected

@jughosta jughosta merged commit 568b0f4 into elastic:main Apr 5, 2024
27 checks passed
@jughosta jughosta deleted the 180008-fix-doc-viewer-keyboard branch April 5, 2024 10:18
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Apr 5, 2024
…0022)

- Closes elastic#180008

## Summary

This PR fixes keyboard events in DocViewer flyout. Now when the search
input is in focus, it would not trigger navigation between docs.

### Checklist

- [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 was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

(cherry picked from commit 568b0f4)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.13

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Apr 5, 2024
…0022) (#180129)

# Backport

This will backport the following commits from `main` to `8.13`:
- [[Discover][DocViewer] Fix keyboard events in search input
(#180022)](#180022)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Julia
Rechkunova","email":"julia.rechkunova@elastic.co"},"sourceCommit":{"committedDate":"2024-04-05T10:18:37Z","message":"[Discover][DocViewer]
Fix keyboard events in search input (#180022)\n\n- Closes
#180008
Summary\r\n\r\nThis PR fixes keyboard events in DocViewer flyout. Now
when the search\r\ninput is in focus, it would not trigger navigation
between docs.\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] This was
checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)","sha":"568b0f4806d2f6a64a0126d92d52b46d3c783ce2","branchLabelMapping":{"^v8.14.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:DataDiscovery","backport:prev-minor","Feature:UnifiedDocViewer","v8.14.0"],"title":"[Discover][DocViewer]
Fix keyboard events in search
input","number":180022,"url":"#180022
Fix keyboard events in search input (#180022)\n\n- Closes
#180008
Summary\r\n\r\nThis PR fixes keyboard events in DocViewer flyout. Now
when the search\r\ninput is in focus, it would not trigger navigation
between docs.\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] This was
checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)","sha":"568b0f4806d2f6a64a0126d92d52b46d3c783ce2"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.14.0","branchLabelMappingKey":"^v8.14.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/180022","number":180022,"mergeCommit":{"message":"[Discover][DocViewer]
Fix keyboard events in search input (#180022)\n\n- Closes
#180008
Summary\r\n\r\nThis PR fixes keyboard events in DocViewer flyout. Now
when the search\r\ninput is in focus, it would not trigger navigation
between docs.\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [x] This was
checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)","sha":"568b0f4806d2f6a64a0126d92d52b46d3c783ce2"}}]}]
BACKPORT-->

Co-authored-by: Julia Rechkunova <julia.rechkunova@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to the previous minor version (i.e. one version back from main) Feature:UnifiedDocViewer Issues relating to the unified doc viewer component release_note:fix Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Graph) v8.13.2 v8.14.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Discover] Document flyout table search bar keyboard navigation & selection unavailable
5 participants