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-muted

  • retrying (with N/M) – --color-info

  • synced--color-success

  • cleaned--color-success

  • failed--color-danger

  • blocked_by_validation--color-warning

  • override_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

sync_status_icon(status, *[, retry_n, retry_m])

Build a NiceGUI row containing the icon and optional retry counter.

sync_status_props(status, *[, retry_n, retry_m])

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.

Parameters:
Return type:

Any

exlab_wizard.ui.components.sync_status_icon.sync_status_props(status, *, retry_n=None, retry_m=None)[source]#

Compute icon + tooltip + retry-counter for a sync status.

The retry_n/retry_m annotations are rendered only when status == "retrying" (Frontend §10.5.1).

Parameters:
Return type:

dict[str, Any]