diff --git a/lerna.json b/lerna.json index a50794e91e..05cdc1532f 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "2.21.4", + "version": "2.21.5", "npmClient": "yarn", "packages": [ "packages/*", diff --git a/packages/bbui/src/Icon/IconAvatar.svelte b/packages/bbui/src/Icon/IconAvatar.svelte index add51f5bdc..b046e4dfd5 100644 --- a/packages/bbui/src/Icon/IconAvatar.svelte +++ b/packages/bbui/src/Icon/IconAvatar.svelte @@ -1,22 +1,41 @@ + +
(showTooltip = true)} + on:mouseleave={() => (showTooltip = false)} + on:focus={() => (showTooltip = true)} + on:blur={() => (showTooltip = false)} + on:click={() => (showTooltip = false)} > + {#if tooltip && showTooltip} +
+ +
+ {/if}
diff --git a/packages/bbui/src/Table/Table.svelte b/packages/bbui/src/Table/Table.svelte index 36668571bc..33b9bd9a7e 100644 --- a/packages/bbui/src/Table/Table.svelte +++ b/packages/bbui/src/Table/Table.svelte @@ -470,6 +470,7 @@ --table-border: 1px solid var(--spectrum-alias-border-color-mid); --cell-padding: var(--spectrum-global-dimension-size-250); overflow: auto; + display: contents; } .wrapper--quiet { --table-bg: var(--spectrum-alias-background-color-transparent); diff --git a/packages/builder/src/pages/builder/portal/users/_components/ActiveDirectoryInfo.svelte b/packages/builder/src/pages/builder/portal/users/_components/ActiveDirectoryInfo.svelte new file mode 100644 index 0000000000..e060e2ca3f --- /dev/null +++ b/packages/builder/src/pages/builder/portal/users/_components/ActiveDirectoryInfo.svelte @@ -0,0 +1,23 @@ + + +
+ + {text} +
+ + diff --git a/packages/builder/src/pages/builder/portal/users/_components/SCIMBanner.svelte b/packages/builder/src/pages/builder/portal/users/_components/SCIMBanner.svelte deleted file mode 100644 index 2d02214800..0000000000 --- a/packages/builder/src/pages/builder/portal/users/_components/SCIMBanner.svelte +++ /dev/null @@ -1,15 +0,0 @@ - - -
- - Users are synced from your AD -
- - diff --git a/packages/builder/src/pages/builder/portal/users/groups/[groupId].svelte b/packages/builder/src/pages/builder/portal/users/groups/[groupId].svelte index 5db8f5f712..da199b6a49 100644 --- a/packages/builder/src/pages/builder/portal/users/groups/[groupId].svelte +++ b/packages/builder/src/pages/builder/portal/users/groups/[groupId].svelte @@ -13,7 +13,7 @@ import ConfirmDialog from "components/common/ConfirmDialog.svelte" import { Breadcrumb, Breadcrumbs } from "components/portal/page" import { roles } from "stores/builder" - import { appsStore, auth, features, groups } from "stores/portal" + import { appsStore, auth, groups } from "stores/portal" import { onMount, setContext } from "svelte" import AppNameTableRenderer from "../users/_components/AppNameTableRenderer.svelte" import AppRoleTableRenderer from "../users/_components/AppRoleTableRenderer.svelte" @@ -47,9 +47,9 @@ let loaded = false let editModal, deleteModal - $: scimEnabled = $features.isScimEnabled - $: readonly = !sdk.users.isAdmin($auth.user) || scimEnabled $: group = $groups.find(x => x._id === groupId) + $: isScimGroup = group?.scimInfo?.isSync + $: readonly = !sdk.users.isAdmin($auth.user) || isScimGroup $: groupApps = $appsStore.apps .filter(app => groups.actions @@ -119,23 +119,27 @@
{group?.name} - {#if !readonly} - - - - - editModal.show()}> - Edit - - deleteModal.show()}> + + + + + editModal.show()}> + Edit + +
+ deleteModal.show()} + disabled={isScimGroup} + > Delete - - {/if} +
+
- + diff --git a/packages/builder/src/pages/builder/portal/users/groups/_components/CreateEditGroupModal.svelte b/packages/builder/src/pages/builder/portal/users/groups/_components/CreateEditGroupModal.svelte index 2f0d295052..9a0c3540af 100644 --- a/packages/builder/src/pages/builder/portal/users/groups/_components/CreateEditGroupModal.svelte +++ b/packages/builder/src/pages/builder/portal/users/groups/_components/CreateEditGroupModal.svelte @@ -11,6 +11,8 @@ export let group export let saveGroup + let readonlyTitle = group?.scimInfo?.isSync + let nameError @@ -26,7 +28,12 @@ title={group?._rev ? "Edit group" : "Create group"} confirmText="Save" > - +