synology_apm_repo.sdk.presentation.icons module

Short glyphs a caller renders inline next to a name.

synology_apm_repo.sdk.presentation.icons.FILE_STATE_ICON: dict[str, str] = {'cloud_only': '☁', 'encrypted': '🔒', 'normal': ''}

Keyed by FileState.value, not the enum, so this leaf module imports nothing from the SDK. "" (NORMAL) means no suffix.

cloud_only is bare U+2601 without the VS16 emoji selector, so its width is one cell (Neutral, as rich.cells.cell_len measures it) rather than up to the terminal’s emoji-presentation choice.

synology_apm_repo.sdk.presentation.icons.file_state_suffix(value)

A ready-to-append suffix for value (FileState.value): a leading space plus the matching icon, or "" when there’s no icon (FileState.NORMAL, or an unrecognized value).

synology_apm_repo.sdk.presentation.icons.DIAGNOSTIC_ICON = '⚠'

Appended to a diagnostic_node() placeholder (Node.is_diagnostic), in every view: it is backup-completeness information, not an internal identifier. Bare U+26A0 without VS16, for the same reason as FILE_STATE_ICON’s cloud_only.

synology_apm_repo.sdk.presentation.icons.diagnostic_suffix(is_diagnostic)

A ready-to-append suffix (leading space plus DIAGNOSTIC_ICON) when is_diagnostic is true, else "".