Skip to content

Commit 7a4f9a9

Browse files
committed
Merge branch 'main' into 'multiple-terminologies'.
2 parents f1712be + 1590206 commit 7a4f9a9

31 files changed

Lines changed: 288 additions & 217 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
"PUBLIC_CONSOLE_MODE=cloud"
4242
"PUBLIC_CONSOLE_FEATURE_FLAGS="
4343
"PUBLIC_APPWRITE_MULTI_REGION=true"
44-
"PUBLIC_CONSOLE_EMAIL_VERIFICATION=true"
44+
"PUBLIC_CONSOLE_EMAIL_VERIFICATION=false"
4545
"PUBLIC_CONSOLE_MOCK_AI_SUGGESTIONS=false"
4646
"PUBLIC_GROWTH_ENDPOINT=${{ secrets.PUBLIC_GROWTH_ENDPOINT }}"
4747
"PUBLIC_STRIPE_KEY=${{ secrets.PUBLIC_STRIPE_KEY }}"
@@ -83,7 +83,7 @@ jobs:
8383
"PUBLIC_CONSOLE_MODE=cloud"
8484
"PUBLIC_CONSOLE_FEATURE_FLAGS="
8585
"PUBLIC_APPWRITE_MULTI_REGION=true"
86-
"PUBLIC_CONSOLE_EMAIL_VERIFICATION=false"
86+
"PUBLIC_CONSOLE_EMAIL_VERIFICATION=true"
8787
"PUBLIC_CONSOLE_MOCK_AI_SUGGESTIONS=false"
8888
"PUBLIC_GROWTH_ENDPOINT=${{ secrets.PUBLIC_GROWTH_ENDPOINT }}"
8989
"PUBLIC_STRIPE_KEY=${{ secrets.PUBLIC_STRIPE_KEY_STAGE }}"

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ RUN corepack prepare pnpm@10.0.0 --activate
1111
ADD ./package.json /app/package.json
1212
ADD ./pnpm-lock.yaml /app/pnpm-lock.yaml
1313

14-
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
14+
RUN pnpm install --frozen-lockfile
1515

1616
ADD ./build.js /app/build.js
1717
ADD ./tsconfig.json /app/tsconfig.json

src/lib/layout/responsiveContainerHeader.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@
106106
{#if hasSearch}
107107
<SearchQuery placeholder={searchPlaceholder} />
108108
{/if}
109+
</Layout.Stack>
110+
<Layout.Stack direction="row" alignItems="center" justifyContent="flex-end">
109111
{#if hasFilters && $columns?.length}
110112
<QuickFilters {columns} {analyticsSource} {filterCols} />
111113
{/if}
112-
</Layout.Stack>
113-
<Layout.Stack direction="row" alignItems="center" justifyContent="flex-end">
114114
{#if hasDisplaySettings}
115115
<ViewSelector ui="new" {view} {columns} {hideView} {hideColumns} />
116116
{/if}

src/lib/layout/wizardStep.svelte

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,21 @@
2121
</script>
2222

2323
<Layout.Stack>
24-
<header class="form-header" class:hide-divider={!$$slots.subtitle}>
25-
<Typography.Title><slot name="title" /></Typography.Title>
26-
{#if $$slots.subtitle}
27-
<p>
28-
<slot name="subtitle" />
29-
</p>
30-
{/if}
31-
</header>
24+
{#if $$slots.title || $$slots.subtitle}
25+
<header
26+
class="form-header"
27+
class:hide-divider={!$$slots.subtitle}
28+
class:only-subtitle={!$$slots.title && $$slots.subtitle}>
29+
{#if $$slots.title}
30+
<Typography.Title><slot name="title" /></Typography.Title>
31+
{/if}
32+
{#if $$slots.subtitle}
33+
<p>
34+
<slot name="subtitle" />
35+
</p>
36+
{/if}
37+
</header>
38+
{/if}
3239

3340
<slot />
3441
</Layout.Stack>
@@ -42,4 +49,8 @@
4249
padding-block-end: 0;
4350
border-block-end: none;
4451
}
52+
53+
.only-subtitle {
54+
margin-block-end: 0.5rem;
55+
}
4556
</style>

src/routes/(console)/organization-[organization]/+page.svelte

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,13 @@
8383
}
8484
8585
$: projectCreationDisabled =
86-
(isCloud && getServiceLimit('projects') <= data.projects.total) ||
86+
(isCloud && getServiceLimit('projects', null, data.currentPlan) <= data.projects.total) ||
8787
(isCloud && $readOnly && !GRACE_PERIOD_OVERRIDE) ||
8888
!$canWriteProjects;
8989
90-
$: reachedProjectLimit = isCloud && getServiceLimit('projects') <= data.projects.total;
91-
$: projectsLimit = getServiceLimit('projects');
90+
$: reachedProjectLimit =
91+
isCloud && getServiceLimit('projects', null, data.currentPlan) <= data.projects.total;
92+
$: projectsLimit = getServiceLimit('projects', null, data.currentPlan);
9293
9394
$: $registerCommands([
9495
{

src/routes/(console)/organization-[organization]/header.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
let areMembersLimited: boolean = $state(false);
3030
3131
$effect(() => {
32-
const limit = getServiceLimit('members') || Infinity;
32+
const limit = getServiceLimit('members', null, page.data.currentPlan) || Infinity;
3333
const isLimited = limit !== 0 && limit < Infinity;
3434
areMembersLimited =
3535
isCloud &&

src/routes/(console)/project-[region]-[project]/databases/database-[database]/table-[table]/sheetOptions.svelte

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
IconTrash
3838
} from '@appwrite.io/pink-icons-svelte';
3939
import { type Columns, databaseColumnSheetOptions } from './store';
40+
import { isRelationship } from './rows/store';
4041
4142
interface MenuItem {
4243
label?: string;
@@ -122,6 +123,11 @@
122123
if (['delete', 'update', 'duplicate-header'].includes(item.action) && isSystemColumn) {
123124
return false;
124125
}
126+
127+
// hide sort options for relationship columns
128+
if (isRelationship(column) && ['sort-asc', 'sort-desc'].includes(item.action ?? '')) {
129+
return false;
130+
}
125131
}
126132
127133
return true;

src/routes/(console)/project-[region]-[project]/messaging/+page.svelte

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,7 @@
243243
{:else if $hasPageQueries}
244244
<EmptyFilter resource="messages" />
245245
{:else if data.search}
246-
<EmptySearch>
247-
<div class="u-text-center">
248-
<b>Sorry, we couldn't find '{data.search}'</b>
249-
<p>There are no messages that match your search.</p>
250-
</div>
246+
<EmptySearch target="messages" search={data.search}>
251247
<div class="u-flex u-gap-16">
252248
<Button external href="https://appwrite.io/docs/products/messaging/messages" text>
253249
Documentation

src/routes/(console)/project-[region]-[project]/messaging/create-[type]/(type)/(components)/schedule.svelte

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,18 @@
2121
2222
const options = [
2323
{ label: 'Now', value: 'now' },
24-
{ label: 'Schedule', value: 'later' }
24+
{ label: 'Custom', value: 'later' }
2525
];
2626
27-
const formatOptions: Intl.DateTimeFormatOptions = {
27+
const dateOptions: Intl.DateTimeFormatOptions = {
2828
month: 'long',
2929
day: 'numeric',
30-
year: 'numeric',
30+
year: 'numeric'
31+
};
32+
const timeOptions: Intl.DateTimeFormatOptions = {
3133
hour: 'numeric',
3234
minute: 'numeric',
35+
second: 'numeric',
3336
hourCycle: 'h23',
3437
timeZoneName: 'longGeneric'
3538
};
@@ -57,28 +60,23 @@
5760
</script>
5861

5962
<Layout.Stack>
60-
<InputSelect id="when" required {options} bind:value={when} />
61-
<InputDate
62-
id="date"
63-
label="Date"
64-
disabled={when === 'now'}
65-
required={when === 'later'}
66-
min={minDate}
67-
bind:value={date} />
68-
<InputTime
69-
id="time"
70-
label="Time"
71-
disabled={when === 'now'}
72-
required={when === 'later'}
73-
min={minTime}
74-
bind:value={time} />
63+
<InputSelect id="when" label="Schedule" required {options} bind:value={when} />
64+
{#if when === 'later'}
65+
<Layout.Stack direction="row" gap="m">
66+
<InputDate id="date" min={minDate} bind:value={date} required />
67+
<InputTime id="time" min={minTime} bind:value={time} required />
68+
</Layout.Stack>
69+
{/if}
7570
<Helper type="neutral">
7671
{#if when === 'now'}
7772
The message will be sent immediately
7873
{:else if !dateTime || isNaN(dateTime.getTime())}
7974
The message will be sent later
8075
{:else}
81-
The message will be sent at {dateTime.toLocaleString('en', formatOptions)}
76+
The message will be sent on {dateTime.toLocaleDateString('en', dateOptions)} at {dateTime.toLocaleTimeString(
77+
'en',
78+
timeOptions
79+
)}
8280
{/if}
8381
</Helper>
8482
</Layout.Stack>

src/routes/(console)/project-[region]-[project]/messaging/create-[type]/(type)/email.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
<Fieldset legend="Targets">
134134
<Targets type={MessagingProviderType.Email} bind:topics bind:targets />
135135
</Fieldset>
136-
<Fieldset legend="Schedule">
136+
<Fieldset legend="Settings">
137137
<Schedule bind:scheduledAt {targets} />
138138
</Fieldset>
139139
</Layout.Stack>

0 commit comments

Comments
 (0)