Skip to content

store/runHistory#

filterRunHistory()#

function filterRunHistory(entries, filters): RunHistoryEntry[];

Apply the active filters.

Parameters#

Parameter Type
entries RunHistoryEntry[]
filters RunHistoryFilters

Returns#

RunHistoryEntry[]


parseRunHistoryPayload()#

function parseRunHistoryPayload(payload): RunHistoryEntry[];

Turn the backend's JSON payload into entries, dropping anything unusable.

Deliberately tolerant: a single malformed record written by an older build must not blank the whole page — that would reproduce the very failure this subsystem exists to prevent.

Parameters#

Parameter Type
payload string

Returns#

RunHistoryEntry[]


clearRunHistoryFilters#

const clearRunHistoryFilters: any;

RUN_KINDS#

const RUN_KINDS: readonly ["schedule", "acquisition", "export", "report"];

Durable run history — the renderer half of the job centre.

The entries come from the backend's per-profile run history and survive restarts. This is the archive of what ran; what is running now is tracked separately.


RUN_OUTCOMES#

const RUN_OUTCOMES: readonly ["success", "failure", "cancelled", "skipped"];

runHistory#

const runHistory: any;

runHistoryFailed#

const runHistoryFailed: any;

runHistoryRequested#

const runHistoryRequested: any;

setRunHistory#

const setRunHistory: any;

toggleRunKindFilter#

const toggleRunKindFilter: any;

toggleRunOutcomeFilter#

const toggleRunOutcomeFilter: any;

RunHistoryEntry#

Properties#

details#

details: Record<string, unknown>;

durationMs#

durationMs: number;

error#

error: string;

Full error text, never truncated for display — the user must be able to copy it.

failingStep#

failingStep: string;

Id of the step that failed, when the backend could attribute the failure.

id#

id: string;

kind#

kind: "report" | "schedule" | "acquisition" | "export";

label#

label: string;

outcome#

outcome: "success" | "cancelled" | "failure" | "skipped";

project#

project: string;

scheduleId#

scheduleId: string;

startedAt#

startedAt: number;

Unix time in milliseconds.


RunHistoryFilters#

Properties#

kinds#

kinds: ("report" | "schedule" | "acquisition" | "export")[];

Empty means "no filter", which is different from "none selected".

outcomes#

outcomes: ("success" | "cancelled" | "failure" | "skipped")[];

RunHistoryState#

Properties#

entries#

entries: RunHistoryEntry[];

error#

error: string | null;

filters#

filters: RunHistoryFilters;

status#

status: RunHistoryStatus;

RunHistoryStatus#

type RunHistoryStatus = "idle" | "loading" | "ready" | "error";

RunKind#

type RunKind = typeof RUN_KINDS[number];

RunOutcome#

type RunOutcome = typeof RUN_OUTCOMES[number];