feat: version tag (#14949)

This commit is contained in:
Wu Tianwei
2025-03-07 18:10:40 +08:00
committed by GitHub
parent 4aaf07d62a
commit 3ca1373274
41 changed files with 1695 additions and 423 deletions

View File

@@ -67,6 +67,10 @@ type Shape = {
setDraftUpdatedAt: (draftUpdatedAt: number) => void
publishedAt: number
setPublishedAt: (publishedAt: number) => void
currentVersion: VersionHistory | null
setCurrentVersion: (currentVersion: VersionHistory) => void
showWorkflowVersionHistoryPanel: boolean
setShowWorkflowVersionHistoryPanel: (showWorkflowVersionHistoryPanel: boolean) => void
showInputsPanel: boolean
setShowInputsPanel: (showInputsPanel: boolean) => void
inputs: Record<string, string>
@@ -205,6 +209,10 @@ export const createWorkflowStore = () => {
setDraftUpdatedAt: draftUpdatedAt => set(() => ({ draftUpdatedAt: draftUpdatedAt ? draftUpdatedAt * 1000 : 0 })),
publishedAt: 0,
setPublishedAt: publishedAt => set(() => ({ publishedAt: publishedAt ? publishedAt * 1000 : 0 })),
currentVersion: null,
setCurrentVersion: currentVersion => set(() => ({ currentVersion })),
showWorkflowVersionHistoryPanel: false,
setShowWorkflowVersionHistoryPanel: showWorkflowVersionHistoryPanel => set(() => ({ showWorkflowVersionHistoryPanel })),
showInputsPanel: false,
setShowInputsPanel: showInputsPanel => set(() => ({ showInputsPanel })),
inputs: {},