Skip to content

Commit 38e24cb

Browse files
committed
feat(emcn): badge outline variant
1 parent d35f9d0 commit 38e24cb

File tree

4 files changed

+20
-13
lines changed

4 files changed

+20
-13
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel-new/components/copilot/components/user-input/components/mode-selector.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client'
22

3-
import { Check, MessageCircle, Package } from 'lucide-react'
3+
import { Bot, Check, MessageSquare } from 'lucide-react'
44
import { Badge } from '@/components/emcn'
55
import {
66
DropdownMenu,
@@ -35,9 +35,9 @@ interface ModeSelectorProps {
3535
export function ModeSelector({ mode, onModeChange, isNearTop, disabled }: ModeSelectorProps) {
3636
const getModeIcon = () => {
3737
if (mode === 'ask') {
38-
return <MessageCircle className='h-3 w-3 text-muted-foreground' />
38+
return <MessageSquare className='h-3 w-3' />
3939
}
40-
return <Package className='h-3 w-3 text-muted-foreground' />
40+
return <Bot className='h-3 w-3' />
4141
}
4242

4343
const getModeText = () => {
@@ -51,6 +51,7 @@ export function ModeSelector({ mode, onModeChange, isNearTop, disabled }: ModeSe
5151
<DropdownMenu>
5252
<DropdownMenuTrigger asChild>
5353
<Badge
54+
variant='outline'
5455
className={cn(
5556
'cursor-pointer rounded-[6px]',
5657
(disabled || !onModeChange) && 'cursor-not-allowed opacity-50'
@@ -78,7 +79,7 @@ export function ModeSelector({ mode, onModeChange, isNearTop, disabled }: ModeSe
7879
)}
7980
>
8081
<span className='flex items-center gap-1.5'>
81-
<MessageCircle className='h-3 w-3 text-muted-foreground' />
82+
<MessageSquare className='h-3 w-3 text-muted-foreground' />
8283
Ask
8384
</span>
8485
{mode === 'ask' && <Check className='h-3 w-3 text-muted-foreground' />}
@@ -104,7 +105,7 @@ export function ModeSelector({ mode, onModeChange, isNearTop, disabled }: ModeSe
104105
)}
105106
>
106107
<span className='flex items-center gap-1.5'>
107-
<Package className='h-3 w-3 text-muted-foreground' />
108+
<Bot className='h-3 w-3 text-muted-foreground' />
108109
Agent
109110
</span>
110111
{mode === 'agent' && <Check className='h-3 w-3 text-muted-foreground' />}

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel-new/components/copilot/components/user-input/components/model-selector.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function getModelIconComponent(modelValue: string) {
3939
if (!IconComponent) {
4040
return null
4141
}
42-
return <IconComponent className='h-3 w-3 text-muted-foreground' />
42+
return <IconComponent className='h-3 w-3' />
4343
}
4444

4545
/**
@@ -77,7 +77,7 @@ export function ModelSelector({
7777
}
7878
return (
7979
<span className='flex-shrink-0'>
80-
<IconComponent className='h-3 w-3 text-muted-foreground' />
80+
<IconComponent className='h-3 w-3' />
8181
</span>
8282
)
8383
}
@@ -91,7 +91,11 @@ export function ModelSelector({
9191
}}
9292
>
9393
<DropdownMenuTrigger asChild>
94-
<Badge className='min-w-0 max-w-full cursor-pointer rounded-[6px]' title='Choose model'>
94+
<Badge
95+
variant='outline'
96+
className='min-w-0 max-w-full cursor-pointer rounded-[6px]'
97+
title='Choose model'
98+
>
9599
{getModelIcon()}
96100
<span className='min-w-0 truncate'>
97101
{getCollapsedModeLabel()}

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel-new/components/copilot/components/user-input/user-input.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -906,15 +906,15 @@ const UserInput = forwardRef<UserInputRef, UserInputProps>(
906906
{/* Top Row: @ Button + Context Usage Pill */}
907907
<div className='mb-[6px] flex items-center justify-between'>
908908
<Badge
909+
variant='outline'
909910
onClick={handleOpenMentionMenuWithAt}
910911
title='Insert @'
911912
className={cn(
912-
'radius-[6px] cursor-pointer border border-[#575757] bg-transparent dark:border-[#575757] dark:bg-transparent',
913-
(disabled || isLoading) && 'cursor-not-allowed',
914-
'rounded-[6px] p-[4.5px]'
913+
'cursor-pointer rounded-[6px] p-[4.5px]',
914+
(disabled || isLoading) && 'cursor-not-allowed'
915915
)}
916916
>
917-
<AtSign className='h-3 w-3' strokeWidth={1.25} />
917+
<AtSign className='h-3 w-3' strokeWidth={1.75} />
918918
</Badge>
919919

920920
{/* Context Usage Pill */}

apps/sim/components/emcn/components/badge.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ import { cva, type VariantProps } from 'class-variance-authority'
33
import { cn } from '@/lib/utils'
44

55
const badgeVariants = cva(
6-
'inline-flex items-center px-[9px] py-[2.5px] text-[13px] font-medium gap-[4px] rounded-[40px] focus:outline-none transition-colors',
6+
'inline-flex items-center px-[9px] py-[2.25px] text-[13px] font-medium gap-[4px] rounded-[40px] focus:outline-none transition-colors',
77
{
88
variants: {
99
variant: {
1010
default:
1111
'bg-[#272727] text-[#B1B1B1] dark:bg-[#272727] dark:text-[#B1B1B1] hover:text-[#E6E6E6] dark:hover:text-[#E6E6E6]',
12+
outline:
13+
'border border-[#575757] bg-transparent text-[#B1B1B1] dark:border-[#575757] dark:bg-transparent dark:text-[#B1B1B1] hover:text-[#E6E6E6] dark:hover:text-[#E6E6E6]',
1214
},
1315
},
1416
defaultVariants: {

0 commit comments

Comments
 (0)