diff --git a/lerna.json b/lerna.json
index a0663c0a88..b74beefaa1 100644
--- a/lerna.json
+++ b/lerna.json
@@ -1,5 +1,5 @@
{
- "version": "1.0.207-alpha.3",
+ "version": "1.0.207-alpha.6",
"npmClient": "yarn",
"packages": [
"packages/*"
diff --git a/packages/backend-core/package.json b/packages/backend-core/package.json
index bb7ba36751..7d9348ddd4 100644
--- a/packages/backend-core/package.json
+++ b/packages/backend-core/package.json
@@ -1,6 +1,6 @@
{
"name": "@budibase/backend-core",
- "version": "1.0.207-alpha.3",
+ "version": "1.0.207-alpha.6",
"description": "Budibase backend core libraries used in server and worker",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
@@ -20,7 +20,7 @@
"test:watch": "jest --watchAll"
},
"dependencies": {
- "@budibase/types": "^1.0.207-alpha.3",
+ "@budibase/types": "^1.0.207-alpha.6",
"@techpass/passport-openidconnect": "0.3.2",
"aws-sdk": "2.1030.0",
"bcrypt": "5.0.1",
diff --git a/packages/bbui/package.json b/packages/bbui/package.json
index 028d076053..17592216d7 100644
--- a/packages/bbui/package.json
+++ b/packages/bbui/package.json
@@ -1,7 +1,7 @@
{
"name": "@budibase/bbui",
"description": "A UI solution used in the different Budibase projects.",
- "version": "1.0.207-alpha.3",
+ "version": "1.0.207-alpha.6",
"license": "MPL-2.0",
"svelte": "src/index.js",
"module": "dist/bbui.es.js",
@@ -38,7 +38,7 @@
],
"dependencies": {
"@adobe/spectrum-css-workflow-icons": "^1.2.1",
- "@budibase/string-templates": "^1.0.207-alpha.3",
+ "@budibase/string-templates": "^1.0.207-alpha.6",
"@spectrum-css/actionbutton": "^1.0.1",
"@spectrum-css/actiongroup": "^1.0.1",
"@spectrum-css/avatar": "^3.0.2",
diff --git a/packages/builder/package.json b/packages/builder/package.json
index a008003d7a..e096675be4 100644
--- a/packages/builder/package.json
+++ b/packages/builder/package.json
@@ -1,6 +1,6 @@
{
"name": "@budibase/builder",
- "version": "1.0.207-alpha.3",
+ "version": "1.0.207-alpha.6",
"license": "GPL-3.0",
"private": true,
"scripts": {
@@ -69,10 +69,10 @@
}
},
"dependencies": {
- "@budibase/bbui": "^1.0.207-alpha.3",
- "@budibase/client": "^1.0.207-alpha.3",
- "@budibase/frontend-core": "^1.0.207-alpha.3",
- "@budibase/string-templates": "^1.0.207-alpha.3",
+ "@budibase/bbui": "^1.0.207-alpha.6",
+ "@budibase/client": "^1.0.207-alpha.6",
+ "@budibase/frontend-core": "^1.0.207-alpha.6",
+ "@budibase/string-templates": "^1.0.207-alpha.6",
"@sentry/browser": "5.19.1",
"@spectrum-css/page": "^3.0.1",
"@spectrum-css/vars": "^3.0.1",
diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/FilterEditor/FilterDrawer.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/FilterEditor/FilterDrawer.svelte
index 95a5f54e32..aa191ce0ea 100644
--- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/FilterEditor/FilterDrawer.svelte
+++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/FilterEditor/FilterDrawer.svelte
@@ -54,8 +54,9 @@
}
const onFieldChange = (expression, field) => {
- // Update the field type
+ // Update the field types
expression.type = enrichedSchemaFields.find(x => x.name === field)?.type
+ expression.externalType = getSchema(expression)?.externalType
// Ensure a valid operator is set
const validOperators = LuceneUtils.getValidOperatorsForType(
diff --git a/packages/builder/src/pages/builder/portal/manage/users/_components/AddUserModal.svelte b/packages/builder/src/pages/builder/portal/manage/users/_components/AddUserModal.svelte
index d57603b338..5583a48b7d 100644
--- a/packages/builder/src/pages/builder/portal/manage/users/_components/AddUserModal.svelte
+++ b/packages/builder/src/pages/builder/portal/manage/users/_components/AddUserModal.svelte
@@ -2,22 +2,47 @@
import {
Body,
Input,
- Select,
+ Label,
ModalContent,
notifications,
+ Select,
Toggle,
- Label,
} from "@budibase/bbui"
import { createValidationStore, emailValidator } from "helpers/validation"
import { users } from "stores/portal"
- export let disabled
-
+ const password = Math.random().toString(36).substring(2, 22)
const options = ["Email onboarding", "Basic onboarding"]
- let selected = options[0]
- let builder, admin
-
const [email, error, touched] = createValidationStore("", emailValidator)
+ let disabled
+ let builder
+ let admin
+ let selected = "Email onboarding"
+
+ $: basic = selected === "Basic onboarding"
+
+ function addUser() {
+ if (basic) {
+ createUser()
+ } else {
+ createUserFlow()
+ }
+ }
+
+ async function createUser() {
+ try {
+ await users.create({
+ email: $email,
+ password,
+ builder,
+ admin,
+ forceResetPassword: true,
+ })
+ notifications.success("Successfully created user")
+ } catch (error) {
+ notifications.error("Error creating user")
+ }
+ }
async function createUserFlow() {
try {
@@ -30,7 +55,7 @@