From 7e48d704113e8e06fa69458df15ed7a0efba634b Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Sun, 22 Mar 2026 00:40:02 +0100 Subject: [PATCH] fix: use real Slack and Discord brand icons in report schedule modal Replaced generic WebhooksLogo with actual Slack SVG (pink) and SiDiscord (blurple) in both the channel selector and the report list. --- app/sites/[id]/settings/page.tsx | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/app/sites/[id]/settings/page.tsx b/app/sites/[id]/settings/page.tsx index f3d5f85..4672977 100644 --- a/app/sites/[id]/settings/page.tsx +++ b/app/sites/[id]/settings/page.tsx @@ -32,6 +32,25 @@ import { ZapIcon, } from '@ciphera-net/ui' import { PaperPlaneTilt, Envelope, WebhooksLogo, SpinnerGap, Trash, PencilSimple, Play, Plugs, ShieldCheck } from '@phosphor-icons/react' +import { SiDiscord } from '@icons-pack/react-simple-icons' + +function SlackIcon({ size = 16, color = '#4A154B' }: { size?: number; color?: string }) { + return +} + +const CHANNEL_ICONS: Record = { + email: , + slack: , + discord: , + webhook: , +} + +const CHANNEL_ICONS_LG: Record = { + email: , + slack: , + discord: , + webhook: , +} const TIMEZONES = [ 'UTC', @@ -1320,12 +1339,8 @@ export default function SiteSettingsPage() { >
-
- {schedule.channel === 'email' ? ( - - ) : ( - - )} +
+ {CHANNEL_ICONS_LG[schedule.channel] || }
@@ -1883,7 +1898,7 @@ export default function SiteSettingsPage() { : 'border-neutral-200 dark:border-neutral-700 text-neutral-600 dark:text-neutral-400 hover:bg-neutral-50 dark:hover:bg-neutral-800' }`} > - {ch === 'email' ? : } + {CHANNEL_ICONS[ch]} {getChannelLabel(ch)} ))}