feat: expand intelligent investigation workspace
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { toLocalDateKey } from "@/shared/utils/date-time";
|
||||
import { useEffect, useState } from "react";
|
||||
import { getWorkbenchProject, type WorkbenchAccess } from "../api/request-context";
|
||||
import { env } from "@/shared/config/env";
|
||||
@@ -249,7 +250,7 @@ export function useWorkbenchRuntimeData(
|
||||
: backendRuntimeActive
|
||||
? "backend" as const
|
||||
: "mock" as const,
|
||||
operationalDate: formatLocalDateKey(operationalDate),
|
||||
operationalDate: toLocalDateKey(operationalDate),
|
||||
operationalCursorTime: operationalDate.toISOString(),
|
||||
scheduledConditionsLoading,
|
||||
realtimePipeFlows,
|
||||
@@ -258,10 +259,3 @@ export function useWorkbenchRuntimeData(
|
||||
scenarios: !allowDemoScenarios && resolvedRuntimeData.scenarioDataSource === "mock" ? [] : resolvedRuntimeData.scenarios
|
||||
};
|
||||
}
|
||||
|
||||
function formatLocalDateKey(value: Date) {
|
||||
const year = value.getFullYear();
|
||||
const month = String(value.getMonth() + 1).padStart(2, "0");
|
||||
const day = String(value.getDate()).padStart(2, "0");
|
||||
return `${year}-${month}-${day}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user