diff --git a/packages/builder/src/components/settings/APIKeyModal.svelte b/packages/builder/src/components/settings/APIKeyModal.svelte new file mode 100644 index 0000000000..6fb2c88634 --- /dev/null +++ b/packages/builder/src/components/settings/APIKeyModal.svelte @@ -0,0 +1,40 @@ + + + + Your API key for accessing the Budibase public API: + + diff --git a/packages/builder/src/components/settings/UpdateUserInfoModal.svelte b/packages/builder/src/components/settings/ProfileModal.svelte similarity index 89% rename from packages/builder/src/components/settings/UpdateUserInfoModal.svelte rename to packages/builder/src/components/settings/ProfileModal.svelte index 5734f613ad..850bde2f35 100644 --- a/packages/builder/src/components/settings/UpdateUserInfoModal.svelte +++ b/packages/builder/src/components/settings/ProfileModal.svelte @@ -18,11 +18,7 @@ } - + Personalise the platform by adding your first name and last name. diff --git a/packages/builder/src/components/settings/ThemeModal.svelte b/packages/builder/src/components/settings/ThemeModal.svelte new file mode 100644 index 0000000000..fd7460327a --- /dev/null +++ b/packages/builder/src/components/settings/ThemeModal.svelte @@ -0,0 +1,16 @@ + + + + x.name} + getOptionValue={x => x.class} + /> + diff --git a/packages/builder/src/pages/builder/apps/index.svelte b/packages/builder/src/pages/builder/apps/index.svelte index 4b2c336f6c..ad1b5ec7f8 100644 --- a/packages/builder/src/pages/builder/apps/index.svelte +++ b/packages/builder/src/pages/builder/apps/index.svelte @@ -17,7 +17,7 @@ import { goto } from "@roxi/routify" import { AppStatus } from "constants" import { gradient } from "actions" - import UpdateUserInfoModal from "components/settings/UpdateUserInfoModal.svelte" + import ProfileModal from "components/settings/ProfileModal.svelte" import ChangePasswordModal from "components/settings/ChangePasswordModal.svelte" import { processStringSync } from "@budibase/string-templates" import Spaceman from "assets/bb-space-man.svg" @@ -185,7 +185,7 @@ - + diff --git a/packages/builder/src/pages/builder/portal/_layout.svelte b/packages/builder/src/pages/builder/portal/_layout.svelte index 2a5b5ed4df..12f47d0f0d 100644 --- a/packages/builder/src/pages/builder/portal/_layout.svelte +++ b/packages/builder/src/pages/builder/portal/_layout.svelte @@ -13,15 +13,20 @@ } from "@budibase/bbui" import { organisation, auth, admin as adminStore } from "stores/portal" import { onMount } from "svelte" - import UpdateUserInfoModal from "components/settings/UpdateUserInfoModal.svelte" + import ProfileModal from "components/settings/ProfileModal.svelte" import ChangePasswordModal from "components/settings/ChangePasswordModal.svelte" + import ThemeModal from "components/settings/ThemeModal.svelte" + import APIKeyModal from "components/settings/APIKeyModal.svelte" import Logo from "assets/bb-emblem.svg" import ConfigChecklist from "components/common/ConfigChecklist.svelte" // import { isEnabled, TENANT_FEATURE_FLAGS } from "helpers/featureFlags" let loaded = false + let themeModal + let profileModal let userInfoModal - let changePasswordModal + let updatePasswordModal + let apiKeyModal let mobileMenuVisible = false let activeTab = "Apps" @@ -201,19 +206,33 @@ /> + themeModal.show()} + dataCy="theme" + > + Theme + userInfoModal.show()} - dataCy={"user-info"} + dataCy="user-info" > - Update user information + My profile changePasswordModal.show()} + on:click={() => updatePasswordModal.show()} > Update password + apiKeyModal.show()} + dataCy="api-key" + > + View API key + $goto("../apps")}> Close developer mode @@ -228,12 +247,18 @@ - - + + - + + + + + + + {/if} diff --git a/packages/builder/src/pages/builder/portal/settings/index.svelte b/packages/builder/src/pages/builder/portal/settings/index.svelte index 2d4630462c..842fe01be8 100644 --- a/packages/builder/src/pages/builder/portal/settings/index.svelte +++ b/packages/builder/src/pages/builder/portal/settings/index.svelte @@ -1,4 +1,4 @@ diff --git a/packages/builder/src/pages/builder/portal/settings/theme.svelte b/packages/builder/src/pages/builder/portal/settings/theme.svelte deleted file mode 100644 index 2b08f3934b..0000000000 --- a/packages/builder/src/pages/builder/portal/settings/theme.svelte +++ /dev/null @@ -1,37 +0,0 @@ - - - - - Theme - Customize how Budibase looks and feels - - - - - Theme - x.name} - getOptionValue={x => x.class} - /> - - - - -