Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client'

import { Button } from '@sim/emcn'
import { Chip } from '@sim/emcn'
import { useRouter } from 'next/navigation'
import { APP_ENTRY_PATH } from '@/lib/navigation/paths'

Expand All @@ -18,13 +18,15 @@ export function ChatErrorState({ error }: ChatErrorStateProps) {
Chat Unavailable
</h1>
<p className='text-[var(--text-muted)] text-lg'>{error}</p>
<Button
<Chip
variant='primary'
onClick={() => router.push(APP_ENTRY_PATH)}
className='h-[32px] w-full gap-2 px-2.5 text-sm'
fullWidth
type='button'
className='text-center'
>
Open Sim
</Button>
</Chip>
</div>
</div>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -781,17 +781,18 @@ export default function ResumeExecutionPage({
</div>
<Tooltip.Root>
<Tooltip.Trigger asChild>
<Button
<Chip
variant='outline'
size='sm'
type='button'
onClick={handleRefreshExecution}
disabled={refreshingExecution}
className='gap-1.5 px-2.5'
leftAdornment={
<RefreshCw className={cn('size-[14px]', refreshingExecution && 'animate-spin')} />
}
aria-label='Refresh execution details'
>
<RefreshCw className={cn('size-[14px]', refreshingExecution && 'animate-spin')} />
Refresh
</Button>
</Chip>
</Tooltip.Trigger>
<Tooltip.Content>Refresh</Tooltip.Content>
</Tooltip.Root>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client'

import { Button, ChipCombobox, ChipInput } from '@sim/emcn'
import { Chip, ChipCombobox, ChipInput } from '@sim/emcn'
import type { WorkflowSearchReplacementOption } from '@/lib/workflows/search-replace/types'

interface ReplacementControlsProps {
Expand Down Expand Up @@ -60,22 +60,22 @@ export function ReplacementControls({
{eligibleCount} replaceable match{eligibleCount === 1 ? '' : 'es'}
</span>
<div className='flex gap-1.5'>
<Button
className='h-8 text-xs'
variant='default'
<Chip
type='button'
variant='outline'
disabled={disabled || isApplying || !canReplaceActive}
onClick={onReplaceActive}
>
Replace
</Button>
<Button
className='h-8 text-xs'
variant='active'
</Chip>
<Chip
type='button'
active
disabled={disabled || isApplying || !canReplaceAll}
onClick={onReplaceAll}
>
{isApplying ? 'Replacing...' : 'Replace All'}
</Button>
</Chip>
</div>
</div>
</div>
Expand Down
Loading