improvement(ui): share knowledge upload rows - #8070
BillLeoutsakosvl346 wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
Before / after visual comparisonKnowledge upload rows share the row shell and action layout. The failed-upload example shows the retained red border/text and retry/remove actions. Left = before; right = after. Rendered component fixtures with application CSS and local data, rather than authenticated product-page screenshots. These are representative visual examples, not end-to-end behavior coverage. Current PR head checked at posting: The images in this section show the row extraction at Representative code changeBoth knowledge upload flows now render the same Before <div
className={cn(
'flex items-center gap-2 rounded-sm border p-2',
isFailed && !isRetrying && 'border-[var(--text-error)]'
)}
>After <KnowledgeUploadRow
key={`${file.name}-${file.size}`}
name={file.name}
size={formatFileSize(file.size)}
error={isFailed && !isRetrying}
processing={isProcessing}
disabled={isUploading}
onRemove={() => removeFile(index)}
onRetry={isFailed ? () => handleRetryFile(index) : undefined}
/>Follow-up icon-button change in the current headCommit Before <Button variant='ghost' className='size-4 p-0' onClick={onRetry} disabled={disabled}>
<RefreshCw className='size-3' />
</Button>After <Button variant='ghost' size='icon' onClick={onRetry} disabled={disabled}>
<RefreshCw className='size-3' />
</Button> |
Co-authored-by: Bill Leoutsakos <billleoutsakos@Mac.localdomain>
|
@greptileai review this PR |
|
@cubic-dev-ai review this PR |
@BillLeoutsakosvl346 I have started the AI code review. It will take a few minutes to complete. |



Summary
Type of Change
Testing
Checklist