Skip to main content

Module grid

Module grid 

Source
Expand description

The watchlist grid (#47): the live view of a running watchlist.

One row per target, breached rows first. A breach that starts rings the bell once and shows a banner until the next key. Enter opens the detail of the selected row: each cell with its value, its status and a chart of its last values. For a target on two or more venues, the detail is the venue charts (venue_charts): one chart per market cell with a line per venue. Evidence keys put the matching CLI command in the shell and run it there.

The state is pure: the event loop feeds it GridMsgs from the run and keys from the user; draw draws it.

Structs§

GridState
The grid’s state.

Enums§

GridAction
What a key in the grid asks the event loop to do.
GridMsg
What the run sends the grid.

Constants§

DETAIL_LEGEND
ENDED_LEGEND
GRID_LEGEND
The key legend of the grid and of the detail pane.
STALE_NOTE
Shown while a run uses the settings from before setup saved new ones.
VENUE_DETAIL_LEGEND

Functions§

draw
Draws the grid in area.
snapshot_text
The snapshot as plain text, for the scrollback copy when the grid closes.
summary
The scrollback summary when the grid closes.