From c9df4e5cb9802a015fcd3a5e7371222a0be1d22f Mon Sep 17 00:00:00 2001
From: Andrew Kingston
Date: Thu, 27 Oct 2022 09:06:07 +0100
Subject: [PATCH 001/387] Update BB logo to black
---
packages/builder/assets/bb-emblem.svg | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/builder/assets/bb-emblem.svg b/packages/builder/assets/bb-emblem.svg
index 9f4f3690d5..7d499e4862 100644
--- a/packages/builder/assets/bb-emblem.svg
+++ b/packages/builder/assets/bb-emblem.svg
@@ -3,7 +3,7 @@
To upgrade your plan and usage limits visit your
account.
diff --git a/packages/builder/src/pages/builder/portal/users/groups/[groupId].svelte b/packages/builder/src/pages/builder/portal/users/groups/[groupId].svelte
index 859e266ef0..ee584dd71b 100644
--- a/packages/builder/src/pages/builder/portal/users/groups/[groupId].svelte
+++ b/packages/builder/src/pages/builder/portal/users/groups/[groupId].svelte
@@ -250,7 +250,7 @@
flex-direction: row;
justify-content: flex-start;
align-items: center;
- gap: var(--spacing-m);
+ gap: var(--spacing-l);
}
.header :global(.spectrum-Heading) {
flex: 1 1 auto;
diff --git a/packages/builder/src/pages/builder/portal/users/users/[userId].svelte b/packages/builder/src/pages/builder/portal/users/users/[userId].svelte
index 9498472f66..26a1d25f44 100644
--- a/packages/builder/src/pages/builder/portal/users/users/[userId].svelte
+++ b/packages/builder/src/pages/builder/portal/users/users/[userId].svelte
@@ -389,6 +389,7 @@
display: flex;
align-items: center;
justify-content: flex-start;
+ gap: var(--spacing-l);
}
.tableTitle {
display: flex;
@@ -396,7 +397,6 @@
align-items: flex-end;
}
.subtitle {
- padding: 0 0 0 var(--spacing-m);
display: flex;
flex-direction: column;
justify-content: center;
From 66c6b6dec3ffca124f8231305315c8d37d4b9338 Mon Sep 17 00:00:00 2001
From: Andrew Kingston
Date: Fri, 13 Jan 2023 09:26:35 +0000
Subject: [PATCH 095/387] Fix logo override not working
---
.../src/pages/builder/portal/_components/Logo.svelte | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/packages/builder/src/pages/builder/portal/_components/Logo.svelte b/packages/builder/src/pages/builder/portal/_components/Logo.svelte
index 8276510201..811e4a162a 100644
--- a/packages/builder/src/pages/builder/portal/_components/Logo.svelte
+++ b/packages/builder/src/pages/builder/portal/_components/Logo.svelte
@@ -1,9 +1,14 @@
- $goto("./apps")} />
+ $goto("./apps")}
+/>
From 355fb6fda2e5dcb04525c870eabd2011092ee756 Mon Sep 17 00:00:00 2001
From: Andrew Kingston
Date: Fri, 13 Jan 2023 12:11:14 +0000
Subject: [PATCH 105/387] Make usage stats responsive and fix layout issues
---
.../builder/src/components/usage/Usage.svelte | 29 ++++++++++++-------
.../pages/builder/portal/account/usage.svelte | 1 +
2 files changed, 19 insertions(+), 11 deletions(-)
diff --git a/packages/builder/src/components/usage/Usage.svelte b/packages/builder/src/components/usage/Usage.svelte
index 49c4205a4c..6e81abfe63 100644
--- a/packages/builder/src/components/usage/Usage.svelte
+++ b/packages/builder/src/components/usage/Usage.svelte
@@ -39,15 +39,21 @@
{#if showWarning}
{/if}
-
+
+
+ {usage.name}
+
+
- {#if unlimited}
- {usage.used} / Unlimited
- {:else}
- {usage.used} / {usage.total}
- {/if}
+
+
+ {#if unlimited}
+ {usage.used} / Unlimited
+ {:else}
+ {usage.used} / {usage.total}
+ {/if}
+
+
{#if unlimited}
@@ -89,13 +95,14 @@
display: flex;
flex-direction: row;
justify-content: space-between;
+ align-items: flex-end;
margin-bottom: 12px;
+ gap: var(--spacing-m);
}
.header-container {
display: flex;
}
- .heading {
- margin-top: 3px;
- margin-left: 5px;
+ .nowrap {
+ white-space: nowrap;
}
diff --git a/packages/builder/src/pages/builder/portal/account/usage.svelte b/packages/builder/src/pages/builder/portal/account/usage.svelte
index c502d35f79..39970a4814 100644
--- a/packages/builder/src/pages/builder/portal/account/usage.svelte
+++ b/packages/builder/src/pages/builder/portal/account/usage.svelte
@@ -249,6 +249,7 @@
justify-content: flex-start;
align-items: flex-start;
gap: 40px;
+ flex-wrap: wrap;
}
.column {
flex: 1 1 0;
From d7ae20ce2193498827d5039bbb1273ca50b3f4dd Mon Sep 17 00:00:00 2001
From: Mel O'Hagan
Date: Fri, 13 Jan 2023 12:41:41 +0000
Subject: [PATCH 106/387] Use foreign key instead of parimary[0]
---
.../backend/Datasources/CreateEditRelationship.svelte | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/packages/builder/src/components/backend/Datasources/CreateEditRelationship.svelte b/packages/builder/src/components/backend/Datasources/CreateEditRelationship.svelte
index d83f3bf9a7..74bba33baa 100644
--- a/packages/builder/src/components/backend/Datasources/CreateEditRelationship.svelte
+++ b/packages/builder/src/components/backend/Datasources/CreateEditRelationship.svelte
@@ -127,10 +127,7 @@
let fromPrimary
$: {
if (!fromPrimary && fromTable) {
- const relationshipKey = fromRelationship?.fieldName
- fromPrimary =
- fromTable.primary.filter(val => val === relationshipKey)[0] ||
- fromTable.primary[0]
+ fromPrimary = fromRelationship?.foreignKey
}
}
$: isManyToMany =
From dfd6575aeab8cb2febfc80e96d331f704a4ac9b6 Mon Sep 17 00:00:00 2001
From: Mel O'Hagan
Date: Fri, 13 Jan 2023 15:01:21 +0000
Subject: [PATCH 107/387] Validation improvements
---
.../Datasources/CreateEditRelationship.svelte | 31 ++++++++++++++-----
1 file changed, 23 insertions(+), 8 deletions(-)
diff --git a/packages/builder/src/components/backend/Datasources/CreateEditRelationship.svelte b/packages/builder/src/components/backend/Datasources/CreateEditRelationship.svelte
index 74bba33baa..b18809e980 100644
--- a/packages/builder/src/components/backend/Datasources/CreateEditRelationship.svelte
+++ b/packages/builder/src/components/backend/Datasources/CreateEditRelationship.svelte
@@ -84,10 +84,10 @@
errObj.foreign = "Please pick the foreign key"
}
const colNotSet = "Please specify a column name"
- if ($touched.fromCol && !fromRelate.name) {
+ if ($touched.fromCol && !toRelate.name) {
errObj.fromCol = colNotSet
}
- if ($touched.toCol && !toRelate.name) {
+ if ($touched.toCol && !fromRelate.name) {
errObj.toCol = colNotSet
}
if ($touched.primary && !fromPrimary) {
@@ -143,7 +143,10 @@
$: through = plusTables.find(table => table._id === fromRelationship?.through)
$: checkForErrors(fromRelationship, toRelationship)
$: valid =
- Object.keys(errors).length === 0 && Object.keys($touched).length !== 0
+ Object.keys(errors).length === 0 &&
+ Object.keys($touched).length !== 0 &&
+ fromTable &&
+ toTable
$: linkTable = through || toTable
$: relationshipTypes = [
{
@@ -293,7 +296,10 @@
label="Select from table"
options={tableOptions}
disabled={!!selectedFromTable}
- on:change={() => ($touched.from = true)}
+ on:change={() => {
+ $touched.from = true
+ $touched.primary = true
+ }}
bind:error={errors.from}
bind:value={toRelationship.tableId}
/>
@@ -309,7 +315,10 @@