From b5757eea5d8288098c00f5165c58e9ecf86b0f5f Mon Sep 17 00:00:00 2001 From: Gabriel Jablonski Date: Tue, 28 Apr 2026 13:20:38 -0300 Subject: [PATCH] fix(branding): add SuperAdmin-only notice on upgrade gates (#278) * fix(branding): add SuperAdmin-only notice on upgrade gates Some upgrade prompts (Kanban paywall, group creation form, group-disabled banner in conversation view) are rendered only to SuperAdmins and link to fazer.ai. Admins viewing those screens were worried that the fazer.ai link was also being shown to their agents, even though it is not. Add a discreet "Only system administrators can see this message" line under each SuperAdmin-only block to make the audience explicit. * fix(branding): inline SuperAdmin notice into Banner component The notice was being rendered as a standalone

below the conversation banner, which made it easy to miss. Add an optional noticeMessage prop to the Banner component and render it inside the banner with italic + reduced opacity styling, then pass it from the groups-disabled branch of the MessagesView banner. --- .../components/ComposeNewGroupForm.vue | 31 +++++++++++-------- .../dashboard/components/ui/Banner.vue | 11 +++++++ .../widgets/conversation/MessagesView.vue | 1 + .../i18n/locale/en/generalSettings.json | 1 + .../i18n/locale/pt_BR/generalSettings.json | 1 + .../routes/dashboard/kanban/Index.vue | 3 ++ 6 files changed, 35 insertions(+), 13 deletions(-) diff --git a/app/javascript/dashboard/components-next/NewConversation/components/ComposeNewGroupForm.vue b/app/javascript/dashboard/components-next/NewConversation/components/ComposeNewGroupForm.vue index 93ae63901..2b8c370f6 100644 --- a/app/javascript/dashboard/components-next/NewConversation/components/ComposeNewGroupForm.vue +++ b/app/javascript/dashboard/components-next/NewConversation/components/ComposeNewGroupForm.vue @@ -167,20 +167,25 @@ defineExpose({ resetForm });

- - - {{ t('GROUP.CREATE.GROUPS_DISABLED') }} - - {{ t('GROUP.CREATE.GROUPS_DISABLED_CTA') }} - - + +
+ + {{ t('GROUP.CREATE.GROUPS_DISABLED') }} + + {{ t('GROUP.CREATE.GROUPS_DISABLED_CTA') }} + + + + {{ t('GENERAL_SETTINGS.SUPER_ADMIN_ONLY_NOTICE') }} + +
{{ t('GROUP.CREATE.GROUPS_DISABLED_NON_ADMIN') }} diff --git a/app/javascript/dashboard/components/ui/Banner.vue b/app/javascript/dashboard/components/ui/Banner.vue index 2aa907999..92fb8a2e0 100644 --- a/app/javascript/dashboard/components/ui/Banner.vue +++ b/app/javascript/dashboard/components/ui/Banner.vue @@ -42,6 +42,10 @@ export default { type: Boolean, default: false, }, + noticeMessage: { + type: String, + default: '', + }, }, emits: ['primaryAction', 'close'], computed: { @@ -92,6 +96,9 @@ export default { > {{ hrefLinkText }} +
+

+ {{ t('GENERAL_SETTINGS.SUPER_ADMIN_ONLY_NOTICE') }} +