From 84d30fe121fc65774098dc8cd540a2059f5a7ac2 Mon Sep 17 00:00:00 2001 From: --list <18093452+simula-r@users.noreply.github.com> Date: Mon, 19 Jan 2026 23:27:38 -0800 Subject: [PATCH] feat: FF the feature and also added isCloud checks and misc styling fixes --- src/components/dialog/GlobalDialog.vue | 14 +- .../dialog/content/setting/UserPanel.vue | 2 +- .../content/setting/WorkspacePanelContent.vue | 52 +- src/components/graph/GraphCanvas.vue | 11 +- src/components/topbar/CurrentUserButton.vue | 45 +- src/components/topbar/CurrentUserPopover.vue | 288 ++--- .../topbar/CurrentUserPopoverWorkspace.vue | 346 ++++++ src/composables/useFeatureFlags.ts | 12 +- src/locales/en/main.json | 7 + .../components/SubscriptionPanel.vue | 18 +- .../SubscriptionPanelContentLegacy.vue | 357 ++++++ ... => SubscriptionPanelContentWorkspace.vue} | 42 +- .../components/SettingDialogContent.vue | 84 +- .../settings/composables/useSettingUI.ts | 95 +- .../composables/useInviteUrlLoader.test.ts | 9 +- .../stores/teamWorkspaceStore.test.ts | 1069 +++++++++++++++++ .../workspace/stores/teamWorkspaceStore.ts | 5 +- src/services/dialogService.ts | 110 +- 18 files changed, 2206 insertions(+), 360 deletions(-) create mode 100644 src/components/topbar/CurrentUserPopoverWorkspace.vue create mode 100644 src/platform/cloud/subscription/components/SubscriptionPanelContentLegacy.vue rename src/platform/cloud/subscription/components/{SubscriptionPanelContent.vue => SubscriptionPanelContentWorkspace.vue} (91%) create mode 100644 src/platform/workspace/stores/teamWorkspaceStore.test.ts diff --git a/src/components/dialog/GlobalDialog.vue b/src/components/dialog/GlobalDialog.vue index 6bf3eab44..bb3b98478 100644 --- a/src/components/dialog/GlobalDialog.vue +++ b/src/components/dialog/GlobalDialog.vue @@ -6,7 +6,9 @@ v-model:visible="item.visible" :class="[ 'global-dialog', - item.key === 'global-settings' ? 'settings-dialog' : '' + item.key === 'global-settings' && teamWorkspacesEnabled + ? 'settings-dialog-workspace' + : '' ]" v-bind="item.dialogComponentProps" :pt="item.dialogComponentProps.pt" @@ -41,8 +43,13 @@ @@ -59,12 +66,13 @@ const dialogStore = useDialogStore() @apply pt-0; } -.settings-dialog { +/* Workspace mode: wider settings dialog */ +.settings-dialog-workspace { width: 100%; max-width: 1440px; } -.settings-dialog .p-dialog-content { +.settings-dialog-workspace .p-dialog-content { width: 100%; } diff --git a/src/components/dialog/content/setting/UserPanel.vue b/src/components/dialog/content/setting/UserPanel.vue index 8f8f77cd3..60bc6dba3 100644 --- a/src/components/dialog/content/setting/UserPanel.vue +++ b/src/components/dialog/content/setting/UserPanel.vue @@ -1,5 +1,5 @@ - + + + + - - @@ -125,7 +128,7 @@
- {{ isOwnerUnsubscribed ? '0' : totalCredits }} + {{ showZeroState ? '0' : totalCredits }}
@@ -140,7 +143,7 @@ height="1rem" /> {{ - isOwnerUnsubscribed ? '0 / 0' : includedCreditsDisplay + showZeroState ? '0 / 0' : includedCreditsDisplay }} @@ -155,7 +158,7 @@ height="1rem" /> {{ - isOwnerUnsubscribed ? '0' : prepaidCredits + showZeroState ? '0' : prepaidCredits }}