mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-08 16:03:27 +00:00
* feat: Multiplayer deploy collision warning Show warning with diff viewer if 2+ users try to deploy flow/script/app at the same time In other words, if user A and user B started editing same flow/script/app and user A deployed it, user B will get warning if they try to deploy as well. * Add warning for scripts * Add `deployedBy` to Apps * Format * Fix advanced deployment on scripts * Write comments and cleanup * feat(frontend): unify all triggers UX and simplify flow settings (#4259) * feat(frontend): added list of triggers in the flow graph * feat(frontend): added list of triggers in the flow graph * feat(frontend): clean up * feat(frontend): improve UX * feat(frontend): triggers * feat(frontend): triggers * feat(frontend): done * feat(frontend): fix trigger when position when a preprocessor is presetn * Glm/rework flow settings v2 (#4497) * fat(frontend): simplify flow settings menu * improve scroll * changing mute toggle * Add advanced settings badge * Add nord theme colors * Add bage for advanced options * fix minor issue * fix minor issue * Add triggers menu to flow settings * Add quick trigger access * remove triggers in flow settings * fix minor issue * Move triggers settings to flow right panel * polishing * fix unset store * remove save up to for triggers * fix padding * reset default tag color * remove custom select component * revert path change * revert section modif * Revert unused feature --------- Co-authored-by: Guilhem <guilhem@mbp-de-windmill.home> * Connect top bar cron to schedules settings * Turn copilot into node * fix copilot placement * remove useless import * fix center copilot * fix binding * remove copilot on top of preprocessor * render copilot node on condition * quickfix * remove copilot node * fix minor issues * fix route count update * fix schedule sync * harmonize colors * fix alignment and add edges * recenter node summary * fix schedules sync * Add id title * all * all * all * iteration * all * all * done * fix * more fixes --------- Co-authored-by: Guilhem <guilhemlemouel@gmail.com> Co-authored-by: Guilhem <guilhem@mbp-de-windmill.home> Co-authored-by: Ruben Fiszel <ruben@windmill.dev> Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com> * Update ScriptBuilder.svelte * Remove `onMount` for flows * Use version instead of last_updated_at in flows * Use only versions for apps * Fetch latest data in Diffs in Apps * Optimize with (script/flow/app)GetLatestVersion Create several new endpoints, that returns just latest version without rest of the history * Sync Diffs with deployed * Improve Diff's data * Use `getFlowLatestVersion` --------- Co-authored-by: Faton Ramadani <faton.ramadani14@gmail.com> Co-authored-by: Guilhem <guilhemlemouel@gmail.com> Co-authored-by: Guilhem <guilhem@mbp-de-windmill.home> Co-authored-by: Ruben Fiszel <ruben@windmill.dev> Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
54 lines
1.4 KiB
Svelte
54 lines
1.4 KiB
Svelte
<script lang="ts">
|
|
import ConfirmationModal from './ConfirmationModal.svelte'
|
|
import Button from '../button/Button.svelte'
|
|
import type DiffDrawer from '$lib/components/DiffDrawer.svelte'
|
|
import { type Value } from '$lib/utils'
|
|
|
|
export let deployedValue: Value | undefined = undefined
|
|
export let currentValue: Value | undefined = undefined
|
|
export let diffDrawer: DiffDrawer | undefined = undefined
|
|
export let confirmCallback: () => void
|
|
export let deployedBy : string | undefined = undefined
|
|
export let open = false
|
|
</script>
|
|
|
|
<ConfirmationModal
|
|
{open}
|
|
title={"New version deployed by " + deployedBy}
|
|
confirmationText="Override"
|
|
on:canceled={() => {
|
|
open = false
|
|
}}
|
|
on:confirmed={() => confirmCallback()}
|
|
>
|
|
<div class="flex flex-col w-full space-y-4">
|
|
<span>There was deployed new version while you were editing this one.</span>
|
|
{#if diffDrawer}
|
|
<Button
|
|
wrapperClasses="self-start"
|
|
color="light"
|
|
variant="border"
|
|
size="xs"
|
|
on:click={() => {
|
|
if (!deployedValue || !currentValue) {
|
|
return
|
|
}
|
|
open = false
|
|
diffDrawer?.openDrawer()
|
|
diffDrawer?.setDiff({
|
|
mode: 'simple',
|
|
original: deployedValue,
|
|
current: currentValue,
|
|
title: 'Deployed <> Current',
|
|
button: {
|
|
text: 'Override anyway',
|
|
onClick: () => confirmCallback()
|
|
}
|
|
})
|
|
}}
|
|
>Show diff
|
|
</Button>
|
|
{/if}
|
|
</div>
|
|
</ConfirmationModal>
|