From 25cb2824ffc4a757175e93f9da59b8af12273ec7 Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Tue, 25 Jun 2024 00:13:21 +0000 Subject: [PATCH 1/2] chore: change Beta label to Experimental for relationships Clarify the terminology since Appwrite Cloud is in Beta and the relationships feature is Experimental. This also matches the terminology used in the docs. --- .../collection-[collection]/attributes/edit.svelte | 2 +- .../collection-[collection]/createAttribute.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/attributes/edit.svelte b/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/attributes/edit.svelte index 1676df802..4810959dc 100644 --- a/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/attributes/edit.svelte +++ b/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/attributes/edit.svelte @@ -71,7 +71,7 @@ {option?.name} {#if option?.type === 'relationship'}
- Beta + Experimental
{/if} diff --git a/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/createAttribute.svelte b/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/createAttribute.svelte index 06420a1a1..152f7211b 100644 --- a/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/createAttribute.svelte +++ b/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/createAttribute.svelte @@ -72,7 +72,7 @@ {selectedOption}
- Beta + Experimental
{:else} From 3ae83a3b6ef2b86612f924b978ce6c83cd0e176d Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Wed, 26 Jun 2024 21:09:09 +0000 Subject: [PATCH 2/2] fix: hide attribute type icon for relationships on mobile The experimental tag is too big for the modal pushing the close button off screen, requiring horizontal scroll. To prevent that, we'll just hide the attribute type icon on the left so there's enough room for the experimental tag and the close button. --- src/lib/components/modal.svelte | 2 ++ .../collection-[collection]/attributes/edit.svelte | 8 +++++++- .../collection-[collection]/createAttribute.svelte | 8 +++++++- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/lib/components/modal.svelte b/src/lib/components/modal.svelte index c043fc1dc..cf70c44a6 100644 --- a/src/lib/components/modal.svelte +++ b/src/lib/components/modal.svelte @@ -8,6 +8,7 @@ export let show = false; export let size: 'small' | 'big' | 'huge' = null; export let icon: string = null; + export let iconNotMobile: boolean = false; export let state: 'success' | 'warning' | 'error' | 'info' = null; export let error: string = null; export let closable = true; @@ -39,6 +40,7 @@ {#if icon}
- +
{option?.name} diff --git a/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/createAttribute.svelte b/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/createAttribute.svelte index 152f7211b..f873a94fd 100644 --- a/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/createAttribute.svelte +++ b/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/createAttribute.svelte @@ -66,7 +66,13 @@ } - + {#if selectedOption === 'Relationship'}