Skip to content

Commit 945c5d3

Browse files
committed
Merge branch 'main' into 'csv-imports-errors'.
2 parents dfa89a6 + ed4ec92 commit 945c5d3

File tree

93 files changed

+1109
-949
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+1109
-949
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PUBLIC_CONSOLE_MODE=self-hosted
2+
PUBLIC_CONSOLE_FEATURE_FLAGS=
23
PUBLIC_APPWRITE_MULTI_REGION=false
34
PUBLIC_APPWRITE_ENDPOINT=http://localhost/v1
4-
55
PUBLIC_STRIPE_KEY=
66
PUBLIC_GROWTH_ENDPOINT=

.github/workflows/publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
labels: ${{ steps.meta.outputs.labels }}
4040
build-args: |
4141
"PUBLIC_CONSOLE_MODE=cloud"
42+
"PUBLIC_CONSOLE_FEATURE_FLAGS="
4243
"PUBLIC_APPWRITE_MULTI_REGION=true"
4344
"PUBLIC_GROWTH_ENDPOINT=${{ secrets.PUBLIC_GROWTH_ENDPOINT }}"
4445
"PUBLIC_STRIPE_KEY=${{ secrets.PUBLIC_STRIPE_KEY }}"
@@ -78,6 +79,7 @@ jobs:
7879
labels: ${{ steps.meta.outputs.labels }}
7980
build-args: |
8081
"PUBLIC_CONSOLE_MODE=cloud"
82+
"PUBLIC_CONSOLE_FEATURE_FLAGS=sites,csv-import"
8183
"PUBLIC_APPWRITE_MULTI_REGION=true"
8284
"PUBLIC_GROWTH_ENDPOINT=${{ secrets.PUBLIC_GROWTH_ENDPOINT }}"
8385
"PUBLIC_STRIPE_KEY=${{ secrets.PUBLIC_STRIPE_KEY_STAGE }}"
@@ -116,6 +118,7 @@ jobs:
116118
build-args: |
117119
"PUBLIC_CONSOLE_MODE=self-hosted"
118120
"PUBLIC_APPWRITE_MULTI_REGION=false"
121+
"PUBLIC_CONSOLE_FEATURE_FLAGS=sites,csv-import"
119122
"PUBLIC_GROWTH_ENDPOINT=${{ secrets.PUBLIC_GROWTH_ENDPOINT }}"
120123
121124
publish-cloud-no-regions:
@@ -153,5 +156,6 @@ jobs:
153156
build-args: |
154157
"PUBLIC_CONSOLE_MODE=cloud"
155158
"PUBLIC_APPWRITE_MULTI_REGION=false"
159+
"PUBLIC_CONSOLE_FEATURE_FLAGS=sites,csv-import"
156160
"PUBLIC_STRIPE_KEY=${{ secrets.PUBLIC_STRIPE_KEY_STAGE }}"
157161
"PUBLIC_GROWTH_ENDPOINT=${{ secrets.PUBLIC_GROWTH_ENDPOINT }}"

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ ADD ./src /app/src
2121
ADD ./static /app/static
2222

2323
ARG PUBLIC_CONSOLE_MODE
24+
ARG PUBLIC_CONSOLE_FEATURE_FLAGS
2425
ARG PUBLIC_APPWRITE_MULTI_REGION
2526
ARG PUBLIC_APPWRITE_ENDPOINT
2627
ARG PUBLIC_GROWTH_ENDPOINT
@@ -31,6 +32,7 @@ ARG SENTRY_RELEASE
3132
ENV PUBLIC_APPWRITE_ENDPOINT=$PUBLIC_APPWRITE_ENDPOINT
3233
ENV PUBLIC_GROWTH_ENDPOINT=$PUBLIC_GROWTH_ENDPOINT
3334
ENV PUBLIC_CONSOLE_MODE=$PUBLIC_CONSOLE_MODE
35+
ENV PUBLIC_CONSOLE_FEATURE_FLAGS=$PUBLIC_CONSOLE_FEATURE_FLAGS
3436
ENV PUBLIC_APPWRITE_MULTI_REGION=$PUBLIC_APPWRITE_MULTI_REGION
3537
ENV PUBLIC_STRIPE_KEY=$PUBLIC_STRIPE_KEY
3638
ENV SENTRY_AUTH_TOKEN=$SENTRY_AUTH_TOKEN

build.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ async function main() {
2424
log(bold().magenta('APPWRITE CONSOLE'));
2525
log();
2626
logEnv('CONSOLE MODE', env?.PUBLIC_CONSOLE_MODE);
27+
logEnv('CONSOLE FEATURE FLAGS', env?.PUBLIC_CONSOLE_FEATURE_FLAGS);
2728
logEnv('MULTI REGION', env?.PUBLIC_APPWRITE_MULTI_REGION);
2829
logEnv('APPWRITE ENDPOINT', env?.PUBLIC_APPWRITE_ENDPOINT, 'relative');
2930
logEnv('GROWTH ENDPOINT', env?.PUBLIC_GROWTH_ENDPOINT);

compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ services:
55
context: .
66
args:
77
PUBLIC_CONSOLE_MODE: ${PUBLIC_CONSOLE_MODE}
8+
PUBLIC_CONSOLE_FEATURE_FLAGS: ${PUBLIC_CONSOLE_FEATURE_FLAGS}
89
PUBLIC_APPWRITE_MULTI_REGION: ${PUBLIC_APPWRITE_MULTI_REGION}
910
PUBLIC_APPWRITE_ENDPOINT: ${PUBLIC_APPWRITE_ENDPOINT}
1011
PUBLIC_GROWTH_ENDPOINT: ${PUBLIC_GROWTH_ENDPOINT}
@@ -21,6 +22,7 @@ services:
2122
- build/
2223
environment:
2324
- PUBLIC_CONSOLE_MODE
25+
- PUBLIC_CONSOLE_FEATURE_FLAGS
2426
- PUBLIC_APPWRITE_MULTI_REGION
2527
- PUBLIC_APPWRITE_ENDPOINT
2628
- PUBLIC_GROWTH_ENDPOINT

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
},
2323
"dependencies": {
2424
"@ai-sdk/svelte": "^1.1.24",
25-
"@appwrite.io/console": "https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@e190a19",
25+
"@appwrite.io/console": "https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@a5e5564",
2626
"@appwrite.io/pink-icons": "0.25.0",
2727
"@appwrite.io/pink-icons-svelte": "^2.0.0-RC.1",
2828
"@appwrite.io/pink-legacy": "^1.0.3",
29-
"@appwrite.io/pink-svelte": "https://try-module.cloud/-/@appwrite/@appwrite.io/pink-svelte@d74b893",
29+
"@appwrite.io/pink-svelte": "https://pkg.vc/-/@appwrite/@appwrite.io/pink-svelte@40bae6b",
3030
"@popperjs/core": "^2.11.8",
3131
"@sentry/sveltekit": "^8.38.0",
3232
"@stripe/stripe-js": "^3.5.0",

pnpm-lock.yaml

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/global.d.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
11
/// <reference types="@sveltejs/kit" />
22
interface Window {}
3+
4+
namespace App {
5+
interface Error {
6+
type?: string;
7+
}
8+
9+
interface HandleClientError {
10+
message: string;
11+
status?: number;
12+
type?: string;
13+
}
14+
}

src/hooks.client.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,17 @@ Sentry.init({
1313

1414
export const handleError: HandleClientError = ({ error, message, status }) => {
1515
console.error(error);
16+
17+
let type;
1618
if (error instanceof AppwriteException) {
1719
status = error.code === 0 ? undefined : error.code;
1820
message = error.message;
21+
type = error.type;
1922
}
2023

2124
return {
2225
message,
23-
status
26+
status,
27+
type
2428
};
2529
};

src/lib/commandCenter/panels/ai.svelte

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,10 @@
167167
<div style="padding: 1rem; padding-block-end: 0;">
168168
<Alert.Inline
169169
dismissible
170+
title="We collect user responses to refine our experimental AI feature."
170171
on:dismiss={() => {
171172
$preferences.hideAiDisclaimer = true;
172-
}}>
173-
<span slot="title">
174-
We collect user responses to refine our experimental AI feature.
175-
</span>
176-
</Alert.Inline>
173+
}} />
177174
</div>
178175
{/if}
179176

@@ -229,15 +226,19 @@
229226
<Layout.Stack direction="row" gap="s">
230227
<AvatarInitials size="s" name={$user.name} />
231228
<form
232-
class="input-text-wrapper u-width-full-line"
229+
class="u-full-width input-text-wrapper"
233230
style="--amount-of-buttons: 1;"
231+
style:display="flex"
232+
style:width="100%"
233+
style:align-items="center"
234234
on:submit|preventDefault={(e) => {
235235
handleSubmit(e);
236236
}}>
237237
<!-- svelte-ignore a11y-autofocus -->
238238
<input
239239
type="text"
240240
class="input-text"
241+
style:width="100%"
241242
placeholder="Ask a question..."
242243
autofocus
243244
bind:value={$input}

0 commit comments

Comments
 (0)