Skip to content

Commit ecdb133

Browse files
authored
improvement(creds): bulk paste functionality, save notification, error notif (#3328)
* improvement(creds): bulk paste functionality, save notification, error notif * use effect anti patterns * fix add to cursor button * fix(attio): wrap webhook body in data object and include required filter field * fixed and tested attio webhook lifecycle
1 parent d06459f commit ecdb133

File tree

12 files changed

+575
-246
lines changed

12 files changed

+575
-246
lines changed

apps/sim/app/chat/components/input/input.tsx

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import type React from 'react'
44
import { useEffect, useRef, useState } from 'react'
55
import { motion } from 'framer-motion'
6-
import { AlertCircle, Paperclip, Send, Square, X } from 'lucide-react'
7-
import { Tooltip } from '@/components/emcn'
6+
import { Paperclip, Send, Square, X } from 'lucide-react'
7+
import { Badge, Tooltip } from '@/components/emcn'
88
import { VoiceInput } from '@/app/chat/components/input/voice-input'
99

1010
const logger = createLogger('ChatInput')
@@ -218,24 +218,12 @@ export const ChatInput: React.FC<{
218218
<div ref={wrapperRef} className='w-full max-w-3xl md:max-w-[748px]'>
219219
{/* Error Messages */}
220220
{uploadErrors.length > 0 && (
221-
<div className='mb-3'>
222-
<div className='rounded-lg border border-red-200 bg-red-50 p-3 dark:border-red-800/50 dark:bg-red-950/20'>
223-
<div className='flex items-start gap-2'>
224-
<AlertCircle className='mt-0.5 h-4 w-4 shrink-0 text-red-600 dark:text-red-400' />
225-
<div className='flex-1'>
226-
<div className='mb-1 font-medium text-red-800 text-sm dark:text-red-300'>
227-
File upload error
228-
</div>
229-
<div className='space-y-1'>
230-
{uploadErrors.map((error, idx) => (
231-
<div key={idx} className='text-red-700 text-sm dark:text-red-400'>
232-
{error}
233-
</div>
234-
))}
235-
</div>
236-
</div>
237-
</div>
238-
</div>
221+
<div className='mb-3 flex flex-col gap-2'>
222+
{uploadErrors.map((error, idx) => (
223+
<Badge key={idx} variant='red' size='lg' dot className='max-w-full'>
224+
{error}
225+
</Badge>
226+
))}
239227
</div>
240228
)}
241229

apps/sim/app/workspace/[workspaceId]/knowledge/[id]/[documentId]/components/document-tags-modal/document-tags-modal.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import { useCallback, useEffect, useState } from 'react'
44
import { createLogger } from '@sim/logger'
55
import {
6+
Badge,
67
Button,
78
Combobox,
89
DatePicker,
@@ -706,12 +707,10 @@ export function DocumentTagsModal({
706707
(def) =>
707708
def.displayName.toLowerCase() === editTagForm.displayName.toLowerCase()
708709
) && (
709-
<div className='rounded-[4px] border border-amber-500/50 bg-amber-500/10 p-[8px]'>
710-
<p className='text-[11px] text-amber-600 dark:text-amber-400'>
711-
Maximum tag definitions reached. You can still use existing tag
712-
definitions, but cannot create new ones.
713-
</p>
714-
</div>
710+
<Badge variant='amber' size='lg' dot className='max-w-full'>
711+
Maximum tag definitions reached. You can still use existing tag definitions,
712+
but cannot create new ones.
713+
</Badge>
715714
)}
716715

717716
<div className='flex gap-[8px]'>

0 commit comments

Comments
 (0)