[Logs UI] Analyze page and URL state #142775
Labels
Feature:Discover
Discover Application
Feature:Logs UI
Logs UI feature
Team:Infra Monitoring UI - DEPRECATED
DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services
Summary
The Log stream currently uses a selection of custom hooks and
useState
calls that, when trying to work together in a co-ordinated manner, becomes very confusing to follow. This issue covers the work and desired output of moving to a Redux Toolkit based solution.Page state
Page state will be handled via XState state charts.
Data
Data dependencies
State machines
The page has a state machine that is composed of several specialized state machines. The states are connected to the rendered React components via thin container components at the top level of the hierarchy.
Log stream page state machine
Effects
URL state
We will use Kibana's
KbnUrlStateStorage
for handling URL state storage.Page state <> URL state coordination
We will sync state via the
syncState
utility. Since we will not be using Kibana's State Containers we can use the following guidance to sync ourKbnUrlStateStorage
instance to our Redux store. This really just boils down to adhering to aget
,set
, and$state
contract.State structure
TODO: this will contain proposed state structure, actions etc
The text was updated successfully, but these errors were encountered: