Skip to content

Commit 1a4afbe

Browse files
cursoragentmsukkari
andcommitted
feat(web): use Sourcebot branded logo with dark/light mode support in OAuth consent screen
Replace generic logo_512.png with proper sb_logo_dark_small.png and sb_logo_light_small.png assets on the MCP integration OAuth consent screen. - Shows dark logo variant in dark mode - Shows light logo variant in light mode - Consistent with logo usage in other parts of the app Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com>
1 parent 2fa86ff commit 1a4afbe

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

packages/web/src/app/oauth/authorize/components/consentScreen.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { LoadingButton } from '@/components/ui/loading-button';
55
import { isServiceError } from '@/lib/utils';
66
import { ClientIcon } from './clientIcon';
77
import Image from 'next/image';
8-
import logo from '@/public/logo_512.png';
8+
import logoDark from '@/public/sb_logo_dark_small.png';
9+
import logoLight from '@/public/sb_logo_light_small.png';
910
import { useEffect, useState } from 'react';
1011
import useCaptureEvent from '@/hooks/useCaptureEvent';
1112
import { useToast } from '@/components/hooks/use-toast';
@@ -77,11 +78,18 @@ export function ConsentScreen({
7778
<path strokeLinecap="round" strokeLinejoin="round" d="M8 7h8m0 0-3-3m3 3-3 3M16 17H8m0 0 3 3m-3-3 3-3" />
7879
</svg>
7980
<Image
80-
src={logo}
81+
src={logoDark}
8182
alt="Sourcebot"
8283
width={70}
8384
height={70}
84-
className="shrink-0 rounded-xl object-cover"
85+
className="shrink-0 rounded-xl object-cover hidden dark:block"
86+
/>
87+
<Image
88+
src={logoLight}
89+
alt="Sourcebot"
90+
width={70}
91+
height={70}
92+
className="shrink-0 rounded-xl object-cover block dark:hidden"
8593
/>
8694
</div>
8795

0 commit comments

Comments
 (0)