diff --git a/README.md b/README.md index dfd0de6a5f..f6503ff900 100644 --- a/README.md +++ b/README.md @@ -203,7 +203,7 @@ curl https://raw.githubusercontent.com/windmill-labs/windmill/main/docker-compos curl https://raw.githubusercontent.com/windmill-labs/windmill/main/Caddyfile -o Caddyfile curl https://raw.githubusercontent.com/windmill-labs/windmill/main/.env -o .env -docker compose up -d --pull always +docker compose up -d ``` Go to http://localhost et voilà :) @@ -373,12 +373,11 @@ it being synced automatically everyday. This will use the backend of but your own frontend with hot-code reloading. -1. Install [caddy](https://caddyserver.com) -2. Go to `frontend/`: +1. Go to `frontend/`: 1. `npm install` 2. `npm run generate-backend-client` 3. `npm run dev` -3. Et voilà, windmill should be available at `http://localhost:3000/` +2. Et voilà, windmill should be available at `http://localhost:3000/` ### Backend + Frontend diff --git a/docker-compose.yml b/docker-compose.yml index f1e66c2778..742f8ab928 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,6 +20,7 @@ services: windmill_server: # Use ghcr.io/windmill-labs/windmill-ee:main for the ee image: ghcr.io/windmill-labs/windmill:main + pull_policy: always deploy: replicas: 1 restart: unless-stopped @@ -44,6 +45,7 @@ services: windmill_worker: # Use ghcr.io/windmill-labs/windmill-ee:main for the ee image: ghcr.io/windmill-labs/windmill:main + pull_policy: always deploy: replicas: 3 restart: unless-stopped diff --git a/frontend/README_DEV.md b/frontend/README_DEV.md index 43d16ac1b8..198657d3af 100644 --- a/frontend/README_DEV.md +++ b/frontend/README_DEV.md @@ -48,7 +48,7 @@ REMOTE=http://localhost REMOTE_LSP=http://localhost npm run dev **On OSX:** ```bash - brew install llvm caddy gsed + brew install llvm gsed # make LLVM tools available on PATH echo 'export PATH="/opt/homebrew/opt/llvm/bin:$PATH"' >> ~/.zshrc diff --git a/frontend/src/lib/components/FlowStatusViewer.svelte b/frontend/src/lib/components/FlowStatusViewer.svelte index f9a72418d5..0a7f08b22e 100644 --- a/frontend/src/lib/components/FlowStatusViewer.svelte +++ b/frontend/src/lib/components/FlowStatusViewer.svelte @@ -15,9 +15,8 @@ import ModuleStatus from './ModuleStatus.svelte' import { displayDate, emptyString, isOwner, pluralize, truncateRev } from '$lib/utils' import JobArgs from './JobArgs.svelte' - import Tooltip from './Tooltip.svelte' import { Loader2 } from 'lucide-svelte' - import SchemaForm from './SchemaForm.svelte' + import FlowStatusWaitingForEvents from './FlowStatusWaitingForEvents.svelte' const dispatch = createEventDispatcher() @@ -165,8 +164,6 @@ $: selected = isListJob ? 'sequence' : 'graph' - let payload: any = {} - function isSuccess(arg: any): boolean | undefined { if (arg == undefined) { return undefined @@ -227,48 +224,7 @@ /> {:else if job.flow_status?.modules?.[job?.flow_status?.step]?.type === FlowStatusModule.type.WAITING_FOR_EVENTS} -
-

Waiting to be resumed

-
- {#if is_owner} -
-
- -
- {#if job.raw_flow?.modules?.[job?.flow_status?.step - 1]?.suspend?.resume_form?.schema} -
- -
- {/if} - The payload is optional, it is passed to the following step through the - `resume` variable -
- {:else} - You cannot resume the flow yourself without receiving the resume secret since you - are not an owner of {job.script_path} - {/if} -
-
+ {:else if job.logs}
{job.logs}
diff --git a/frontend/src/lib/components/FlowStatusWaitingForEvents.svelte b/frontend/src/lib/components/FlowStatusWaitingForEvents.svelte new file mode 100644 index 0000000000..9ae44d6b79 --- /dev/null +++ b/frontend/src/lib/components/FlowStatusWaitingForEvents.svelte @@ -0,0 +1,70 @@ + + +
+

Waiting to be resumed

+
+ {#if is_owner} +
+
+ +
+ {#if job.raw_flow?.modules?.[approvalStep]?.suspend?.resume_form?.schema} +
+ +
+ {/if} + The payload is optional, it is passed to the following step through the `resume` variable +
+ {:else} + You cannot resume the flow yourself without receiving the resume secret since you are not an + owner of {job.script_path} + {/if} +
+
diff --git a/frontend/src/lib/components/Slider.svelte b/frontend/src/lib/components/Slider.svelte index d605d7658a..e201bc3fb5 100644 --- a/frontend/src/lib/components/Slider.svelte +++ b/frontend/src/lib/components/Slider.svelte @@ -7,9 +7,10 @@ export let text: string export let tooltip: string | undefined = undefined export let view = false + export let size: xs | 'sm' | 'md' | 'lg' = 'md' -