Skip to content

Commit 7415d5d

Browse files
committed
fix: sync with main
1 parent a670d4e commit 7415d5d

File tree

22 files changed

+942
-1062
lines changed

22 files changed

+942
-1062
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ RUN turbo prune --scope=${SCOPE} --docker
3434

3535
###################################################################
3636
# Stage 2: Install dependencies #
37-
# Add lockfile and package.json's of isolated subworkspace #
37+
# Add lockfile and package.json's of isolated subworkspace #
3838
###################################################################
3939
FROM base AS builder
4040

apps/console/README.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,24 @@ Everything you need to build a Svelte project, powered by [`create-svelte`](http
66

77
### First Step
88

9-
1. download latest `traefik.me` certs for _svelte_ dev server.
9+
We will be using [mkcert](https://github.com/FiloSottile/mkcert) to generate certs for local domain: `console.traefik.me`
1010

11-
> NOTE: they will expire every 60 days
11+
```shell
12+
cd apps/console/config/certs
13+
mkcert -key-file traefik.me.key -cert-file traefik.me.crt console.traefik.me
14+
```
15+
16+
> [!WARNING]
17+
> This method is deprecated. use **mkcert**
18+
19+
d~~ownload latest `traefik.me` certs for _svelte_ dev server.~~
1220

13-
```shell
14-
curl traefik.me/fullchain.pem -o apps/console/config/certs/traefik.me.crt
15-
curl traefik.me/privkey.pem -o apps/console/config/certs/traefik.me.key
16-
```
21+
> ~~NOTE: they will expire every 60 days~~
22+
23+
```shell
24+
curl traefik.me/fullchain.pem -o apps/console/config/certs/traefik.me.crt
25+
curl traefik.me/privkey.pem -o apps/console/config/certs/traefik.me.key
26+
```
1727

1828
### Backend
1929

apps/console/package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@
3434
"test:unit:ui": "dotenv-run -f .env -f .secrets -v -- vitest --ui"
3535
},
3636
"devDependencies": {
37-
"@ai-sdk/azure": "1.3.0",
38-
"@ai-sdk/openai": "1.3.0",
37+
"@ai-sdk/azure": "1.3.6",
38+
"@ai-sdk/openai": "1.3.6",
3939
"@ai-sdk/svelte": "1.1.24",
40-
"@aibrow/dom-types": "1.3.8",
40+
"@aibrow/dom-types": "1.3.9",
4141
"@apollo/utils.sortast": "3.0.0",
4242
"@floating-ui/dom": "1.6.13",
4343
"@fontsource-variable/inter": "5.2.5",
44-
"@inlang/cli": "3.0.7",
44+
"@inlang/cli": "3.0.10",
4545
"@inlang/paraglide-sveltekit": "0.14.0",
4646
"@nhost/nhost-js": "3.2.6",
4747
"@skeletonlabs/skeleton": "2.11.0",
@@ -51,11 +51,11 @@
5151
"@spectacular/typescript-config": "workspace:*",
5252
"@spectacular/utils": "workspace:*",
5353
"@svelte-plugins/datepicker": "1.0.11",
54-
"@sveltejs/adapter-auto": "4.0.0",
54+
"@sveltejs/adapter-auto": "6.0.0",
5555
"@sveltejs/adapter-node": "5.2.12",
5656
"@sveltejs/adapter-vercel": "5.6.3",
5757
"@sveltejs/enhanced-img": "0.3.10",
58-
"@sveltejs/kit": "2.20.2",
58+
"@sveltejs/kit": "2.20.3",
5959
"@sveltejs/vite-plugin-svelte": "3.1.2",
6060
"@tailwindcss/container-queries": "0.1.1",
6161
"@tailwindcss/forms": "0.5.10",
@@ -65,17 +65,17 @@
6565
"@types/d3-scale": "4.0.9",
6666
"@types/dom-chromium-ai": "0.0.6",
6767
"@types/js-cookie": "3.0.6",
68-
"@types/node": "22.13.11",
68+
"@types/node": "22.14.0",
6969
"@unovis/svelte": "1.5.1",
7070
"@unovis/ts": "1.5.1",
7171
"@vercel/analytics": "1.5.0",
7272
"@vercel/flags": "3.1.1",
7373
"@vercel/speed-insights": "1.2.0",
74-
"@vercel/toolbar": "0.1.35",
74+
"@vercel/toolbar": "0.1.36",
7575
"@vincjo/datatables": "2.5.0",
76-
"@vitest/coverage-v8": "3.0.9",
77-
"@xyflow/svelte": "0.1.31",
78-
"ai": "4.2.0",
76+
"@vitest/coverage-v8": "3.1.1",
77+
"@xyflow/svelte": "0.1.34",
78+
"ai": "4.2.11",
7979
"autoprefixer": "10.4.21",
8080
"chrome-ai": "1.11.1",
8181
"clsx": "2.1.1",
@@ -86,14 +86,14 @@
8686
"graphql": "16.10.0",
8787
"graphql-ws": "6.0.4",
8888
"houdini": "1.5.4",
89-
"houdini-svelte": "2.1.8",
89+
"houdini-svelte": "2.1.12",
9090
"js-cookie": "3.0.5",
9191
"jsdom": "26.0.0",
92-
"lucide-svelte": "0.483.0",
92+
"lucide-svelte": "0.487.0",
9393
"neverthrow": "8.2.0",
9494
"node-forge": "1.3.1",
9595
"ollama-ai-provider": "1.2.0",
96-
"openai": "4.89.0",
96+
"openai": "4.91.1",
9797
"openai-zod-to-json-schema": "1.0.3",
9898
"paneforge": "0.0.6",
9999
"postcss": "8.5.3",
@@ -117,12 +117,12 @@
117117
"tailwindcss-animate": "1.0.7",
118118
"tslib": "2.8.1",
119119
"typescript": "5.8.2",
120-
"vite": "5.4.14",
121-
"vitest": "3.0.9",
120+
"vite": "5.4.17",
121+
"vitest": "3.1.1",
122122
"zod": "3.24.2"
123123
},
124124
"optionalDependencies": {
125125
"@playwright/test": "1.51.1",
126-
"@vitest/ui": "3.0.9"
126+
"@vitest/ui": "3.1.1"
127127
}
128128
}

apps/console/src/routes/(auth)/signup/+page.svelte

Lines changed: 36 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ import { page } from '$app/stores';
44
import * as m from '$i18n/messages';
55
import { handleMessage } from '$lib/components/layout/toast-manager';
66
import { i18n } from '$lib/i18n';
7-
import { updateUserDetailsKeys as keys, signUpSchema } from '$lib/schema/user';
7+
import { signUpSchema, updateUserDetailsKeys as keys } from '$lib/schema/user';
88
import { getLoadingState } from '$lib/stores/loading';
99
import { getNhostClient } from '$lib/stores/nhost';
1010
import { turnstilePassed, turnstileResponse } from '$lib/stores/stores';
11-
import { getAuthenticationResult, signUpEmailPasswordPromise } from '@nhost/nhost-js';
1211
import { getToastStore } from '@skeletonlabs/skeleton';
1312
import { DebugShell } from '$lib/ui/components';
1413
import { Alerts } from '$lib/ui/components/form';
@@ -49,36 +48,22 @@ const form = superForm(defaults(zod(signUpSchema)), {
4948
if (!form.valid) return;
5049
5150
const { firstName, lastName, email, password, locale, redirectTo } = form.data;
52-
53-
// FIXME: remove this block after nhost.auth.signUp support headers
54-
const { session, error } = getAuthenticationResult(
55-
await signUpEmailPasswordPromise(
56-
// biome-ignore lint/style/noNonNullAssertion: <explanation>
57-
nhost.auth.client.interpreter!,
51+
const { session, error } = await nhost.auth.signUp(
52+
{
5853
email,
59-
password as string,
60-
{
54+
password,
55+
options: {
6156
displayName: `${firstName} ${lastName}`,
6257
locale,
6358
},
64-
{
65-
headers: {
66-
'x-cf-turnstile-response': $turnstileResponse,
67-
},
59+
},
60+
{
61+
headers: {
62+
'x-cf-turnstile-response': $turnstileResponse,
6863
},
69-
),
64+
},
7065
);
7166
72-
// log.debug('TODO: use turnstileResponse:', $turnstileResponse);
73-
// const { session, error } = await nhost.auth.signUp({
74-
// email,
75-
// password,
76-
// options: {
77-
// displayName: `${firstName} ${lastName}`,
78-
// locale,
79-
// },
80-
// });
81-
8267
if (error) {
8368
log.error(error);
8469
// FIXME: workaround for `missing x-cf-turnstile-response`
@@ -140,18 +125,18 @@ $formData.redirectTo = $page.url.searchParams.get('redirectTo') ?? $formData.red
140125

141126
<svelte:head>
142127
<title>Datablocks | Signup</title>
143-
<meta name="description" content="Create Account" />
128+
<meta name="description" content="Create Account"/>
144129
</svelte:head>
145130

146131
<!-- Form Level Errors / Messages -->
147-
<Alerts errors={$errors._errors} message={$message} />
132+
<Alerts errors={$errors._errors} message={$message}/>
148133
<!-- Signup Form -->
149134
<form method="POST" use:enhance>
150135
<div class="mt-6">
151136
<Form.Field {form} name="firstName">
152137
<Form.Control let:attrs>
153138
<Form.Label class="label sr-only"
154-
>{m.auth_forms_first_name_label()}</Form.Label
139+
>{m.auth_forms_first_name_label()}</Form.Label
155140
>
156141
<input
157142
type="text"
@@ -162,14 +147,14 @@ $formData.redirectTo = $page.url.searchParams.get('redirectTo') ?? $formData.red
162147
bind:value={$formData.firstName}
163148
/>
164149
</Form.Control>
165-
<Form.FieldErrors class="data-[fs-error]:text-error-500" />
150+
<Form.FieldErrors class="data-[fs-error]:text-error-500"/>
166151
</Form.Field>
167152
</div>
168153
<div class="mt-6">
169154
<Form.Field {form} name="lastName">
170155
<Form.Control let:attrs>
171156
<Form.Label class="label sr-only"
172-
>{m.auth_forms_last_name_label()}</Form.Label
157+
>{m.auth_forms_last_name_label()}</Form.Label
173158
>
174159
<input
175160
type="text"
@@ -180,14 +165,14 @@ $formData.redirectTo = $page.url.searchParams.get('redirectTo') ?? $formData.red
180165
bind:value={$formData.lastName}
181166
/>
182167
</Form.Control>
183-
<Form.FieldErrors class="data-[fs-error]:text-error-500" />
168+
<Form.FieldErrors class="data-[fs-error]:text-error-500"/>
184169
</Form.Field>
185170
</div>
186171
<div class="mt-6">
187172
<Form.Field {form} name="email">
188173
<Form.Control let:attrs>
189174
<Form.Label class="label sr-only"
190-
>{m.auth_forms_email_label()}</Form.Label
175+
>{m.auth_forms_email_label()}</Form.Label
191176
>
192177
<input
193178
type="email"
@@ -198,14 +183,14 @@ $formData.redirectTo = $page.url.searchParams.get('redirectTo') ?? $formData.red
198183
bind:value={$formData.email}
199184
/>
200185
</Form.Control>
201-
<Form.FieldErrors class="data-[fs-error]:text-error-500" />
186+
<Form.FieldErrors class="data-[fs-error]:text-error-500"/>
202187
</Form.Field>
203188
</div>
204189
<div class="mt-6">
205190
<Form.Field {form} name="password">
206191
<Form.Control let:attrs>
207192
<Form.Label class="label sr-only"
208-
>{m.auth_forms_password_label()}</Form.Label
193+
>{m.auth_forms_password_label()}</Form.Label
209194
>
210195
<input
211196
type="password"
@@ -215,14 +200,14 @@ $formData.redirectTo = $page.url.searchParams.get('redirectTo') ?? $formData.red
215200
bind:value={$formData.password}
216201
/>
217202
</Form.Control>
218-
<Form.FieldErrors class="data-[fs-error]:text-error-500" />
203+
<Form.FieldErrors class="data-[fs-error]:text-error-500"/>
219204
</Form.Field>
220205
</div>
221206
<div class="mt-6">
222207
<Form.Field {form} name="confirmPassword">
223208
<Form.Control let:attrs>
224209
<Form.Label class="label sr-only"
225-
>{m.auth_forms_confirm_password_label()}</Form.Label
210+
>{m.auth_forms_confirm_password_label()}</Form.Label
226211
>
227212
<input
228213
type="password"
@@ -232,13 +217,13 @@ $formData.redirectTo = $page.url.searchParams.get('redirectTo') ?? $formData.red
232217
bind:value={$formData.confirmPassword}
233218
/>
234219
</Form.Control>
235-
<Form.FieldErrors class="data-[fs-error]:text-error-500" />
220+
<Form.FieldErrors class="data-[fs-error]:text-error-500"/>
236221
</Form.Field>
237222
</div>
238223
<div class="mt-6">
239224
<Form.Field {form} name={keys.locale}>
240225
<Form.Control let:attrs>
241-
<Form.Label class="label sr-only">Locale</Form.Label>
226+
<Form.Label class="label sr-only">Locale</Form.Label>
242227
<select
243228
class="select data-[fs-error]:input-error"
244229
{...attrs}
@@ -250,7 +235,7 @@ $formData.redirectTo = $page.url.searchParams.get('redirectTo') ?? $formData.red
250235
</select>
251236
</Form.Control>
252237
<!-- <Form.Description class="sr-only md:not-sr-only text-sm text-gray-500">User preferred Locale</Form.Description> -->
253-
<Form.FieldErrors class="data-[fs-error]:text-error-500" />
238+
<Form.FieldErrors class="data-[fs-error]:text-error-500"/>
254239
</Form.Field>
255240
</div>
256241
<div class="mt-6">
@@ -268,11 +253,11 @@ $formData.redirectTo = $page.url.searchParams.get('redirectTo') ?? $formData.red
268253
<a href="/terms" class="text-primaryHover underline">terms</a>
269254
and
270255
<a href="/privacy" class="text-primaryHover underline"
271-
>privacy policy</a
256+
>privacy policy</a
272257
>
273258
</span>
274259
</Form.Control>
275-
<Form.FieldErrors class="data-[fs-error]:text-error-500" />
260+
<Form.FieldErrors class="data-[fs-error]:text-error-500"/>
276261
</Form.Field>
277262
</div>
278263
<div class="mt-6">
@@ -282,9 +267,9 @@ $formData.redirectTo = $page.url.searchParams.get('redirectTo') ?? $formData.red
282267
disabled={!$tainted || !valid || $submitting}
283268
>
284269
{#if $timeout}
285-
<MoreHorizontal class="animate-ping" />
270+
<MoreHorizontal class="animate-ping"/>
286271
{:else if $delayed}
287-
<Loader class="animate-spin" />
272+
<Loader class="animate-spin"/>
288273
{:else}
289274
{m.auth_labels_signup()}
290275
{/if}
@@ -303,14 +288,14 @@ $formData.redirectTo = $page.url.searchParams.get('redirectTo') ?? $formData.red
303288
timeout: $timeout
304289
}}
305290
/>
306-
<br />
307-
<SuperDebug label="Form" data={$formData} />
308-
<br />
309-
<SuperDebug label="Tainted" status={false} data={$tainted} />
310-
<br />
311-
<SuperDebug label="Errors" status={false} data={$errors} />
312-
<br />
313-
<SuperDebug label="Constraints" status={false} data={$constraints} />
291+
<br/>
292+
<SuperDebug label="Form" data={$formData}/>
293+
<br/>
294+
<SuperDebug label="Tainted" status={false} data={$tainted}/>
295+
<br/>
296+
<SuperDebug label="Errors" status={false} data={$errors}/>
297+
<br/>
298+
<SuperDebug label="Constraints" status={false} data={$constraints}/>
314299
<!-- <br />
315300
<SuperDebug label="$page data" status={false} data={$page} /> -->
316301
</DebugShell>

apps/console/turbo.json renamed to apps/console/turbo.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"outputLogs": "new-only",
2121
"cache": false, // No outputs will be cached
2222
"persistent": true,
23-
"inputs": ["$TURBO_DEFAULT$", ".env", ".secrets"]
23+
"inputs": ["$TURBO_DEFAULT$", ".env", ".secrets", "$TURBO_ROOT$/.env", "$TURBO_ROOT$/.secrets"]
2424
},
2525
"dev:debug": {
2626
"dependsOn": ["generate"],

apps/docs/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@
1818
"dependencies": {
1919
"@astrojs/check": "0.9.4",
2020
"@astrojs/node": "9.1.3",
21-
"@astrojs/starlight": "0.32.4",
21+
"@astrojs/starlight": "0.32.5",
2222
"@astrojs/starlight-tailwind": "3.0.1",
2323
"@astrojs/vercel": "8.1.3",
2424
"@fontsource-variable/inter": "5.2.5",
2525
"@fontsource/source-code-pro": "5.2.5",
26-
"@tailwindcss/vite": "4.0.15",
27-
"astro": "5.5.4",
26+
"@tailwindcss/vite": "4.1.2",
27+
"astro": "5.5.6",
2828
"rehype-mermaid": "3.0.0",
2929
"sharp": "0.33.5",
30-
"tailwindcss": "4.0.15",
30+
"tailwindcss": "4.1.2",
3131
"typescript": "5.8.2"
3232
},
3333
"devDependencies": {
File renamed without changes.

0 commit comments

Comments
 (0)