diff --git a/lerna.json b/lerna.json index 272a1dd0c6..10d36c9eaf 100644 --- a/lerna.json +++ b/lerna.json @@ -1,6 +1,6 @@ { "$schema": "node_modules/lerna/schemas/lerna-schema.json", - "version": "2.32.7", + "version": "2.32.8", "npmClient": "yarn", "packages": [ "packages/*", diff --git a/packages/account-portal b/packages/account-portal index c24374879d..558a32dfd1 160000 --- a/packages/account-portal +++ b/packages/account-portal @@ -1 +1 @@ -Subproject commit c24374879d2b61516fabc24d7404e7da235be05e +Subproject commit 558a32dfd1f55bd894804a503e7e1090937df88c diff --git a/packages/backend-core/src/features/index.ts b/packages/backend-core/src/features/index.ts index 0765d09036..2b915e5689 100644 --- a/packages/backend-core/src/features/index.ts +++ b/packages/backend-core/src/features/index.ts @@ -3,6 +3,7 @@ import * as context from "../context" import { PostHog, PostHogOptions } from "posthog-node" import { FeatureFlag, IdentityType, UserCtx } from "@budibase/types" import tracer from "dd-trace" +import { Duration } from "../utils" let posthog: PostHog | undefined export function init(opts?: PostHogOptions) { @@ -16,6 +17,7 @@ export function init(opts?: PostHogOptions) { posthog = new PostHog(env.POSTHOG_TOKEN, { host: env.POSTHOG_API_HOST, personalApiKey: env.POSTHOG_PERSONAL_TOKEN, + featureFlagsPollingInterval: Duration.fromMinutes(3).toMs(), ...opts, }) } else { @@ -275,5 +277,5 @@ export const flags = new FlagSet({ AUTOMATION_BRANCHING: Flag.boolean(env.isDev()), SQS: Flag.boolean(env.isDev()), [FeatureFlag.AI_CUSTOM_CONFIGS]: Flag.boolean(env.isDev()), - [FeatureFlag.ENRICHED_RELATIONSHIPS]: Flag.boolean(false), + [FeatureFlag.ENRICHED_RELATIONSHIPS]: Flag.boolean(env.isDev()), }) diff --git a/packages/bbui/src/Form/Core/Dropzone.svelte b/packages/bbui/src/Form/Core/Dropzone.svelte index c69bf0d6bb..2922d88e7a 100644 --- a/packages/bbui/src/Form/Core/Dropzone.svelte +++ b/packages/bbui/src/Form/Core/Dropzone.svelte @@ -396,6 +396,11 @@ padding: 6px 10px; margin-bottom: 8px; } + + .compact .placeholder { + height: fit-content; + } + .title { display: flex; flex-direction: row; diff --git a/packages/builder/src/components/backend/DataTable/Table.svelte b/packages/builder/src/components/backend/DataTable/Table.svelte index f7eccd5242..e09dd4bd39 100644 --- a/packages/builder/src/components/backend/DataTable/Table.svelte +++ b/packages/builder/src/components/backend/DataTable/Table.svelte @@ -6,7 +6,7 @@ import { TableNames, UNEDITABLE_USER_FIELDS } from "constants" import RoleCell from "./cells/RoleCell.svelte" import { createEventDispatcher } from "svelte" - import { canBeSortColumn } from "@budibase/shared-core" + import { canBeSortColumn } from "@budibase/frontend-core" export let schema = {} export let data = [] @@ -31,7 +31,7 @@ acc[key] = typeof schema[key] === "string" ? { type: schema[key] } : schema[key] - if (!canBeSortColumn(acc[key].type)) { + if (!canBeSortColumn(acc[key])) { acc[key].sortable = false } return acc diff --git a/packages/builder/src/components/backend/DataTable/buttons/grid/ColumnsSettingContent.svelte b/packages/builder/src/components/backend/DataTable/buttons/grid/ColumnsSettingContent.svelte index 99f2c16e8f..a61fcf8346 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/grid/ColumnsSettingContent.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/grid/ColumnsSettingContent.svelte @@ -121,8 +121,10 @@ label: name, schema: { type: column.type, + subtype: column.subtype, visible: column.visible, readonly: column.readonly, + constraints: column.constraints, // This is needed to properly display "users" column }, } }) diff --git a/packages/builder/src/components/backend/DataTable/buttons/grid/GridColumnsSettingButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/grid/GridColumnsSettingButton.svelte index 7e836222e6..83327a48c4 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/grid/GridColumnsSettingButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/grid/GridColumnsSettingButton.svelte @@ -13,12 +13,14 @@ import { isEnabled } from "helpers/featureFlags" import { FeatureFlag } from "@budibase/types" - const { columns, datasource } = getContext("grid") + const { tableColumns, datasource } = getContext("grid") let open = false let anchor - $: anyRestricted = $columns.filter(col => !col.visible || col.readonly).length + $: anyRestricted = $tableColumns.filter( + col => !col.visible || col.readonly + ).length $: text = anyRestricted ? `Columns: ${anyRestricted} restricted` : "Columns" $: permissions = $datasource.type === "viewV2" @@ -37,7 +39,7 @@ size="M" on:click={() => (open = !open)} selected={open || anyRestricted} - disabled={!$columns.length} + disabled={!$tableColumns.length} accentColor="#674D00" > {text} @@ -46,7 +48,7 @@ diff --git a/packages/builder/src/components/backend/DataTable/buttons/grid/GridSortButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/grid/GridSortButton.svelte index 96e5481d7a..5a1f6b221a 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/grid/GridSortButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/grid/GridSortButton.svelte @@ -1,7 +1,7 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packages/builder/src/pages/builder/portal/settings/index.svelte b/packages/builder/src/pages/builder/portal/settings/index.svelte index 09ead3e410..1448b43ec4 100644 --- a/packages/builder/src/pages/builder/portal/settings/index.svelte +++ b/packages/builder/src/pages/builder/portal/settings/index.svelte @@ -1,5 +1,10 @@ diff --git a/packages/client/src/components/app/deprecated/table/Table.svelte b/packages/client/src/components/app/deprecated/table/Table.svelte index ac3d88d29c..ca97a012bc 100644 --- a/packages/client/src/components/app/deprecated/table/Table.svelte +++ b/packages/client/src/components/app/deprecated/table/Table.svelte @@ -2,7 +2,7 @@ import { getContext, onDestroy } from "svelte" import { Table } from "@budibase/bbui" import SlotRenderer from "./SlotRenderer.svelte" - import { canBeSortColumn } from "@budibase/shared-core" + import { canBeSortColumn } from "@budibase/frontend-core" import Provider from "components/context/Provider.svelte" export let dataProvider @@ -146,7 +146,7 @@ return } newSchema[columnName] = schema[columnName] - if (!canBeSortColumn(schema[columnName].type)) { + if (!canBeSortColumn(schema[columnName])) { newSchema[columnName].sortable = false } diff --git a/packages/frontend-core/src/components/grid/cells/AttachmentCell.svelte b/packages/frontend-core/src/components/grid/cells/AttachmentCell.svelte index f485593c46..848ea470dd 100644 --- a/packages/frontend-core/src/components/grid/cells/AttachmentCell.svelte +++ b/packages/frontend-core/src/components/grid/cells/AttachmentCell.svelte @@ -2,6 +2,7 @@ import { onMount, getContext } from "svelte" import { Dropzone } from "@budibase/bbui" import GridPopover from "../overlays/GridPopover.svelte" + import { FieldType } from "@budibase/types" export let value export let focused = false @@ -81,7 +82,12 @@ > {#each value || [] as attachment} {#if isImage(attachment.extension)} - {attachment.extension} + {attachment.extension} {:else}
{attachment.extension} @@ -140,4 +146,9 @@ width: 320px; padding: var(--cell-padding); } + + .attachment-cell img.light { + -webkit-filter: invert(100%); + filter: invert(100%); + } diff --git a/packages/frontend-core/src/components/grid/cells/HeaderCell.svelte b/packages/frontend-core/src/components/grid/cells/HeaderCell.svelte index 1e6e49c354..9ba2865b31 100644 --- a/packages/frontend-core/src/components/grid/cells/HeaderCell.svelte +++ b/packages/frontend-core/src/components/grid/cells/HeaderCell.svelte @@ -1,6 +1,6 @@