Skip to content

Commit 3aee60c

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat-project-changes
2 parents 72826ef + 82d3777 commit 3aee60c

File tree

24 files changed

+155
-91
lines changed

24 files changed

+155
-91
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PUBLIC_CONSOLE_MODE=self-hosted
2-
PUBLIC_CONSOLE_FEATURE_FLAGS=sites,csv-import,attribute-encrypt,index-lengths
2+
PUBLIC_CONSOLE_FEATURE_FLAGS=sites,attribute-encrypt,index-lengths
33
PUBLIC_APPWRITE_MULTI_REGION=false
44
PUBLIC_APPWRITE_ENDPOINT=http://localhost/v1
55
PUBLIC_STRIPE_KEY=

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
labels: ${{ steps.meta.outputs.labels }}
8080
build-args: |
8181
"PUBLIC_CONSOLE_MODE=cloud"
82-
"PUBLIC_CONSOLE_FEATURE_FLAGS=sites,csv-import,attribute-encrypt,index-lengths"
82+
"PUBLIC_CONSOLE_FEATURE_FLAGS=sites,attribute-encrypt,index-lengths"
8383
"PUBLIC_APPWRITE_MULTI_REGION=true"
8484
"PUBLIC_GROWTH_ENDPOINT=${{ secrets.PUBLIC_GROWTH_ENDPOINT }}"
8585
"PUBLIC_STRIPE_KEY=${{ secrets.PUBLIC_STRIPE_KEY_STAGE }}"
@@ -118,7 +118,7 @@ jobs:
118118
build-args: |
119119
"PUBLIC_CONSOLE_MODE=self-hosted"
120120
"PUBLIC_APPWRITE_MULTI_REGION=false"
121-
"PUBLIC_CONSOLE_FEATURE_FLAGS=sites,csv-import,attribute-encrypt,index-lengths"
121+
"PUBLIC_CONSOLE_FEATURE_FLAGS=sites,attribute-encrypt,index-lengths"
122122
"PUBLIC_GROWTH_ENDPOINT=${{ secrets.PUBLIC_GROWTH_ENDPOINT }}"
123123
124124
publish-cloud-no-regions:
@@ -156,6 +156,6 @@ jobs:
156156
build-args: |
157157
"PUBLIC_CONSOLE_MODE=cloud"
158158
"PUBLIC_APPWRITE_MULTI_REGION=false"
159-
"PUBLIC_CONSOLE_FEATURE_FLAGS=sites,csv-import,attribute-encrypt,index-lengths"
159+
"PUBLIC_CONSOLE_FEATURE_FLAGS=sites,attribute-encrypt,index-lengths"
160160
"PUBLIC_STRIPE_KEY=${{ secrets.PUBLIC_STRIPE_KEY_STAGE }}"
161161
"PUBLIC_GROWTH_ENDPOINT=${{ secrets.PUBLIC_GROWTH_ENDPOINT }}"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"dependencies": {
2424
"@ai-sdk/svelte": "^1.1.24",
25-
"@appwrite.io/console": "https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@56743f5",
25+
"@appwrite.io/console": "https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@8836b0c",
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",

pnpm-lock.yaml

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

src/lib/components/git/productionBranchFieldset.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,5 @@
9090
</Fieldset>
9191

9292
{#if show}
93-
<SelectRootModal bind:show bind:rootDir {product} />
93+
<SelectRootModal bind:show bind:rootDir {product} {branch} />
9494
{/if}

src/lib/components/git/selectRootModal.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
export let show = false;
2323
export let rootDir: string;
2424
export let product: 'sites' | 'functions' = 'functions';
25+
export let branch: string;
2526
2627
let isLoading = true;
2728
let directories: Directory[] = [
@@ -42,7 +43,7 @@
4243
try {
4344
const content = await sdk
4445
.forProject(page.params.region, page.params.project)
45-
.vcs.getRepositoryContents($installation.$id, $repository.id, currentPath);
46+
.vcs.getRepositoryContents($installation.$id, $repository.id, currentPath, branch);
4647
directories[0].fileCount = content.contents?.length ?? 0;
4748
directories[0].children = content.contents
4849
.filter((e) => e.isDirectory)
@@ -82,7 +83,7 @@
8283
try {
8384
const content = await sdk
8485
.forProject(page.params.region, page.params.project)
85-
.vcs.getRepositoryContents($installation.$id, $repository.id, path);
86+
.vcs.getRepositoryContents($installation.$id, $repository.id, path, branch);
8687
8788
const fileCount = content.contents?.length ?? 0;
8889
const contentDirectories = content.contents.filter((e) => e.isDirectory);

src/lib/flags.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ function isFlagEnabled(name: string) {
2020

2121
export const flags = {
2222
showSites: isFlagEnabled('sites'),
23-
showCsvImport: isFlagEnabled('csv-import'),
2423
showAttributeEncrypt: isFlagEnabled('attribute-encrypt'),
2524
showIndexLengths: isFlagEnabled('index-lengths')
2625
};
76.7 KB
Loading
64.6 KB
Loading

src/routes/(console)/bottomAlerts.ts

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,50 @@
11
import { isCloud } from '$lib/system';
22
import { isSameDay } from '$lib/helpers/date';
3-
import { type BottomModalAlertItem, showBottomModalAlert } from '$lib/stores/bottom-alerts';
3+
import {
4+
type BottomModalAlertItem,
5+
showBottomModalAlert,
6+
setMobileSingleAlertLayout
7+
} from '$lib/stores/bottom-alerts';
8+
9+
import BulkApiDark from '$lib/images/promos/bulk-api-dark.png';
10+
import BulkApiLight from '$lib/images/promos/bulk-api-light.png';
411

512
const listOfPromotions: BottomModalAlertItem[] = [];
613

714
if (isCloud) {
8-
/* add promos here */
15+
const bulkApiPromo: BottomModalAlertItem = {
16+
id: 'modal:bulk_api_announcement',
17+
src: {
18+
dark: BulkApiDark,
19+
light: BulkApiLight
20+
},
21+
title: 'Introducing Bulk API',
22+
message:
23+
'A new Appwrite Databases feature, explicitly designed to handle heavy write workloads.',
24+
plan: 'free',
25+
importance: 8,
26+
scope: 'project',
27+
cta: {
28+
text: 'Read announcement',
29+
link: () => 'https://appwrite.io/blog/post/announcing-bulk-api',
30+
external: true,
31+
hideOnClick: true
32+
},
33+
show: true
34+
};
35+
36+
listOfPromotions.push(bulkApiPromo);
37+
38+
setMobileSingleAlertLayout({
39+
title: bulkApiPromo.title,
40+
message: bulkApiPromo.message,
41+
enabled: true,
42+
cta: {
43+
link: bulkApiPromo.cta.link,
44+
external: bulkApiPromo.cta.external,
45+
hideOnClick: bulkApiPromo.cta.hideOnClick
46+
}
47+
});
948
}
1049

1150
export function addBottomModalAlerts() {

0 commit comments

Comments
 (0)