exlab_wizard.ui.components.sync_status_icon#
Sync-status icon component (Frontend Spec §3.2, §10.5.1).
Seven distinct visual states with a fixed color mapping:
pending–--color-mutedretrying(with N/M) –--color-infosynced–--color-successcleaned–--color-successfailed–--color-dangerblocked_by_validation–--color-warningoverride_active–--color-info
The component returns a dict suitable for a NiceGUI icon factory; the
layout (icon + optional (N/M) retry counter) is the caller’s concern
so the icon can be embedded in a tree row, a detail-pane title bar, or a
staging-panel row identically.
Functions
|
Build a NiceGUI row containing the icon and optional retry counter. |
|
Compute icon + tooltip + retry-counter for a sync status. |
- type exlab_wizard.ui.components.sync_status_icon.SyncStatusIconExtraKind = Literal['retrying', 'override_active']#
- type exlab_wizard.ui.components.sync_status_icon.SyncStatusOrIcon = SyncStatus | SyncStatusIconExtraKind | str#
- exlab_wizard.ui.components.sync_status_icon.sync_status_icon(status, *, retry_n=None, retry_m=None)[source]#
Build a NiceGUI row containing the icon and optional retry counter.