Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
b546113
feat(files): add inline file viewer with text editing and create file…
waleedlatif1 Mar 9, 2026
4e2c770
improvement(files): add UX polish, PR review fixes, and context menu
waleedlatif1 Mar 9, 2026
999ff71
fix(files): propagate save errors and remove redundant sizeDiff
waleedlatif1 Mar 9, 2026
4860b11
fix(files): remove unused textareaRef
waleedlatif1 Mar 9, 2026
59afa54
fix(files): move Cmd+S to parent, add save error feedback, hide save …
waleedlatif1 Mar 9, 2026
bed055c
improvement(files): add save tooltip, deduplicate text-editable exten…
waleedlatif1 Mar 9, 2026
ad9bd5d
refactor: extract isMacPlatform to shared utility
waleedlatif1 Mar 9, 2026
493e30d
refactor(files): deduplicate delete modal, use shared formatFileSize
waleedlatif1 Mar 9, 2026
bfbb112
fix(files): fix a11y label lint error and remove mutation object from…
waleedlatif1 Mar 9, 2026
7d84bc6
fix(files): add isDirty guard on handleSave, return proper HTTP statu…
waleedlatif1 Mar 9, 2026
2ba0683
fix(files): reset isDirty/saveStatus on delete and discard, remove de…
waleedlatif1 Mar 9, 2026
6986b5b
fix(files): prevent concurrent saves on rapid Cmd+S, add YAML MIME types
waleedlatif1 Mar 9, 2026
076f984
refactor(files): reuse shared extension constants, parallelize cancel…
waleedlatif1 Mar 9, 2026
4de9bde
fix(files): guard handleCreate against duplicate calls while pending
waleedlatif1 Mar 9, 2026
53ec2bb
fix(files): show upload progress on the Upload button, not New file
waleedlatif1 Mar 9, 2026
749227c
fix(files): use ref-based guard for create pending state to avoid sta…
waleedlatif1 Mar 9, 2026
fd0081f
cleanup(files): use shared icon import, remove no-op props, wrap hand…
waleedlatif1 Mar 9, 2026
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
Prev Previous commit
Next Next commit
fix(files): show upload progress on the Upload button, not New file
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
  • Loading branch information
waleedlatif1 and claude committed Mar 9, 2026
commit 53ec2bbffcaa9bcd53aae2dd0693a9f707c10b7d
8 changes: 4 additions & 4 deletions apps/sim/app/workspace/[workspaceId]/files/files.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -487,20 +487,20 @@ export function Files() {
)
}

const uploadLabel =
const uploadButtonLabel =
uploading && uploadProgress.total > 0
? `${uploadProgress.completed}/${uploadProgress.total}`
: uploading
? 'Uploading...'
: 'New file'
: 'Upload'

return (
<>
<Resource
icon={FilesIcon}
title='Files'
create={{
label: uploadLabel,
label: 'New file',
onClick: () => setCreateModalOpen(true),
disabled: uploading || userPermissions.canEdit !== true,
}}
Expand All @@ -520,7 +520,7 @@ export function Files() {
disabled={uploading || userPermissions.canEdit !== true}
>
<Upload className='mr-[6px] h-[14px] w-[14px]' />
Upload
{uploadButtonLabel}
</Button>
}
columns={COLUMNS}
Expand Down