exlab_wizard.ui.components.status_bar_segment#

Bottom-of-window status bar segment (Frontend Spec §3.5.5).

The status bar has three segments left-to-right – Sync, Validator, LIMS – each clickable and using var(--text-xs) monospace.

The component handles two concerns:

  • Color logic – normal state uses var(--color-muted); warning states use var(--color-warning); error states use var(--color-danger).

  • Layout – a small rounded segment with optional warning glyph prefix.

Functions

segment_spec(*, label[, state])

Compute a SegmentSpec from a label and state.

status_bar_segment(*, label[, state, on_click])

Build a clickable status-bar segment.

Classes

SegmentSpec(label, state, color_var, ...)

Computed render spec for a status-bar segment.

class exlab_wizard.ui.components.status_bar_segment.SegmentSpec(label, state, color_var, show_warning_glyph)[source]#

Bases: object

Computed render spec for a status-bar segment.

Parameters:
  • label (str)

  • state (str)

  • color_var (str)

  • show_warning_glyph (bool)

color_var: str#
label: str#
show_warning_glyph: bool#
state: str#
exlab_wizard.ui.components.status_bar_segment.segment_spec(*, label, state='normal')[source]#

Compute a SegmentSpec from a label and state.

The state controls the color and whether a warning glyph prefixes the label.

Parameters:
Return type:

SegmentSpec

exlab_wizard.ui.components.status_bar_segment.status_bar_segment(*, label, state='normal', on_click=None)[source]#

Build a clickable status-bar segment.

Parameters:
Return type:

Any