Skip to content

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

const RESULT_LABELS: Record<string, string>;

Defined in: src/shared/jobs/labels.ts:23

The "apply this result" action label per single-op type.


TYPE_LABELS

const TYPE_LABELS: Record<string, string>;

Defined in: src/shared/jobs/labels.ts:11

Human label per job type (single + batch).

Functions

isActive()

function isActive(status): boolean;

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()

function statusText(job): string;

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()

function typeLabel(type): string;

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).