Skip to content

Commit def0a3a

Browse files
committed
improvement(ui): modal style standardization, select drop improvement
1 parent 5de7228 commit def0a3a

File tree

6 files changed

+13
-27
lines changed

6 files changed

+13
-27
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/deploy/components/deploy-modal/components/a2a/a2a.tsx

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import {
1111
ButtonGroupItem,
1212
Checkbox,
1313
Code,
14-
Combobox,
15-
type ComboboxOption,
1614
Input,
1715
Label,
1816
TagInput,
@@ -271,14 +269,6 @@ export function A2aDeploy({
271269
onNeedsRepublishChange?.(!!needsRepublish)
272270
}, [needsRepublish, onNeedsRepublishChange])
273271

274-
const authSchemeOptions: ComboboxOption[] = useMemo(
275-
() => [
276-
{ label: 'API Key', value: 'apiKey' },
277-
{ label: 'None (Public)', value: 'none' },
278-
],
279-
[]
280-
)
281-
282272
const canSave = name.trim().length > 0 && description.trim().length > 0
283273
useEffect(() => {
284274
onCanSaveChange?.(canSave)
@@ -758,17 +748,18 @@ console.log(data);`
758748
/>
759749
</div>
760750

761-
{/* Authentication */}
751+
{/* Access */}
762752
<div>
763753
<Label className='mb-[6.5px] block pl-[2px] font-medium text-[13px] text-[var(--text-primary)]'>
764-
Authentication
754+
Access
765755
</Label>
766-
<Combobox
767-
options={authSchemeOptions}
756+
<ButtonGroup
768757
value={authScheme}
769-
onChange={(v) => setAuthScheme(v as AuthScheme)}
770-
placeholder='Select authentication...'
771-
/>
758+
onValueChange={(value) => setAuthScheme(value as AuthScheme)}
759+
>
760+
<ButtonGroupItem value='apiKey'>API Key</ButtonGroupItem>
761+
<ButtonGroupItem value='none'>Public</ButtonGroupItem>
762+
</ButtonGroup>
772763
<p className='mt-[6.5px] text-[11px] text-[var(--text-secondary)]'>
773764
{authScheme === 'none'
774765
? 'Anyone can call this agent without authentication'

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/deploy/components/deploy-modal/components/chat/chat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ export function ChatDeploy({
424424
>
425425
Cancel
426426
</Button>
427-
<Button variant='default' onClick={handleDelete} disabled={isDeleting}>
427+
<Button variant='destructive' onClick={handleDelete} disabled={isDeleting}>
428428
{isDeleting ? 'Deleting...' : 'Delete'}
429429
</Button>
430430
</ModalFooter>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ export function AccessControl() {
10781078
</ModalBody>
10791079
<ModalFooter>
10801080
<Button
1081-
variant='default'
1081+
variant='destructive'
10821082
onClick={() => {
10831083
setShowUnsavedChanges(false)
10841084
setShowConfigModal(false)

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -321,12 +321,7 @@ export function BYOK() {
321321
<Button variant='default' onClick={() => setDeleteConfirmProvider(null)}>
322322
Cancel
323323
</Button>
324-
<Button
325-
variant='primary'
326-
onClick={handleDelete}
327-
disabled={deleteKey.isPending}
328-
className='!bg-[var(--brand-tertiary-2)] !text-[var(--text-inverse)] hover:!bg-[var(--brand-tertiary-2)]/90'
329-
>
324+
<Button variant='destructive' onClick={handleDelete} disabled={deleteKey.isPending}>
330325
{deleteKey.isPending ? 'Deleting...' : 'Delete'}
331326
</Button>
332327
</ModalFooter>

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='ghost'
337+
variant='destructive'
338338
onClick={handleDeleteKey}
339339
disabled={deleteKeyMutation.isPending}
340340
>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ export function EnvironmentVariables({ registerBeforeLeaveHandler }: Environment
831831
</p>
832832
</ModalBody>
833833
<ModalFooter>
834-
<Button variant='default' onClick={handleCancel}>
834+
<Button variant='destructive' onClick={handleCancel}>
835835
Discard Changes
836836
</Button>
837837
{hasConflicts || hasInvalidKeys ? (

0 commit comments

Comments
 (0)