Files
windmill/frontend/src/lib/git-sync.ts
T
Alexander Petric dcc20c4fc1 git sync UI improvements (#6303)
* ui improvements round 1

* modal cleanup

* init

* UI refactor

* UI cleanup + refactor

* legacy cleanup

* success model -> github actions, non-ee warnings

* sqlx

* npm check

* ee warning everywhere

* last comments

* formatting

* no hardcoded theme

* claude review improvemenets
2025-07-30 21:36:32 +00:00

35 lines
771 B
TypeScript

// Deterministic backend response formats from hub script and CLI
export interface SyncResponse {
success: true
changes: Array<{
type: 'added' | 'edited' | 'deleted'
path: string
codebase_changed?: boolean
}>
total: number
settingsDiffResult?: {
hasChanges: boolean
diff: Record<string, { from: any; to: any }>
local: SettingsObject
backend: SettingsObject
}
}
export interface SettingsResponse {
success: true
hasChanges: boolean
local: SettingsObject
backend: SettingsObject
diff: Record<string, { from: any; to: any }>
repository: string
}
import type { GitSyncObjectType } from '$lib/gen'
export interface SettingsObject {
include_path: string[]
exclude_path: string[]
extra_include_path: string[]
include_type: GitSyncObjectType[]
}