From d709053202565ecad288a086dcfd4eec356d345f Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sat, 19 Oct 2024 12:11:29 +0200 Subject: [PATCH] various nits --- .../lib/components/InstanceGroupEditor.svelte | 8 +- frontend/src/lib/components/PageHeader.svelte | 4 +- .../settings/WorkspaceUserSettings.svelte | 10 +- .../lib/components/sidebar/MenuLink.svelte | 2 +- .../(logged)/workspace_settings/+page.svelte | 118 ++++++------------ 5 files changed, 58 insertions(+), 84 deletions(-) diff --git a/frontend/src/lib/components/InstanceGroupEditor.svelte b/frontend/src/lib/components/InstanceGroupEditor.svelte index 9b2ebf30fd..a5f90dd969 100644 --- a/frontend/src/lib/components/InstanceGroupEditor.svelte +++ b/frontend/src/lib/components/InstanceGroupEditor.svelte @@ -6,6 +6,7 @@ import Skeleton from './common/skeleton/Skeleton.svelte' import TableCustom from './TableCustom.svelte' import { sendUserToast } from '$lib/toast' + import { Loader2 } from 'lucide-svelte' export let name: string @@ -57,7 +58,12 @@ > -

Members ({members?.length ?? 0})

+

Members ({#if members?.length != undefined}{members?.length ?? 0}{:else}{/if})

-
+
diff --git a/frontend/src/routes/(root)/(logged)/workspace_settings/+page.svelte b/frontend/src/routes/(root)/(logged)/workspace_settings/+page.svelte index 24beda13ed..dcef769e29 100644 --- a/frontend/src/routes/(root)/(logged)/workspace_settings/+page.svelte +++ b/frontend/src/routes/(root)/(logged)/workspace_settings/+page.svelte @@ -1,6 +1,5 @@ @@ -652,7 +599,9 @@ { - setQueryWithoutLoad($page.url, [{ key: 'tab', value: tab }], 0) + // setQueryWithoutLoad($page.url, [{ key: 'tab', value: tab }], 0) + $page.url.searchParams.set('tab', tab) + goto(`?${$page.url.searchParams.toString()}`) }} > @@ -933,6 +882,7 @@ Workspace error handler is a Windmill EE feature. It enables using your current Slack connection or a custom script to send notifications anytime any job would fail. +
{/if}
@@ -1261,26 +1211,33 @@
{/if} {#if gitSyncSettings != undefined} - {#if $enterpriseLicense} -
- -
- {/if} + on:click={() => { + editWindmillGitSyncSettings() + console.log('Saving git sync settings', gitSyncSettings) + }}>Save git sync settings {!$enterpriseLicense ? '(ee only)' : ''} + + +
{#if Array.isArray(gitSyncSettings?.include_path)}

Filter on path + >Path filters Only scripts, flows and apps with their path matching one of those filters will be synced to the Git repositories below. The filters allow '*'' and '**' characters, with '*'' matching any character allowed in paths until the next slash (/) and @@ -1320,11 +1277,16 @@ Add filter

+
+ + Only new changes matching the filters will trigger a git sync. You still need to + initalize the repo to the desired state first. +

Filter on type + >Type filters On top of the filter path above, you can include only certain type of object to be synced with the Git repository.
By default everything is synced. @@ -1645,13 +1607,15 @@
- . For the git repo to be representative of the entire workspace, it is recommended to - set it up using the Windmill CLI before turning this option on. + For the git repo to be representative of the entire workspace, it is recommended to set + it up using the Windmill CLI before turning this option on.

Not familiar with Windmill CLI? - Check out the docs + Check out the docs

@@ -1663,8 +1627,8 @@
wmill workspace add  {$workspaceStore} {$workspaceStore} {`${$page.url.protocol}//${$page.url.hostname}/`}
-echo 'includes: ["f/**"]' > wmill.yaml
-wmill sync pull --raw --skip-variables --skip-secrets --skip-resources
+wmill init
+wmill sync pull
 git add -A
 git commit -m 'Initial commit'
 git push