diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index a381b1849..8fcb73389 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -49,7 +49,7 @@ git clone https://github.com/appwrite/console.git appwrite-console
Navigate to the Appwrite Console repository and install dependencies.
```bash
-cd appwrite-console && npm install
+cd appwrite-console && pnpm install
```
### 3. Install and run Appwrite locally
@@ -62,10 +62,13 @@ Follow the [install instructions](https://appwrite.io/docs/advanced/self-hosting
Add a `.env` file by copying the `.env.example` file as a template in the project's root directory.
+> **Note**
+> If you are updating from Appwrite `1.5.x`, be aware that the variables for the console in the `.env` / `.env.example` file have changed in `1.6.x`.
+
Finally, start a development server:
```bash
-npm run dev
+pnpm dev
```
> **Note**
@@ -74,7 +77,7 @@ npm run dev
### Build
```bash
-npm run build
+pnpm build
```
> You can preview the built app with `npm run preview`, regardless of whether you installed an adapter. This should _not_ be used to serve your app in production.
@@ -82,7 +85,7 @@ npm run build
### Tests
```bash
-npm test
+pnpm test
```
This will run tests in the `tests/` directory.
@@ -92,13 +95,13 @@ This will run tests in the `tests/` directory.
Code should be consistently formatted everywhere. Before committing code, run the code-formatter.
```bash
-npm run format
+pnpm run format
```
### Linter
```bash
-npm run lint
+pnpm run lint
```
### Diagnostics
@@ -110,7 +113,7 @@ Diagnostic tool that checks for the following:
- TypeScript compiler errors
```bash
-npm run check
+pnpm run check
```
## Submit a Pull Request 🚀
@@ -173,11 +176,11 @@ $ git push origin [name_of_your_new_branch]
Before committing always make sure to run all available tools to improve the codebase:
- Formatter
- - `npm run format`
+ - `pnpm run format`
- Tests
- - `npm test`
+ - `pnpm test`
- Diagnostics
- - `npm run check`
+ - `pnpm run check`
### Performance
diff --git a/package.json b/package.json
index 91f20bfa4..df0ae8170 100644
--- a/package.json
+++ b/package.json
@@ -19,7 +19,7 @@
"e2e:ui": "playwright test tests/e2e --ui"
},
"dependencies": {
- "@appwrite.io/console": "npm:matej-appwrite-console-16x@0.6.7",
+ "@appwrite.io/console": "npm:matej-appwrite-console@0.6.10",
"@appwrite.io/pink": "0.25.0",
"@appwrite.io/pink-icons": "0.25.0",
"@popperjs/core": "^2.11.8",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 4dfaf9d20..c56c50315 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -9,8 +9,8 @@ importers:
.:
dependencies:
'@appwrite.io/console':
- specifier: npm:matej-appwrite-console-16x@0.6.7
- version: matej-appwrite-console-16x@0.6.7
+ specifier: npm:matej-appwrite-console@0.6.10
+ version: matej-appwrite-console@0.6.10
'@appwrite.io/pink':
specifier: 0.25.0
version: 0.25.0
@@ -2182,8 +2182,8 @@ packages:
makeerror@1.0.12:
resolution: {integrity: sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==}
- matej-appwrite-console-16x@0.6.7:
- resolution: {integrity: sha512-orhonLVjV0vzJE/OrI49DRJ75EAkEa+8QzWy30h1N04jNyAcEGFfx4OKmhWg4uG5XRrmWrrDj9nobHKCiBaDCg==}
+ matej-appwrite-console@0.6.10:
+ resolution: {integrity: sha512-gaeMHwp23uPcuBWe4/4nCNTyY81GAyyCsLFLwOom9Gl6m+VRwr7hgsz9wqoCfHfHA09nAAT3Vp9jFZoQ+WIeZQ==}
mdn-data@2.0.30:
resolution: {integrity: sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==}
@@ -5627,7 +5627,7 @@ snapshots:
dependencies:
tmpl: 1.0.5
- matej-appwrite-console-16x@0.6.7: {}
+ matej-appwrite-console@0.6.10: {}
mdn-data@2.0.30: {}
diff --git a/src/lib/actions/analytics.ts b/src/lib/actions/analytics.ts
index 156fca4fc..b63fbd03b 100644
--- a/src/lib/actions/analytics.ts
+++ b/src/lib/actions/analytics.ts
@@ -194,6 +194,7 @@ export enum Submit {
AuthPasswordHistoryUpdate = 'submit_auth_password_history_limit_update',
AuthPasswordDictionaryUpdate = 'submit_auth_password_dictionary_update',
AuthPersonalDataCheckUpdate = 'submit_auth_personal_data_check_update',
+ AuthSessionAlertsUpdate = 'submit_auth_session_alerts_update',
AuthMockNumbersUpdate = 'submit_auth_mock_numbers_update',
SessionsLengthUpdate = 'submit_sessions_length_update',
SessionsLimitUpdate = 'submit_sessions_limit_update',
diff --git a/src/lib/components/drop.svelte b/src/lib/components/drop.svelte
index 9d4e07e0d..2d4ee2b73 100644
--- a/src/lib/components/drop.svelte
+++ b/src/lib/components/drop.svelte
@@ -120,7 +120,7 @@
bind:this={tooltip}
class:u-width-full-line={fullWidth}
style:--arrow-size={`${arrowSize}px`}
- style:z-index="10">
+ style:z-index="21">
+ style:--drop-width-size-desktop={width ? `${width}rem` : ''}
+ style:position>
{#if $$slots.list}
{:else if column.type === 'datetime'}
{#key value}
-
+
{/key}
{:else}
diff --git a/src/lib/components/floatingActionBar.svelte b/src/lib/components/floatingActionBar.svelte
index 28b7a8e3b..9c1159b77 100644
--- a/src/lib/components/floatingActionBar.svelte
+++ b/src/lib/components/floatingActionBar.svelte
@@ -28,7 +28,7 @@
:global(.theme-dark) .floating-action-bar {
border: 1px solid hsl(var(--color-neutral-85));
background: hsl(var(--color-neutral-90));
- box-shadow: 0px 6px 16px 8px #14141f;
+ box-shadow: 0px 6px 16px 8px hsl(var(--color-neutral-105));
}
:global(.theme-light) .floating-action-bar {
diff --git a/src/lib/components/support.svelte b/src/lib/components/support.svelte
index 88653a724..66d922d41 100644
--- a/src/lib/components/support.svelte
+++ b/src/lib/components/support.svelte
@@ -17,7 +17,7 @@
$organization?.billingPlan === BillingPlan.PRO ||
$organization?.billingPlan === BillingPlan.SCALE;
- $: supportTimings = `${utcHourToLocaleHour('09:00')} - ${utcHourToLocaleHour('17:00')} ${localeTimezoneName()}`;
+ $: supportTimings = `${utcHourToLocaleHour('16:00')} - ${utcHourToLocaleHour('00:00')} ${localeTimezoneName()}`;
{#if isCloud}
diff --git a/src/lib/constants.ts b/src/lib/constants.ts
index 28e5be689..707d0f66f 100644
--- a/src/lib/constants.ts
+++ b/src/lib/constants.ts
@@ -65,200 +65,239 @@ export const scopes: {
scope: string;
description: string;
category: string;
+ icon: string;
}[] = [
{
scope: 'sessions.write',
description: "Access to create, update and delete your project's sessions",
- category: 'Auth'
+ category: 'Auth',
+ icon: 'user-group'
},
{
scope: 'users.read',
description: "Access to read your project's users",
- category: 'Auth'
+ category: 'Auth',
+ icon: 'user-group'
},
{
scope: 'users.write',
description: "Access to create, update, and delete your project's users",
- category: 'Auth'
+ category: 'Auth',
+ icon: 'user-group'
},
{
scope: 'teams.read',
description: "Access to read your project's teams",
- category: 'Auth'
+ category: 'Auth',
+ icon: 'user-group'
},
{
scope: 'teams.write',
description: "Access to create, update, and delete your project's teams",
- category: 'Auth'
+ category: 'Auth',
+ icon: 'user-group'
},
{
scope: 'databases.read',
description: "Access to read your project's databases",
- category: 'Database'
+ category: 'Database',
+ icon: 'database'
},
{
scope: 'databases.write',
description: "Access to create, update, and delete your project's databases",
- category: 'Database'
+ category: 'Database',
+ icon: 'database'
},
{
scope: 'collections.read',
description: "Access to read your project's database collections",
- category: 'Database'
+ category: 'Database',
+ icon: 'database'
},
{
scope: 'collections.write',
description: "Access to create, update, and delete your project's database collections",
- category: 'Database'
+ category: 'Database',
+ icon: 'database'
},
{
scope: 'attributes.read',
description: "Access to read your project's database collection's attributes",
- category: 'Database'
+ category: 'Database',
+ icon: 'database'
},
{
scope: 'attributes.write',
description:
"Access to create, update, and delete your project's database collection's attributes",
- category: 'Database'
+ category: 'Database',
+ icon: 'database'
},
{
scope: 'indexes.read',
description: "Access to read your project's database collection's indexes",
- category: 'Database'
+ category: 'Database',
+ icon: 'database'
},
{
scope: 'indexes.write',
description:
"Access to create, update, and delete your project's database collection's indexes",
- category: 'Database'
+ category: 'Database',
+ icon: 'database'
},
{
scope: 'documents.read',
description: "Access to read your project's database documents",
- category: 'Database'
+ category: 'Database',
+ icon: 'database'
},
{
scope: 'documents.write',
description: "Access to create, update, and delete your project's database documents",
- category: 'Database'
+ category: 'Database',
+ icon: 'database'
},
{
scope: 'files.read',
description: "Access to read your project's storage files and preview images",
- category: 'Storage'
+ category: 'Storage',
+ icon: 'folder'
},
{
scope: 'files.write',
description: "Access to create, update, and delete your project's storage files",
- category: 'Storage'
+ category: 'Storage',
+ icon: 'folder'
},
{
scope: 'buckets.read',
description: "Access to read your project's storage buckets",
- category: 'Storage'
+ category: 'Storage',
+ icon: 'folder'
},
{
scope: 'buckets.write',
description: "Access to create, update, and delete your project's storage buckets",
- category: 'Storage'
+ category: 'Storage',
+ icon: 'folder'
},
{
scope: 'functions.read',
description: "Access to read your project's functions and code deployments",
- category: 'Functions'
+ category: 'Functions',
+ icon: 'lightning-bolt'
},
{
scope: 'functions.write',
description:
"Access to create, update, and delete your project's functions and code deployments",
- category: 'Functions'
+ category: 'Functions',
+ icon: 'lightning-bolt'
},
{
scope: 'execution.read',
description: "Access to read your project's execution logs",
- category: 'Functions'
+ category: 'Functions',
+ icon: 'lightning-bolt'
},
{
scope: 'execution.write',
description: "Access to execute your project's functions",
- category: 'Functions'
+ category: 'Functions',
+ icon: 'lightning-bolt'
},
{
scope: 'targets.read',
description: "Access to read your project's messaging targets",
- category: 'Messaging'
+ category: 'Messaging',
+ icon: 'send'
},
{
scope: 'targets.write',
description: "Access to create, update, and delete your project's messaging targets",
- category: 'Messaging'
+ category: 'Messaging',
+ icon: 'send'
},
{
scope: 'providers.read',
description: "Access to read your project's messaging providers",
- category: 'Messaging'
+ category: 'Messaging',
+ icon: 'send'
},
{
scope: 'providers.write',
description: "Access to create, update, and delete your project's messaging providers",
- category: 'Messaging'
+ category: 'Messaging',
+ icon: 'send'
},
{
scope: 'messages.read',
description: "Access to read your project's messages",
- category: 'Messaging'
+ category: 'Messaging',
+ icon: 'send'
},
{
scope: 'messages.write',
description: "Access to create, update, and delete your project's messages",
- category: 'Messaging'
+ category: 'Messaging',
+ icon: 'send'
},
{
scope: 'topics.read',
description: "Access to read your project's messaging topics",
- category: 'Messaging'
+ category: 'Messaging',
+ icon: 'send'
},
{
scope: 'topics.write',
description: "Access to create, update, and delete your project's messaging topics",
- category: 'Messaging'
+ category: 'Messaging',
+ icon: 'send'
},
{
scope: 'subscribers.read',
description: "Access to read your project's messaging topic subscribers",
- category: 'Messaging'
+ category: 'Messaging',
+ icon: 'send'
},
{
scope: 'subscribers.write',
description:
"Access to create, update, and delete your project's messaging topic subscribers",
- category: 'Messaging'
+ category: 'Messaging',
+ icon: 'send'
},
{
scope: 'locale.read',
description: "Access to access your project's Locale service",
- category: 'Other'
+ category: 'Other',
+ icon: 'globe'
},
{
scope: 'avatars.read',
description: "Access to access your project's Avatars service",
- category: 'Other'
+ category: 'Other',
+ icon: 'globe'
},
{
scope: 'health.read',
description: "Access to read your project's health status",
- category: 'Other'
+ category: 'Other',
+ icon: 'globe'
},
{
scope: 'migrations.read',
description: "Access to read your project's migration status",
- category: 'Other'
+ category: 'Other',
+ icon: 'globe'
},
{
scope: 'migrations.write',
description: 'Access to create migrations',
- category: 'Other'
+ category: 'Other',
+ icon: 'globe'
}
];
diff --git a/src/lib/elements/forms/inputDateTime.svelte b/src/lib/elements/forms/inputDateTime.svelte
index 5eb8da64d..b63bd628f 100644
--- a/src/lib/elements/forms/inputDateTime.svelte
+++ b/src/lib/elements/forms/inputDateTime.svelte
@@ -14,6 +14,7 @@
export let readonly = false;
export let autofocus = false;
export let autocomplete = false;
+ export let step: number | 'any' = 0.001;
let element: HTMLInputElement;
let error: string;
@@ -70,7 +71,7 @@
{readonly}
{required}
{value}
- step=".001"
+ {step}
autocomplete={autocomplete ? 'on' : 'off'}
type="datetime-local"
class="input-text"
diff --git a/src/lib/elements/forms/inputFile.svelte b/src/lib/elements/forms/inputFile.svelte
index 3ecb27959..76c3babcc 100644
--- a/src/lib/elements/forms/inputFile.svelte
+++ b/src/lib/elements/forms/inputFile.svelte
@@ -32,7 +32,7 @@
}
function isFileExtensionAllowed(fileExtension: string) {
- if (allowedFileExtensions.length && !allowedFileExtensions.includes(fileExtension)) {
+ if (allowedFileExtensions?.length && !allowedFileExtensions.includes(fileExtension)) {
return false;
}
return true;
@@ -42,7 +42,7 @@
hovering = false;
if (!ev.dataTransfer.items) return;
for (let i = 0; i < ev.dataTransfer.items.length; i++) {
- const fileExtension = ev.dataTransfer.items[i].getAsFile().name.split('.')[1];
+ const fileExtension = ev.dataTransfer.items[i].getAsFile().name.split('.').pop();
if (!isFileExtensionAllowed(fileExtension)) {
error = 'Invalid file extension';
return;
@@ -183,15 +183,16 @@
{#if files?.length}
{#each fileArray as file}
- {@const fileName = file.name.split('.')}
+ {@const fileName = file.name.split('.').slice(0, -1).join('.')}
+ {@const extension = file.name.split('.').pop()}
{@const fileSize = humanFileSize(file.size)}
-
- {fileName[0]}
+ {fileName}
- .{fileName[1]}
+ .{extension}
diff --git a/src/lib/layout/wizard.svelte b/src/lib/layout/wizard.svelte
index f62bd15d7..56df88658 100644
--- a/src/lib/layout/wizard.svelte
+++ b/src/lib/layout/wizard.svelte
@@ -139,7 +139,18 @@
}
$: sortedSteps = [...steps].sort(([a], [b]) => (a > b ? 1 : -1));
- $: isLastStep = $wizard.step === steps.size;
+ $: isLastStep = (() => {
+ if ($wizard.step === steps.size) {
+ return true;
+ }
+ let lastStep = true;
+ steps.forEach((step, i) => {
+ if (i > $wizard.step && !step.disabled) {
+ lastStep = false;
+ }
+ });
+ return lastStep;
+ })();
$: currentStep = steps.get($wizard.step);
@@ -187,7 +198,7 @@
{/if}
{/each}
-