Index
panels
¶
TUI panels — individual display components for the monitor layout.
Classes¶
DetailPanel
¶
Bases: VerticalScroll
Renders details for the selected item in a scrollable container.
Content varies based on selected item type: - Process: strace summary, open FDs, full command, environment - Completed sheet: validation results, stdout tail, retry history - Anomaly: description, affected resources, historical context
Source code in src/marianne/tui/panels/detail.py
Functions¶
compose
¶
show_empty
¶
Show the default empty state.
show_process
¶
Show detailed process information.
Source code in src/marianne/tui/panels/detail.py
show_anomaly
¶
Show detailed anomaly information.
Source code in src/marianne/tui/panels/detail.py
show_file_activity
¶
Show recent file activity from observer events.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
events
|
list[dict[str, Any]]
|
Observer events filtered to |
required |
Source code in src/marianne/tui/panels/detail.py
show_item
¶
Show details for a generic selected item.
The item dict should have a 'type' key ('process', 'anomaly', 'job').
Source code in src/marianne/tui/panels/detail.py
HeaderPanel
¶
Bases: Static
Renders the system summary header with Rich markup.
Layout matches the htop style: Conductor: UP 2h15m CPU [|||| ] 12.0% Mem [|||||||| ] 45.0% Pressure: LOW Jobs: 2 Sheets: 3 active
Source code in src/marianne/tui/panels/header.py
Functions¶
update_data
¶
Update the header with new snapshot data and refresh display.
Source code in src/marianne/tui/panels/header.py
JobsPanel
¶
Bases: VerticalScroll
Renders the job tree with per-process metrics in a scrollable container.
Jobs are displayed as collapsible tree nodes. When there are many jobs, they start collapsed; with few jobs, they start expanded.
Source code in src/marianne/tui/panels/jobs.py
Attributes¶
Functions¶
compose
¶
Build the widget tree with a Tree for collapsible jobs.
Source code in src/marianne/tui/panels/jobs.py
select_next
¶
Move selection down in the tree.
select_prev
¶
update_data
¶
Update the panel with new snapshot data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
snapshot
|
SystemSnapshot | None
|
Current system snapshot with process metrics. |
required |
observer_file_events
|
list[dict[str, Any]] | None
|
Observer file events for job correlation. |
None
|
fleet_data
|
list[dict[str, Any]] | None
|
Fleet status dicts from fleet manager. Each dict has fleet_id, name, members (list of {job_id, group, status}). |
None
|
Source code in src/marianne/tui/panels/jobs.py
TimelinePanel
¶
Bases: RichLog
Renders a scrollable event timeline with color coding.
Uses RichLog for built-in scrolling and append-oriented display.
Events are color-coded by type: - blue: SPAWN - green: EXIT - yellow: SIGNAL - red: KILL/OOM/ANOMALY - magenta: LEARNING insights
Source code in src/marianne/tui/panels/timeline.py
Functions¶
update_data
¶
Update the timeline with new data and refresh display.