From 0449b1d0ea17120e441309cf3ed56b0477e65020 Mon Sep 17 00:00:00 2001 From: Jakob Wennberg Date: Wed, 5 Aug 2026 17:30:13 +0200 Subject: [PATCH] feat(settings): WhatsApp brand mark on the WhatsApp settings page (#1418) The page had no visual signal that it configures a third-party channel, so it read like any other Accounted setting. Adds an inline-SVG WhatsApp mark next to the section title and on the button that opens WhatsApp (replacing the generic lucide chat bubble, which was standing in for a logo it is not). Inline SVG rather than a bundled asset: no network request, scales, and survives the CSP. SettingsSectionHeader gains an optional `mark` slot; every other settings tab is untouched and stays mark-less on purpose, so the rail does not turn into a sticker album. The green is the one place brand colour appears in settings, which matches the design rule that colour belongs to actors rather than chrome. Co-authored-by: Jakob Wennberg <311770904+jakobwennberg-oss@users.noreply.github.com> Co-authored-by: Claude Fable 5 --- .../extensions/general/WhatsAppLinkPanel.tsx | 5 ++- .../extensions/general/WhatsAppMark.tsx | 45 +++++++++++++++++++ components/settings/SettingsRows.tsx | 14 +++++- .../sections/WhatsAppSettingsContent.tsx | 7 ++- 4 files changed, 66 insertions(+), 5 deletions(-) create mode 100644 components/extensions/general/WhatsAppMark.tsx diff --git a/components/extensions/general/WhatsAppLinkPanel.tsx b/components/extensions/general/WhatsAppLinkPanel.tsx index c2c4f415..f5bf1268 100644 --- a/components/extensions/general/WhatsAppLinkPanel.tsx +++ b/components/extensions/general/WhatsAppLinkPanel.tsx @@ -12,7 +12,8 @@ import { useCallback, useEffect, useState } from 'react' import { useTranslations } from 'next-intl' -import { Loader2, MessageCircle, ExternalLink } from 'lucide-react' +import { Loader2, ExternalLink } from 'lucide-react' +import { WhatsAppMark } from '@/components/extensions/general/WhatsAppMark' import { Button } from '@/components/ui/button' import { useToast } from '@/components/ui/use-toast' import { useCompany } from '@/contexts/CompanyContext' @@ -206,7 +207,7 @@ export function WhatsAppLinkPanel() { {minted.waLink ? (