diff --git a/lerna.json b/lerna.json index 9b4a5a4b43..3f92ee6697 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "1.0.91-alpha.7", + "version": "1.0.91-alpha.9", "npmClient": "yarn", "packages": [ "packages/*" diff --git a/packages/backend-core/package.json b/packages/backend-core/package.json index e67df377d1..a2d6a2bc7a 100644 --- a/packages/backend-core/package.json +++ b/packages/backend-core/package.json @@ -1,6 +1,6 @@ { "name": "@budibase/backend-core", - "version": "1.0.91-alpha.7", + "version": "1.0.91-alpha.9", "description": "Budibase backend core libraries used in server and worker", "main": "src/index.js", "author": "Budibase", diff --git a/packages/bbui/package.json b/packages/bbui/package.json index a59a2db8a8..ef0a53c688 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.91-alpha.7", + "version": "1.0.91-alpha.9", "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.91-alpha.7", + "@budibase/string-templates": "^1.0.91-alpha.9", "@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 bed5cb0ce0..51b9574ab3 100644 --- a/packages/builder/package.json +++ b/packages/builder/package.json @@ -1,6 +1,6 @@ { "name": "@budibase/builder", - "version": "1.0.91-alpha.7", + "version": "1.0.91-alpha.9", "license": "GPL-3.0", "private": true, "scripts": { @@ -65,10 +65,10 @@ } }, "dependencies": { - "@budibase/bbui": "^1.0.91-alpha.7", - "@budibase/client": "^1.0.91-alpha.7", - "@budibase/frontend-core": "^1.0.91-alpha.7", - "@budibase/string-templates": "^1.0.91-alpha.7", + "@budibase/bbui": "^1.0.91-alpha.9", + "@budibase/client": "^1.0.91-alpha.9", + "@budibase/frontend-core": "^1.0.91-alpha.9", + "@budibase/string-templates": "^1.0.91-alpha.9", "@sentry/browser": "5.19.1", "@spectrum-css/page": "^3.0.1", "@spectrum-css/vars": "^3.0.1", diff --git a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte index c946dbf9d8..aa3915de58 100644 --- a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte @@ -12,7 +12,7 @@ Modal, notifications, } from "@budibase/bbui" - import { createEventDispatcher } from "svelte" + import { createEventDispatcher, onMount } from "svelte" import { cloneDeep } from "lodash/fp" import { tables } from "stores/backend" import { TableNames, UNEDITABLE_USER_FIELDS } from "constants" @@ -321,6 +321,12 @@ } return newError } + + onMount(() => { + if (primaryDisplay) { + field.constraints.presence = { allowEmpty: false } + } + }) - import analytics from "analytics" - import { createEventDispatcher } from "svelte" - import { fade, fly } from "svelte/transition" - import { - ActionButton, - ClearButton, - RadioGroup, - TextArea, - ButtonGroup, - Button, - Heading, - Detail, - Divider, - Layout, - notifications, - } from "@budibase/bbui" - import { auth } from "stores/portal" - - let step = 0 - let ratings = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] - let options = [ - "Importing / managing data", - "Designing", - "Automations", - "Managing users / groups", - "Deployment / hosting", - "Documentation", - ] - - const dispatch = createEventDispatcher() - - // Data to send off - let rating - let improvements = "" - let comment = "" - - function selectNumber(n) { - rating = n - step = 1 - } - - function submitFeedback() { - analytics.submitFeedback({ - rating, - improvements, - comment, - }) - try { - auth.updateSelf({ - flags: { - feedbackSubmitted: true, - }, - }) - } catch (error) { - notifications.error("Error updating user") - } - dispatch("complete") - } - - function cancelFeedback() { - try { - auth.updateSelf({ - flags: { - feedbackSubmitted: true, - }, - }) - } catch (error) { - notifications.error("Error updating user") - } - dispatch("complete") - } - - -
-