refactor: improve types in the frontend, misc fixes (#39142)

This commit is contained in:
silverwind
2026-08-31 04:12:25 -07:00
committed by GitHub
parent 535fc29ae8
commit 7c93ead628
46 changed files with 392 additions and 217 deletions
+13 -1
View File
@@ -18,6 +18,18 @@ import {
type RoutedEdge,
} from './WorkflowGraph.utils.ts';
export type WorkflowGraphLocale = {
graphJobsCount1: string,
graphJobsCountN: string,
graphDependenciesCount1: string,
graphDependenciesCountN: string,
graphSuccessRate: string,
graphZoomIn: string,
graphZoomMax: string,
graphZoomOut: string,
graphResetView: string,
};
interface StoredState {
scale: number;
translateX: number;
@@ -32,7 +44,7 @@ const props = defineProps<{
workflowId: string;
workflowLink?: string;
triggerEvent?: string;
locale: Record<string, string>;
locale: WorkflowGraphLocale;
}>();
const settingKeyStates = 'actions-graph-states';