From 16bfe970152dc2e988d6fbb238cc4d8c2766c5a0 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 28 Oct 2022 08:03:06 +0100 Subject: [PATCH] Update user and groups pages --- packages/bbui/src/Layout/Page.svelte | 13 +- .../components/portal/page/SideNavItem.svelte | 2 +- .../src/pages/builder/portal/_layout.svelte | 10 +- .../portal/manage/groups/_layout.svelte | 3 - .../overview/_components/OverviewTab.svelte | 2 +- .../pages/builder/portal/users/_layout.svelte | 30 ++++ .../{manage => users}/groups/[groupId].svelte | 135 +++++++++--------- .../groups/_components/AppAddModal.svelte | 0 .../_components/CreateEditGroupModal.svelte | 0 .../_components/GroupAppsTableRenderer.svelte | 0 .../groups/_components/GroupIcon.svelte | 0 .../_components/GroupNameTableRenderer.svelte | 0 .../_components/UsersTableRenderer.svelte | 0 .../{manage => users}/groups/index.svelte | 15 +- .../{manage => users}/users/[userId].svelte | 128 ++++++++--------- .../users/_components/AddUserModal.svelte | 0 .../_components/AppsTableRenderer.svelte | 0 .../users/_components/DeleteUserModal.svelte | 0 .../_components/DeletionFailureModal.svelte | 0 .../users/_components/EmailSelect.svelte | 0 .../ForceResetPasswordModal.svelte | 0 .../_components/GroupsTableRenderer.svelte | 0 .../users/_components/ImportUsersModal.svelte | 0 .../users/_components/InvitedModal.svelte | 0 .../_components/OnboardingTypeModal.svelte | 0 .../_components/PasswordCopyRenderer.svelte | 0 .../users/_components/PasswordModal.svelte | 0 .../_components/RoleTableRenderer.svelte | 0 .../_components/RolesTagsTableRenderer.svelte | 0 .../_components/TagsTableRenderer.svelte | 0 .../users/_components/UpdateRolesModal.svelte | 0 .../{manage => users}/users/index.svelte | 17 +-- 32 files changed, 170 insertions(+), 185 deletions(-) delete mode 100644 packages/builder/src/pages/builder/portal/manage/groups/_layout.svelte create mode 100644 packages/builder/src/pages/builder/portal/users/_layout.svelte rename packages/builder/src/pages/builder/portal/{manage => users}/groups/[groupId].svelte (67%) rename packages/builder/src/pages/builder/portal/{manage => users}/groups/_components/AppAddModal.svelte (100%) rename packages/builder/src/pages/builder/portal/{manage => users}/groups/_components/CreateEditGroupModal.svelte (100%) rename packages/builder/src/pages/builder/portal/{manage => users}/groups/_components/GroupAppsTableRenderer.svelte (100%) rename packages/builder/src/pages/builder/portal/{manage => users}/groups/_components/GroupIcon.svelte (100%) rename packages/builder/src/pages/builder/portal/{manage => users}/groups/_components/GroupNameTableRenderer.svelte (100%) rename packages/builder/src/pages/builder/portal/{manage => users}/groups/_components/UsersTableRenderer.svelte (100%) rename packages/builder/src/pages/builder/portal/{manage => users}/groups/index.svelte (93%) rename packages/builder/src/pages/builder/portal/{manage => users}/users/[userId].svelte (78%) rename packages/builder/src/pages/builder/portal/{manage => users}/users/_components/AddUserModal.svelte (100%) rename packages/builder/src/pages/builder/portal/{manage => users}/users/_components/AppsTableRenderer.svelte (100%) rename packages/builder/src/pages/builder/portal/{manage => users}/users/_components/DeleteUserModal.svelte (100%) rename packages/builder/src/pages/builder/portal/{manage => users}/users/_components/DeletionFailureModal.svelte (100%) rename packages/builder/src/pages/builder/portal/{manage => users}/users/_components/EmailSelect.svelte (100%) rename packages/builder/src/pages/builder/portal/{manage => users}/users/_components/ForceResetPasswordModal.svelte (100%) rename packages/builder/src/pages/builder/portal/{manage => users}/users/_components/GroupsTableRenderer.svelte (100%) rename packages/builder/src/pages/builder/portal/{manage => users}/users/_components/ImportUsersModal.svelte (100%) rename packages/builder/src/pages/builder/portal/{manage => users}/users/_components/InvitedModal.svelte (100%) rename packages/builder/src/pages/builder/portal/{manage => users}/users/_components/OnboardingTypeModal.svelte (100%) rename packages/builder/src/pages/builder/portal/{manage => users}/users/_components/PasswordCopyRenderer.svelte (100%) rename packages/builder/src/pages/builder/portal/{manage => users}/users/_components/PasswordModal.svelte (100%) rename packages/builder/src/pages/builder/portal/{manage => users}/users/_components/RoleTableRenderer.svelte (100%) rename packages/builder/src/pages/builder/portal/{manage => users}/users/_components/RolesTagsTableRenderer.svelte (100%) rename packages/builder/src/pages/builder/portal/{manage => users}/users/_components/TagsTableRenderer.svelte (100%) rename packages/builder/src/pages/builder/portal/{manage => users}/users/_components/UpdateRolesModal.svelte (100%) rename packages/builder/src/pages/builder/portal/{manage => users}/users/index.svelte (96%) diff --git a/packages/bbui/src/Layout/Page.svelte b/packages/bbui/src/Layout/Page.svelte index de497f396e..037e6aefa8 100644 --- a/packages/bbui/src/Layout/Page.svelte +++ b/packages/bbui/src/Layout/Page.svelte @@ -1,10 +1,10 @@ -
+
@@ -14,7 +14,7 @@ flex-direction: column; justify-content: flex-start; align-items: stretch; - max-width: var(--max-width); + max-width: 1080px; margin: 0 auto; flex: 1 1 auto; padding-bottom: 50px; @@ -22,11 +22,10 @@ .wide { max-width: none; - margin: 0; } - .noPadding { - padding: 0px; - margin: 0px; + .narrow { + max-width: 800px; + margin: 0; } diff --git a/packages/builder/src/components/portal/page/SideNavItem.svelte b/packages/builder/src/components/portal/page/SideNavItem.svelte index 66c7ce101d..b31afb683f 100644 --- a/packages/builder/src/components/portal/page/SideNavItem.svelte +++ b/packages/builder/src/components/portal/page/SideNavItem.svelte @@ -4,7 +4,7 @@ export let active = false - + {text} diff --git a/packages/builder/src/pages/builder/portal/_layout.svelte b/packages/builder/src/pages/builder/portal/_layout.svelte index 52f2b8e8ee..9c2aa8da33 100644 --- a/packages/builder/src/pages/builder/portal/_layout.svelte +++ b/packages/builder/src/pages/builder/portal/_layout.svelte @@ -40,16 +40,8 @@ menu = menu.concat([ { title: "Users", - href: "/builder/portal/manage/users", - heading: "Manage", + href: "/builder/portal/users/users", }, - isEnabled(TENANT_FEATURE_FLAGS.USER_GROUPS) - ? { - title: "User Groups", - href: "/builder/portal/manage/groups", - badge: "New", - } - : undefined, { title: "Auth", href: "/builder/portal/manage/auth" }, { title: "Email", href: "/builder/portal/manage/email" }, { diff --git a/packages/builder/src/pages/builder/portal/manage/groups/_layout.svelte b/packages/builder/src/pages/builder/portal/manage/groups/_layout.svelte deleted file mode 100644 index a13211a9bb..0000000000 --- a/packages/builder/src/pages/builder/portal/manage/groups/_layout.svelte +++ /dev/null @@ -1,3 +0,0 @@ -
- -
diff --git a/packages/builder/src/pages/builder/portal/overview/_components/OverviewTab.svelte b/packages/builder/src/pages/builder/portal/overview/_components/OverviewTab.svelte index b121e04c7b..37c45e7854 100644 --- a/packages/builder/src/pages/builder/portal/overview/_components/OverviewTab.svelte +++ b/packages/builder/src/pages/builder/portal/overview/_components/OverviewTab.svelte @@ -9,7 +9,7 @@ import { createEventDispatcher } from "svelte" import { fetchData } from "@budibase/frontend-core" import { API } from "api" - import GroupIcon from "../../manage/groups/_components/GroupIcon.svelte" + import GroupIcon from "../../users/groups/_components/GroupIcon.svelte" export let app export let deployments diff --git a/packages/builder/src/pages/builder/portal/users/_layout.svelte b/packages/builder/src/pages/builder/portal/users/_layout.svelte new file mode 100644 index 0000000000..944e0396b5 --- /dev/null +++ b/packages/builder/src/pages/builder/portal/users/_layout.svelte @@ -0,0 +1,30 @@ + + + + +
+ + + + + + +
+ +
+
diff --git a/packages/builder/src/pages/builder/portal/manage/groups/[groupId].svelte b/packages/builder/src/pages/builder/portal/users/groups/[groupId].svelte similarity index 67% rename from packages/builder/src/pages/builder/portal/manage/groups/[groupId].svelte rename to packages/builder/src/pages/builder/portal/users/groups/[groupId].svelte index 5e8fb0d170..0528b34843 100644 --- a/packages/builder/src/pages/builder/portal/manage/groups/[groupId].svelte +++ b/packages/builder/src/pages/builder/portal/users/groups/[groupId].svelte @@ -1,7 +1,6 @@