diff --git a/frontend/src/lib/components/EditorBar.svelte b/frontend/src/lib/components/EditorBar.svelte index 4d4471b380..bf206a1ca4 100644 --- a/frontend/src/lib/components/EditorBar.svelte +++ b/frontend/src/lib/components/EditorBar.svelte @@ -506,7 +506,7 @@ {#if !iconOnly} Assistants {/if} - + {#if lang == 'deno'} (Deno) {:else if lang == 'go'} diff --git a/frontend/src/lib/components/TableSimple.svelte b/frontend/src/lib/components/TableSimple.svelte index 49f35f0edb..e510e6e651 100644 --- a/frontend/src/lib/components/TableSimple.svelte +++ b/frontend/src/lib/components/TableSimple.svelte @@ -15,7 +15,8 @@ {#if headers} {#each headers as header, i} - {header} + {header} {/each} {/if} @@ -25,7 +26,11 @@ {#each data as row} {#each keys as key, i} - + {row[key] ?? ''} {/each} diff --git a/frontend/src/lib/components/flows/content/FlowBranchesAllWrapper.svelte b/frontend/src/lib/components/flows/content/FlowBranchesAllWrapper.svelte index 07593e7baa..c093b17faa 100644 --- a/frontend/src/lib/components/flows/content/FlowBranchesAllWrapper.svelte +++ b/frontend/src/lib/components/flows/content/FlowBranchesAllWrapper.svelte @@ -31,12 +31,11 @@ The result of this step is the list of the result of each branch. diff --git a/frontend/src/lib/components/flows/content/FlowBranchesOneWrapper.svelte b/frontend/src/lib/components/flows/content/FlowBranchesOneWrapper.svelte index 1d10fd9dc1..dd15640dd4 100644 --- a/frontend/src/lib/components/flows/content/FlowBranchesOneWrapper.svelte +++ b/frontend/src/lib/components/flows/content/FlowBranchesOneWrapper.svelte @@ -36,11 +36,11 @@ title="Only first branch whose condition is true will be run" tooltip="Branch one" documentationLink="https://www.windmill.dev/docs/flows/flow_branches#branch-one" - class="m-2" + class="m-4" > The result of this step is the result of the branch. -
+

{value.branches.length + 1} branch{value.branches.length + 1 > 1 ? 'es' : ''}

diff --git a/frontend/src/lib/components/flows/content/FlowSettings.svelte b/frontend/src/lib/components/flows/content/FlowSettings.svelte index 089a4bad0b..6596f33a5f 100644 --- a/frontend/src/lib/components/flows/content/FlowSettings.svelte +++ b/frontend/src/lib/components/flows/content/FlowSettings.svelte @@ -282,33 +282,35 @@ -

Cache { - if ($flowStore.value.cache_ttl && $flowStore.value.cache_ttl != undefined) { - $flowStore.value.cache_ttl = undefined - } else { - $flowStore.value.cache_ttl = 300 - } - }} - options={{ - right: 'Cache the results for each possible inputs' - }} - />

+
+ + { + if ($flowStore.value.cache_ttl && $flowStore.value.cache_ttl != undefined) { + $flowStore.value.cache_ttl = undefined + } else { + $flowStore.value.cache_ttl = 300 + } + }} + options={{ + right: 'Cache the results for each possible inputs' + }} + /> + -
-
How long to keep the cache valid
-
- {#if $flowStore.value.cache_ttl} - - {:else} - - {/if} +
+
How long to keep the cache valid
+
+ {#if $flowStore.value.cache_ttl} + + {:else} + + {/if} +
-
+
diff --git a/frontend/src/lib/components/home/ItemsList.svelte b/frontend/src/lib/components/home/ItemsList.svelte index 285897f1ef..b1abdf9c40 100644 --- a/frontend/src/lib/components/home/ItemsList.svelte +++ b/frontend/src/lib/components/home/ItemsList.svelte @@ -412,17 +412,17 @@ {#if treeView} + Collapse all + {/if} + {/if}
{/if} diff --git a/frontend/src/lib/components/home/TreeView.svelte b/frontend/src/lib/components/home/TreeView.svelte index a3ab8f1c71..d4ae193099 100644 --- a/frontend/src/lib/components/home/TreeView.svelte +++ b/frontend/src/lib/components/home/TreeView.svelte @@ -52,7 +52,7 @@
{#if depth === 0}f/{/if}{item.folderName} -
+
({pluralize(item.items.length, ' item')})
@@ -118,7 +118,7 @@
u/{item.username} -
({pluralize(item.items.length, ' item')})
diff --git a/frontend/src/lib/components/scriptEditor/LogPanel.svelte b/frontend/src/lib/components/scriptEditor/LogPanel.svelte index db5aebff14..d479cbe673 100644 --- a/frontend/src/lib/components/scriptEditor/LogPanel.svelte +++ b/frontend/src/lib/components/scriptEditor/LogPanel.svelte @@ -4,9 +4,7 @@ import { displayDate } from '$lib/utils' import Tabs from '../common/tabs/Tabs.svelte' import Tab from '../common/tabs/Tab.svelte' - import TabContent from '../common/tabs/TabContent.svelte' import DisplayResult from '../DisplayResult.svelte' - import TableCustom from '../TableCustom.svelte' import Drawer from '../common/drawer/Drawer.svelte' import DrawerContent from '../common/drawer/DrawerContent.svelte' import HighlightCode from '../HighlightCode.svelte' @@ -17,6 +15,9 @@ import type Editor from '../Editor.svelte' import type DiffEditor from '../DiffEditor.svelte' import ScriptFix from '../copilot/ScriptFix.svelte' + import Cell from '../table/Cell.svelte' + import DataTable from '../table/DataTable.svelte' + import Head from '../table/Head.svelte' export let lang: Preview.language | undefined export let previewIsLoading = false @@ -127,33 +128,35 @@ {/if} - - - - Id - Created at - Success - Result - Code - Logs - - +
+ + + + Id + Created at + Success + Result + Code + Logs + + + {#each pastPreviews as { id, created_at, success }} - - + + {id.substring(30)} - - {displayDate(created_at)} - + + {displayDate(created_at)} + {#if success} {:else} {/if} - - + + - - + + - - + + - + {/each} - - + +
diff --git a/frontend/src/lib/components/table/DataTable.svelte b/frontend/src/lib/components/table/DataTable.svelte index 42e8ee1e6e..9d45dc2614 100644 --- a/frontend/src/lib/components/table/DataTable.svelte +++ b/frontend/src/lib/components/table/DataTable.svelte @@ -19,6 +19,7 @@ export let size: 'xs' | 'sm' | 'md' | 'lg' = 'md' export let perPage: number | undefined = undefined export let shouldHidePagination: boolean = false + export let noBorder: boolean = false const dispatch = createEventDispatcher() @@ -27,7 +28,13 @@ }) -
+