From b72d497982b3413bbeb51604b7fe49a19cfe9db8 Mon Sep 17 00:00:00 2001 From: ItzNotABug Date: Sun, 14 Jul 2024 16:53:53 +0530 Subject: [PATCH 1/7] update: add helper texts. --- .../attributes/relationship.svelte | 66 +++++++++++-------- .../attributes/string.svelte | 24 +++++-- .../createAttribute.svelte | 4 +- 3 files changed, 57 insertions(+), 37 deletions(-) diff --git a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/relationship.svelte b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/relationship.svelte index 59150c3a78..c5ccc780ac 100644 --- a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/relationship.svelte +++ b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/relationship.svelte @@ -154,30 +154,40 @@ - ({ value: n.$id, label: n.$id, data: [n.name] })) ?? []} - on:select={updateKeyName} - let:option={o}> - - {o.label} - - - - - {o.label} - - - - +
+ ({ value: n.$id, label: n.$id, data: [n.name] })) ?? []} + on:select={updateKeyName} + let:option={o}> + + {o.label} + + + + + {o.label} + + + + + +
+
+
{#if data?.relatedCollection}
@@ -190,12 +200,12 @@ readonly={editing} required /> -
+
@@ -209,12 +219,12 @@ required readonly={editing} /> -
+
diff --git a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/string.svelte b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/string.svelte index 37d1e2e2f7..9d8c00f756 100644 --- a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/string.svelte +++ b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/string.svelte @@ -69,13 +69,23 @@ $: handleDefaultState($required || $array); - +
+ + +
+
+
{#if data.size >= 50} -
+
From b6207f2d4c3fd4ae9d7cf3a23ae5b4920cecb908 Mon Sep 17 00:00:00 2001 From: ItzNotABug Date: Sun, 14 Jul 2024 16:54:51 +0530 Subject: [PATCH 2/7] update: float, integer side by side. --- .../attributes/float.svelte | 44 +++++++++++++------ .../attributes/integer.svelte | 41 ++++++++++++----- 2 files changed, 59 insertions(+), 26 deletions(-) diff --git a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/float.svelte b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/float.svelte index d92ce2d69c..c221257bd1 100644 --- a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/float.svelte +++ b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/float.svelte @@ -75,20 +75,36 @@ $: handleDefaultState($required || $array); - - +
+
    +
  • + +
  • +
  • + +
  • +
+ +
+
+
- - +
+
    +
  • + +
  • + +
  • + +
  • +
+ +
+
+
Date: Sun, 14 Jul 2024 16:55:13 +0530 Subject: [PATCH 3/7] fix: typo. --- .../collection-[collection]/attributes/enum.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/enum.svelte b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/enum.svelte index ceaf4488ea..3f1b2b2e05 100644 --- a/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/enum.svelte +++ b/src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/attributes/enum.svelte @@ -86,7 +86,7 @@ label="Elements" bind:tags={data.elements} placeholder="Add elements here" - tooltip="Enum elements have a maxiumum length of 255 characters. This limit can not be exceeded." + tooltip="Enum elements have a maximum length of 255 characters. This limit can not be exceeded." required> From bc92266b63b84658a8b324947e7ac4aca1a40035 Mon Sep 17 00:00:00 2001 From: ItzNotABug Date: Tue, 27 Aug 2024 13:47:17 +0530 Subject: [PATCH 4/7] ran: `pnpm format`. --- .../attributes/float.svelte | 17 +++++++++-------- .../attributes/integer.svelte | 5 +++-- .../attributes/relationship.svelte | 11 +++++++---- .../attributes/string.svelte | 5 +++-- .../createAttribute.svelte | 3 ++- 5 files changed, 24 insertions(+), 17 deletions(-) diff --git a/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/attributes/float.svelte b/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/attributes/float.svelte index c221257bd1..629def3b6d 100644 --- a/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/attributes/float.svelte +++ b/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/attributes/float.svelte @@ -88,18 +88,19 @@
  • + id="max" + label="Max" + placeholder="Enter size" + bind:value={data.max} + step="any" + required={editing} />
  • -
    diff --git a/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/attributes/string.svelte b/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/attributes/string.svelte index 9d8c00f756..38da616768 100644 --- a/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/attributes/string.svelte +++ b/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/attributes/string.svelte @@ -79,8 +79,9 @@ readonly={editing} />
    -
    From 5cd5d028187170b82ae0ac0349dce789d372c5a8 Mon Sep 17 00:00:00 2001 From: ItzNotABug Date: Thu, 3 Oct 2024 16:40:37 +0530 Subject: [PATCH 5/7] update: copies as attributes are now editable. --- .../collection-[collection]/attributes/float.svelte | 9 --------- .../collection-[collection]/attributes/integer.svelte | 9 --------- .../attributes/relationship.svelte | 9 --------- .../collection-[collection]/createAttribute.svelte | 3 +-- 4 files changed, 1 insertion(+), 29 deletions(-) diff --git a/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/attributes/float.svelte b/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/attributes/float.svelte index a2f957352a..1578ef58fa 100644 --- a/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/attributes/float.svelte +++ b/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/attributes/float.svelte @@ -98,15 +98,6 @@ required={editing} /> - -
    -
    - -
    -
    - -
    -
    {#if data?.relatedCollection} 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 faedf1259d..b6a03debc1 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 @@ -127,8 +127,7 @@ class="icon-info u-cross-center u-margin-block-start-2 u-line-height-1 u-icon-small" aria-hidden="true" /> - Allowed characters: a-z, A-Z, 0-9, -, . Once created, attribute key cannot - be adjusted to maintain data integrity. + Allowed characters: alphanumeric, hyphen, non-leading underscore, period. From 5fbb149d9a492188db8af0204a6f9ee6268dd56b Mon Sep 17 00:00:00 2001 From: Darshan Date: Tue, 26 Nov 2024 14:28:03 +0530 Subject: [PATCH 6/7] update: change message. --- .../collection-[collection]/attributes/relationship.svelte | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/attributes/relationship.svelte b/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/attributes/relationship.svelte index 874ebce339..4730183cc4 100644 --- a/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/attributes/relationship.svelte +++ b/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/attributes/relationship.svelte @@ -199,8 +199,7 @@ class="icon-info u-cross-center u-margin-block-start-2 u-line-height-1 u-icon-small" aria-hidden="true" /> - Allowed characters: a-z, A-Z, 0-9, -, . Once created, attribute key cannot be - adjusted to maintain data integrity. + Allowed characters: a-z, A-Z, 0-9, -, . From 32e18ad538af92e2fef2483fe7348bd0bc8c960a Mon Sep 17 00:00:00 2001 From: Darshan Date: Tue, 26 Nov 2024 14:31:42 +0530 Subject: [PATCH 7/7] ran: formatter. --- .../collection-[collection]/attributes/relationship.svelte | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/attributes/relationship.svelte b/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/attributes/relationship.svelte index 4730183cc4..1af15500bc 100644 --- a/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/attributes/relationship.svelte +++ b/src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/attributes/relationship.svelte @@ -198,9 +198,7 @@