Skip to content

Commit 8aff3a3

Browse files
committed
fix: update logging and templates
1 parent 7611c76 commit 8aff3a3

File tree

3 files changed

+31
-10
lines changed

3 files changed

+31
-10
lines changed

src/routes/(console)/project-[project]/sites/(components)/logs.svelte

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@
3333
if (deployment.status === 'failed') {
3434
return 'Your deployment has failed.';
3535
} else if (deployment.status === 'building') {
36-
return 'Build is starting.';
36+
return 'Preparing for build ...';
37+
} else if (deployment.status === 'waiting') {
38+
return 'Preparing for build ...';
3739
} else if (deployment.status === 'processing') {
38-
return 'Your deployment is processing.';
40+
return 'Preparing for build ...';
3941
} else {
4042
return emptyCopy;
4143
}

src/routes/(console)/project-[project]/sites/create-site/templates/+page.svelte

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,17 +100,31 @@
100100
<Accordion title="Framework" open>
101101
<Layout.Stack>
102102
{#each [...data.frameworks] as framework}
103+
{#if !framework.toLowerCase().includes('other')}
104+
<Layout.Stack direction="row" gap="s">
105+
<Selector.Checkbox
106+
id={framework}
107+
size="s"
108+
label={framework?.split('-')?.join(' ')}
109+
checked={$page.url.searchParams
110+
.getAll('framework')
111+
.includes(framework)}
112+
on:change={(e) => applyFilter('framework', framework, e)} />
113+
</Layout.Stack>
114+
{/if}
115+
{/each}
116+
{#if data.frameworks.includes('Other')}
103117
<Layout.Stack direction="row" gap="s">
104118
<Selector.Checkbox
105-
id={framework}
119+
id="other"
106120
size="s"
107-
label={framework?.split('-')?.join(' ')}
121+
label="Other"
108122
checked={$page.url.searchParams
109123
.getAll('framework')
110-
.includes(framework)}
111-
on:change={(e) => applyFilter('framework', framework, e)} />
124+
.includes('Other')}
125+
on:change={(e) => applyFilter('framework', 'Other', e)} />
112126
</Layout.Stack>
113-
{/each}
127+
{/if}
114128
</Layout.Stack>
115129
</Accordion>
116130
</Layout.Stack>
@@ -154,7 +168,10 @@
154168
hidePagination
155169
target="templates"
156170
search={$page.url.searchParams.get('search')}>
157-
<Button secondary on:click={clearSearch}>Clear search</Button>
171+
<Button
172+
secondary
173+
href={`${base}/project-${$page.params.project}/sites/create-site/templates`}
174+
>Clear search</Button>
158175
</EmptySearch>
159176
{/if}
160177

src/routes/(console)/project-[project]/sites/site-[site]/settings/updateLogging.svelte

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
site.name,
2020
site.framework as Framework,
2121
site.enabled || undefined,
22-
site.logging || undefined,
22+
logging,
2323
site.timeout || undefined,
2424
site.installCommand || undefined,
2525
site.buildCommand || undefined,
@@ -48,11 +48,13 @@
4848
trackError(error, Submit.SiteUpdateLogging);
4949
}
5050
}
51+
52+
$: console.log(logging);
5153
</script>
5254

5355
<Form onSubmit={update}>
5456
<CardGrid>
55-
<svelte:fragment slot="title">Execution logs</svelte:fragment>
57+
<svelte:fragment slot="title">Logging</svelte:fragment>
5658
<svelte:fragment slot="aside">
5759
<InputSwitch label="Logs" id="logging" bind:value={logging} />
5860
<Typography.Text>

0 commit comments

Comments
 (0)