Skip to content

Commit 22e7506

Browse files
committed
cleaned up UI
1 parent eba43d2 commit 22e7506

File tree

15 files changed

+884
-845
lines changed

15 files changed

+884
-845
lines changed

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/settings-modal/components/access-control/access-control.tsx

Lines changed: 600 additions & 542 deletions
Large diffs are not rendered by default.

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/settings-modal/components/api-keys/api-keys.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ export function ApiKeys({ onOpenChange, registerCloseHandler }: ApiKeysProps) {
631631
Cancel
632632
</Button>
633633
<Button
634-
variant='destructive'
634+
variant='ghost'
635635
onClick={handleDeleteKey}
636636
disabled={deleteApiKeyMutation.isPending}
637637
>

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/settings-modal/components/byok/byok.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,14 @@ export function BYOK() {
193193
<div className='flex min-w-0 flex-col justify-center gap-[1px]'>
194194
<span className='font-medium text-[14px]'>{provider.name}</span>
195195
<p className='truncate text-[13px] text-[var(--text-muted)]'>
196-
{existingKey ? existingKey.maskedKey : provider.description}
196+
{provider.description}
197197
</p>
198198
</div>
199199
</div>
200200

201201
{existingKey ? (
202202
<div className='flex flex-shrink-0 items-center gap-[8px]'>
203-
<Button variant='ghost' onClick={() => openEditModal(provider.id)}>
203+
<Button variant='default' onClick={() => openEditModal(provider.id)}>
204204
Update
205205
</Button>
206206
<Button

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/settings-modal/components/copilot/copilot.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ export function Copilot() {
334334
Cancel
335335
</Button>
336336
<Button
337-
variant='destructive'
337+
variant='ghost'
338338
onClick={handleDeleteKey}
339339
disabled={deleteKeyMutation.isPending}
340340
>

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/settings-modal/components/credential-sets/credential-sets.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,11 +1018,11 @@ export function CredentialSets() {
10181018
</div>
10191019
</div>
10201020
<div className='flex items-center gap-[8px]'>
1021-
<Button variant='ghost' onClick={() => setViewingSet(set)}>
1021+
<Button variant='default' onClick={() => setViewingSet(set)}>
10221022
Details
10231023
</Button>
10241024
<Button
1025-
variant='destructive'
1025+
variant='ghost'
10261026
onClick={() => handleDeleteClick(set)}
10271027
disabled={deletingSetIds.has(set.id)}
10281028
>

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/settings-modal/components/custom-tools/custom-tools.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,11 @@ export function CustomTools() {
159159
)}
160160
</div>
161161
<div className='flex flex-shrink-0 items-center gap-[8px]'>
162-
<Button variant='ghost' onClick={() => setEditingTool(tool.id)}>
162+
<Button variant='default' onClick={() => setEditingTool(tool.id)}>
163163
Edit
164164
</Button>
165165
<Button
166-
variant='destructive'
166+
variant='ghost'
167167
onClick={() => handleDeleteClick(tool.id)}
168168
disabled={deletingTools.has(tool.id)}
169169
>

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/settings-modal/components/mcp/components/formatted-input/formatted-input.tsx

Lines changed: 0 additions & 66 deletions
This file was deleted.

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/settings-modal/components/mcp/components/header-row/header-row.tsx

Lines changed: 0 additions & 81 deletions
This file was deleted.
Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,2 @@
11
export { FormField } from './form-field/form-field'
2-
export { FormattedInput } from './formatted-input/formatted-input'
3-
export { HeaderRow } from './header-row/header-row'
42
export { McpServerSkeleton } from './mcp-server-skeleton/mcp-server-skeleton'
5-
export { formatTransportLabel, ServerListItem } from './server-list-item/server-list-item'
6-
export type {
7-
EnvVarDropdownConfig,
8-
HeaderEntry,
9-
InputFieldType,
10-
McpServerFormData,
11-
McpServerTestResult,
12-
} from './types'

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/settings-modal/components/mcp/components/server-list-item/server-list-item.tsx

Lines changed: 0 additions & 76 deletions
This file was deleted.

0 commit comments

Comments
 (0)