The Console panel UI is built on top of React. It defines set of React components in components directory
The React architecture is described on the following diagram.
There are several external components we use from the WebConsole:
ObjectInspector/Rep: Used to display a variable in the console output and handle expanding the variable when it’s not a primitive.
Frame: Used to display the location of messages.
SmartTrace: Used to display the stack trace of messages and errors
TabboxPanel: Used to render a network message detail. This is directly using the component from the Netmonitor so we are consistent in how we display a request internals.
The Console panel manages the app state via Redux.
There are following reducers defining the panel state:
reducers/filters.js state for panel filters. These filters can be set from within the panel’s toolbar (e.g. error, info, log, css, etc.)
reducers/messages.js state of all messages rendered within the panel.
reducers/prefs.js Preferences associated with the Console panel (e.g. logLimit)
reducers/ui.js UI related state (sometimes also called a presentation state). This state contains state of the filter bar (visible/hidden), state of the time-stamp (visible/hidden), etc.