[Infra UI] Hosts view flyout tab should be persisted when the full page is opened #164300
Labels
enhancement
New value added to drive a business result
Feature:Metrics UI
Metrics UI feature
Feature:ObsHosts
Hosts feature within Observability
Team:Infra Monitoring UI - DEPRECATED
DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services
Summary
As discussed in this PR we want to persist the tab opened inside the hosts view flyout when the user clicks on open as page and see the asset details page.
Currently, the overview tab on the asset details page is always shown when navigating from hosts view flyout.
For example, if the metadata tab is opened and the
open as page
button is clicked, the overview tab will be shown on the asset details page (when metadata is expected):nav_from_hosts_view.mov
Implementation hints
Currently, the new Host Details page is reusing the existing Metrics Details query params to get the
time
and load the pageWith the introduction of the new Host Details page, a new parameter was added
assetName
The new Host Details doesn't need the
autoReload
norrefreshInterval
parameter, and in order to carry over the state from the flyout to the full page view, we'll have to create a new query string object. e.g:Some files we'll have to change:
https://github.com/elastic/kibana/blob/main/x-pack/plugins/infra/public/pages/link_to/redirect_to_node_detail.tsx
https://github.com/elastic/kibana/blob/main/x-pack/plugins/infra/public/pages/metrics/hosts/components/table/entry_title.tsx#L27
https://github.com/elastic/kibana/blob/main/x-pack/plugins/infra/public/pages/metrics/metric_detail/asset_detail_page.tsx#L73
https://github.com/elastic/kibana/blob/main/x-pack/plugins/infra/public/pages/metrics/metric_detail/index.tsx#L21 (Asset Details won't need to be wrapped in the
MetricsTimeProvider
)The text was updated successfully, but these errors were encountered: