kibana/packages/deeplinks/observability
Kibana Machine ad83fc7e37
[8.x] Remember tab choice between logs explorer and discover (#194930) (#196068)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Remember tab choice between logs explorer and discover
(#194930)](https://github.com/elastic/kibana/pull/194930)

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

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

<!--BACKPORT [{"author":{"name":"Abdul Wahab
Zahid","email":"awahab07@yahoo.com"},"sourceCommit":{"committedDate":"2024-10-14T09:26:24Z","message":"Remember
tab choice between logs explorer and discover (#194930)\n\nCloses
#193321 \r\n\r\n## Summary\r\n\r\nThe PR adds the redirection point when
\"Discover\" menu item is clicked\r\non the sidenav in serverless (or
solution nav on stateful). Based on\r\nwhat tab between \"Discover\" or
\"Logs Explorer\" the user clicked\r\nrecently, \"Discover\" will point
to that app/tab. Previously, \"Discover\"\r\nwould always point to
\"Logs Explorer\" on serverless and to \"Discover\"
on\r\nstateful.\r\n\r\nIn order to implement this, a temporary app
`last-used-logs-viewer` is\r\nregistered in
`observability-logs-explorer` plugin whose only job is to\r\nread the
last stored value in local storage and perform the
redirection.\r\n\r\nDoing the redirection from a temporary app should
help prevent\r\ntriggering unnecessary telemetry and history entries.
And it should be\r\nfairly easy to undo once context aware redirection
is in place.\r\n\r\n~With this implementation, only the behavior of user
clicking \"Discover\"\r\non the sidenav and clicking the tabs is
affected and any deeplinks from\r\nother apps or direct links should
work as is.~ The tab choice will be\r\nupdated even if the apps are
visited via
url.\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/8a0308db-9ddb-47b6-b1a5-8ed70662040d\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"fed9a193869739c2fae0bd7a49087fa1e216f5ac","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-logs","Team:obs-ux-management"],"title":"Remember
tab choice between logs explorer and
discover","number":194930,"url":"https://github.com/elastic/kibana/pull/194930","mergeCommit":{"message":"Remember
tab choice between logs explorer and discover (#194930)\n\nCloses
#193321 \r\n\r\n## Summary\r\n\r\nThe PR adds the redirection point when
\"Discover\" menu item is clicked\r\non the sidenav in serverless (or
solution nav on stateful). Based on\r\nwhat tab between \"Discover\" or
\"Logs Explorer\" the user clicked\r\nrecently, \"Discover\" will point
to that app/tab. Previously, \"Discover\"\r\nwould always point to
\"Logs Explorer\" on serverless and to \"Discover\"
on\r\nstateful.\r\n\r\nIn order to implement this, a temporary app
`last-used-logs-viewer` is\r\nregistered in
`observability-logs-explorer` plugin whose only job is to\r\nread the
last stored value in local storage and perform the
redirection.\r\n\r\nDoing the redirection from a temporary app should
help prevent\r\ntriggering unnecessary telemetry and history entries.
And it should be\r\nfairly easy to undo once context aware redirection
is in place.\r\n\r\n~With this implementation, only the behavior of user
clicking \"Discover\"\r\non the sidenav and clicking the tabs is
affected and any deeplinks from\r\nother apps or direct links should
work as is.~ The tab choice will be\r\nupdated even if the apps are
visited via
url.\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/8a0308db-9ddb-47b6-b1a5-8ed70662040d\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"fed9a193869739c2fae0bd7a49087fa1e216f5ac"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194930","number":194930,"mergeCommit":{"message":"Remember
tab choice between logs explorer and discover (#194930)\n\nCloses
#193321 \r\n\r\n## Summary\r\n\r\nThe PR adds the redirection point when
\"Discover\" menu item is clicked\r\non the sidenav in serverless (or
solution nav on stateful). Based on\r\nwhat tab between \"Discover\" or
\"Logs Explorer\" the user clicked\r\nrecently, \"Discover\" will point
to that app/tab. Previously, \"Discover\"\r\nwould always point to
\"Logs Explorer\" on serverless and to \"Discover\"
on\r\nstateful.\r\n\r\nIn order to implement this, a temporary app
`last-used-logs-viewer` is\r\nregistered in
`observability-logs-explorer` plugin whose only job is to\r\nread the
last stored value in local storage and perform the
redirection.\r\n\r\nDoing the redirection from a temporary app should
help prevent\r\ntriggering unnecessary telemetry and history entries.
And it should be\r\nfairly easy to undo once context aware redirection
is in place.\r\n\r\n~With this implementation, only the behavior of user
clicking \"Discover\"\r\non the sidenav and clicking the tabs is
affected and any deeplinks from\r\nother apps or direct links should
work as is.~ The tab choice will be\r\nupdated even if the apps are
visited via
url.\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/8a0308db-9ddb-47b6-b1a5-8ed70662040d\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"fed9a193869739c2fae0bd7a49087fa1e216f5ac"}}]}]
BACKPORT-->

Co-authored-by: Abdul Wahab Zahid <awahab07@yahoo.com>
2024-10-14 06:16:05 -05:00
..
locators [8.x] Remember tab choice between logs explorer and discover (#194930) (#196068) 2024-10-14 06:16:05 -05:00
constants.ts [8.x] Remember tab choice between logs explorer and discover (#194930) (#196068) 2024-10-14 06:16:05 -05:00
deep_links.ts [8.x] Remember tab choice between logs explorer and discover (#194930) (#196068) 2024-10-14 06:16:05 -05:00
index.ts [8.x] Remember tab choice between logs explorer and discover (#194930) (#196068) 2024-10-14 06:16:05 -05:00
jest.config.js Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kibana.jsonc [Inventory] Inventory plugin (#191798) 2024-09-12 15:07:09 +02:00
package.json Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
README.md [SharedUxChromeNavigation] Use deeplink id instead of href (#159125) 2023-06-13 10:10:10 -07:00
tsconfig.json [Log Explorer] Add Explorer app locator (#165962) 2023-09-20 19:49:57 +02:00

@kbn/deeplinks-observability

Empty package generated by @kbn/generate