diff --git a/lerna.json b/lerna.json index 5ee58f9007..d038f65da6 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "0.7.8", + "version": "0.8.2", "npmClient": "yarn", "packages": [ "packages/*" diff --git a/packages/builder/package.json b/packages/builder/package.json index b465d14dcf..284e9fa66d 100644 --- a/packages/builder/package.json +++ b/packages/builder/package.json @@ -1,6 +1,6 @@ { "name": "@budibase/builder", - "version": "0.7.8", + "version": "0.8.2", "license": "AGPL-3.0", "private": true, "scripts": { @@ -64,9 +64,9 @@ }, "dependencies": { "@budibase/bbui": "^1.58.13", - "@budibase/client": "^0.7.8", + "@budibase/client": "^0.8.2", "@budibase/colorpicker": "1.0.1", - "@budibase/string-templates": "^0.7.8", + "@budibase/string-templates": "^0.8.2", "@budibase/svelte-ag-grid": "^1.0.4", "@sentry/browser": "5.19.1", "@svelteschool/svelte-forms": "0.7.0", diff --git a/packages/builder/src/components/automation/SetupPanel/GenericBindingPopover.svelte b/packages/builder/src/components/automation/SetupPanel/GenericBindingPopover.svelte index e6818518ad..06013cfea2 100644 --- a/packages/builder/src/components/automation/SetupPanel/GenericBindingPopover.svelte +++ b/packages/builder/src/components/automation/SetupPanel/GenericBindingPopover.svelte @@ -143,10 +143,18 @@ margin-top: 0; } .bindings__wrapper { - overflow-y: auto; + overflow-y: scroll; + overflow-x: hidden; position: relative; flex: 1 1 auto; + -ms-overflow-style: none; } + + .bindings__wrapper::-webkit-scrollbar { + width: 0; + height: 0; + } + .bindings__list { position: absolute; width: 100%; diff --git a/packages/builder/src/components/backend/DataTable/cells/RelationshipCell.svelte b/packages/builder/src/components/backend/DataTable/cells/RelationshipCell.svelte index 2d85a184d9..0aae16f3db 100644 --- a/packages/builder/src/components/backend/DataTable/cells/RelationshipCell.svelte +++ b/packages/builder/src/components/backend/DataTable/cells/RelationshipCell.svelte @@ -11,7 +11,7 @@ class:link={!!items.length} on:click={() => selectRelationship(row, columnName)}> {#each items as item} -
{item}
+
{item?.primaryDisplay ?? ''}
{/each} diff --git a/packages/builder/src/components/backend/DataTable/modals/CreateEditRow.svelte b/packages/builder/src/components/backend/DataTable/modals/CreateEditRow.svelte index 5929b2db96..cda1ee2e26 100644 --- a/packages/builder/src/components/backend/DataTable/modals/CreateEditRow.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/CreateEditRow.svelte @@ -28,7 +28,11 @@ .flat() // Prevent modal closing if there were errors return false + } else if (rowResponse.status === 400 || rowResponse.status === 500) { + errors = [{ message: rowResponse.message }] + return false } + notifier.success("Row saved successfully.") backendUiStore.actions.rows.save(rowResponse) } diff --git a/packages/builder/src/components/backend/DataTable/modals/CreateEditUser.svelte b/packages/builder/src/components/backend/DataTable/modals/CreateEditUser.svelte index 6467b8e953..db92abc065 100644 --- a/packages/builder/src/components/backend/DataTable/modals/CreateEditUser.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/CreateEditUser.svelte @@ -40,9 +40,6 @@ if (!row.email) { errors = [...errors, { message: "Email is required" }] } - if (!row.password) { - errors = [...errors, { message: "Password is required" }] - } if (!row.roleId) { errors = [...errors, { message: "Role is required" }] } @@ -63,7 +60,7 @@ .flat() } return false - } else if (rowResponse.status === 400 && rowResponse.message) { + } else if (rowResponse.status === 400 || rowResponse.status === 500) { errors = [{ message: rowResponse.message }] return false } diff --git a/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/IntegrationConfigForm.svelte b/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/IntegrationConfigForm.svelte index 2db5490678..c084e8413e 100644 --- a/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/IntegrationConfigForm.svelte +++ b/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/IntegrationConfigForm.svelte @@ -10,10 +10,12 @@
{#each Object.keys(schema) as configKey} - {#if typeof schema[configKey].type === 'object'} + {#if schema[configKey].type === 'object'} - + {:else}
diff --git a/packages/builder/src/components/common/BindableInput.svelte b/packages/builder/src/components/common/BindableInput.svelte index 6234e3e046..a8df019869 100644 --- a/packages/builder/src/components/common/BindableInput.svelte +++ b/packages/builder/src/components/common/BindableInput.svelte @@ -24,7 +24,7 @@
- +
- import { onMount } from "svelte" import { backendUiStore } from "builderStore" import api from "builderStore/api" import { Select, Label, Multiselect } from "@budibase/bbui" @@ -9,7 +8,9 @@ export let linkedRows = [] let rows = [] + let linkedIds = (linkedRows || [])?.map(row => row?._id || row) + $: linkedRows = linkedIds $: label = capitalise(schema.name) $: linkedTableId = schema.tableId $: linkedTable = $backendUiStore.tables.find( @@ -45,12 +46,12 @@