Labels
Display helpers for jobs: human labels per operation type, the "apply result" action labels, the active-status test, and the status line (including batch progress + outcome summaries). Shared by the task tray and the dashboard Tasks tab.
Variables¶
RESULT_LABELS¶
Defined in: src/shared/jobs/labels.ts:23
The "apply this result" action label per single-op type.
TYPE_LABELS¶
Defined in: src/shared/jobs/labels.ts:11
Human label per job type (single + batch).
Functions¶
isActive()¶
Defined in: src/shared/jobs/labels.ts:46
Whether a status is still in flight.
Parameters¶
| Parameter | Type | Description |
|---|---|---|
status |
JobStatus |
The status. |
Returns¶
boolean
true for queued / running.
statusText()¶
Defined in: src/shared/jobs/labels.ts:66
The short status line for a job (batch-aware).
Parameters¶
| Parameter | Type | Description |
|---|---|---|
job |
Job |
The job. |
Returns¶
string
The status line.
typeLabel()¶
Defined in: src/shared/jobs/labels.ts:36
The display label for a job type.
Parameters¶
| Parameter | Type | Description |
|---|---|---|
type |
string |
The job type. |
Returns¶
string
The human label (falls back to the raw type).