exlab_wizard.ui.components.empty_state#
Empty-state placeholder (GUI/Orchestrator Redesign §4 polish, Phase 5).
A centred icon above a one-line muted hint, shown by the explorer panes when
there is nothing to display – no folder selected, an empty folder, or no node
metadata. It replaces the earlier bare one-line labels so each empty region
reads as an intentional placeholder rather than stray text, while keeping the
same data-testid the flows assert on.
The helper is the only NiceGUI-touching surface; outside an app context (unit
tests) it yields None and renders nothing, mirroring the other components’
NiceGUI-optional pattern. Colours / spacing resolve to design tokens with a
literal fallback so the placeholder still renders if register_theme is
skipped on a route.
Functions
|
Render a centred icon + hint placeholder; return the column element. |
- exlab_wizard.ui.components.empty_state.empty_state(*, icon, message, testid)[source]#
Render a centred icon + hint placeholder; return the column element.
iconis a Material-icon name (the same setsync_status_icon()draws from);messageis the one-line hint.testidis set on the outer column so a flow that asserted on the old bare label’sdata-testidkeeps matching (placed once, to avoid a duplicate-testid strict-mode clash).Returns
Noneoutside a NiceGUI app context so the call is a safe no-op in unit tests that don’t spin up NiceGUI.