Skip to content
Open
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
10 changes: 3 additions & 7 deletions apps/sim/app/workspace/[workspaceId]/files/files.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import {
Button,
Chip,
ChipCombobox,
ChipConfirmModal,
Columns2,
Expand Down Expand Up @@ -2057,13 +2057,9 @@ function FilesContent() {
</div>
)}
{hasActiveFilters && (
<Button
variant='ghost'
onClick={clearFileFilters}
className='h-[32px] w-full text-caption hover-hover:bg-[var(--surface-active)]'
>
<Chip fullWidth onClick={clearFileFilters} className='text-center'>
Clear all filters
</Button>
</Chip>
Comment thread
BillLeoutsakosvl346 marked this conversation as resolved.
)}
</div>
)
Expand Down
10 changes: 6 additions & 4 deletions apps/sim/app/workspace/[workspaceId]/logs/logs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
import {
Button,
Calendar,
Chip,
ChipCombobox,
type ComboboxOption,
cn,
Expand Down Expand Up @@ -1584,13 +1585,14 @@ function LogsFilterPanel({ searchQuery, onSearchQueryChange }: LogsFilterPanelPr
</div>

{filtersActive && (
<Button
variant='active'
<Chip
variant='border-shadow'
fullWidth
onClick={handleClearFilters}
className='h-[32px] w-full rounded-md'
className='text-center'
>
Clear All Filters
</Button>
</Chip>
)}
</div>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -443,9 +443,8 @@ export function Admin() {
Page {currentPage} of {totalPages} ({usersData.total} users)
</span>
<div className='flex gap-1'>
<Button
variant='active'
className='h-[28px] text-caption'
<Chip
variant='border-shadow'
onClick={() =>
setAdminParams((prev) => ({
offset: Math.max(0, prev.offset - PAGE_SIZE),
Expand All @@ -454,17 +453,16 @@ export function Admin() {
disabled={usersOffset === 0 || usersLoading}
>
Previous
</Button>
<Button
variant='active'
className='h-[28px] text-caption'
</Chip>
<Chip
variant='border-shadow'
onClick={() =>
setAdminParams((prev) => ({ offset: prev.offset + PAGE_SIZE }))
}
disabled={usersOffset + PAGE_SIZE >= (usersData?.total ?? 0) || usersLoading}
>
Next
</Button>
</Chip>
</div>
</div>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { useCallback, useMemo, useState } from 'react'
import {
Badge,
Button,
Chip,
ChipCopyInput,
ChipInput,
ChipModalTabs,
Expand Down Expand Up @@ -434,14 +434,13 @@ function LicensesTab({ environment }: { environment: MothershipEnv }) {
className='w-[160px]'
/>
</div>
<Button
<Chip
variant='primary'
className='h-[32px]'
onClick={handleGenerate}
disabled={generateLicense.isPending || !newName.trim()}
>
{generateLicense.isPending ? 'Generating...' : 'Generate'}
</Button>
</Chip>
</div>

{generatedKey && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@

import type React from 'react'
import { useEffect, useMemo, useRef, useState } from 'react'
import { Button, cn, OverflowText, Tooltip } from '@sim/emcn'
import {
Chip,
chipBorderShadowRing,
chipContentLabelClass,
chipGeometryClass,
cn,
OverflowText,
Tooltip,
} from '@sim/emcn'
import { ArrowLeft } from '@sim/emcn/icons'
import { redactApiKeys } from '@/lib/core/security/redaction'
import { PreviewEditor } from '@/app/workspace/[workspaceId]/w/components/preview/components/preview-editor'
Expand Down Expand Up @@ -295,23 +303,21 @@ export function Preview({
<div className='absolute top-3 left-[12px] z-20 flex items-center gap-1.5'>
<Tooltip.Root>
<Tooltip.Trigger asChild>
<Button
variant='ghost'
onClick={handleGoBack}
className='flex h-[28px] gap-[5px] rounded-md border border-[var(--border)] bg-[var(--surface-2)] px-2.5 shadow-xs hover-hover:bg-[var(--surface-4)]'
>
<ArrowLeft className='size-[12px]' />
<span className='text-caption'>Back</span>
</Button>
<Chip variant='border-shadow' leftIcon={ArrowLeft} onClick={handleGoBack}>
Comment thread
BillLeoutsakosvl346 marked this conversation as resolved.
Back
</Chip>
</Tooltip.Trigger>
<Tooltip.Content side='bottom'>Go back to parent workflow</Tooltip.Content>
</Tooltip.Root>
{currentWorkflowName && (
<div className='flex h-[28px] max-w-[200px] items-center rounded-md border border-[var(--border)] bg-[var(--surface-2)] px-2.5 shadow-xs'>
<OverflowText
label={currentWorkflowName}
className='text-[var(--text-secondary)] text-caption'
/>
<div
className={cn(
chipGeometryClass,
chipBorderShadowRing,
'inline-flex max-w-[200px] bg-[var(--surface-2)]'
)}
>
<OverflowText label={currentWorkflowName} className={chipContentLabelClass} />
</div>
)}
</div>
Expand Down
Loading