fix(workbench): suppress unconfigured demo alerts
The not_configured branch previously promoted mock task failures into critical alerts. Return an explicit empty alert source so the exception badge reflects only actionable backend state.
This commit is contained in:
@@ -11,7 +11,6 @@ import {
|
||||
} from "../data/scheduled-conditions";
|
||||
import { WORKBENCH_SCENARIOS } from "../data/workbench-session";
|
||||
import type { ScheduledConditionItem } from "../types";
|
||||
import { createScheduledConditionAlerts } from "../utils/scheduled-condition-alerts";
|
||||
import type { WorkbenchSyncState } from "./use-workbench-sync";
|
||||
|
||||
const HEADER_DATA_TIME_STEP_MINUTES = 5;
|
||||
@@ -106,8 +105,8 @@ export function resolveWorkbenchRuntimeData(
|
||||
scheduledConditions: [...fallbackConditions, ...resolvedWorkOrders],
|
||||
workbenchAlerts: backendAlertsConfigured
|
||||
? backendSnapshot!.alerts
|
||||
: createScheduledConditionAlerts(fallbackConditions),
|
||||
alertDataSource: backendAlertsConfigured ? "backend" as const : "mock" as const,
|
||||
: [],
|
||||
alertDataSource: backendAlertsConfigured ? "backend" as const : "none" as const,
|
||||
runtimeDataSource: "mock" as const,
|
||||
scenarios: useBackendScenarios ? backendSnapshot!.scenarios : WORKBENCH_SCENARIOS,
|
||||
scenarioDataSource: useBackendScenarios ? "analysis_runs" as const : "mock" as const,
|
||||
|
||||
Reference in New Issue
Block a user