Skip to content

feat(files): improve the Files panel with transfer cards and an upload picker - #19

Merged
RoversX merged 7 commits into
RoversX:mainfrom
Mirr0ch1:feat/download-progress-card
Nov 8, 2026
Merged

RoversX merged 7 commits into
RoversX:mainfrom
Mirr0ch1:feat/download-progress-card

Conversation

@Mirr0ch1

@Mirr0ch1 Mirr0ch1 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The Files panel's transfer strip was the only place a remote download or upload reported itself: one narrow row at the bottom of the panel. A long file name ellipsized the percentage away, the finished "Saved to …" / "Uploaded" line was easy to miss, and closing the panel hid the transfer entirely. The panel also had no visible upload action, and its Refresh button had no hover label.

What changed

This PR is now the Files-panel improvement set: download cards, upload cards, an upload button with a native picker, and header tooltips.

Transfer cards

  • The Files strip does not paint download or upload rows; it keeps deletes and local copies. A download or upload's progress, completion and failure are on a floating card only.
  • The card sits in the window's own bottom-right corner, over the right sidebar when that is open. While the sidebar is open the card is kept within the sidebar's width so it does not reach into the terminal; a narrow sidebar stacks buttons instead of squeezing them.
  • Running: file name, percentage, bytes transferred of total (or items done of total for a folder), a bar, and Cancel. Folders show "Preparing…" with an indeterminate bar until their walk finishes.
  • Download success: green check, name, size/item count, saved folder (~/Downloads), Open File (or Open Folder) and Open Download Folder. Twelve-second auto-dismiss; hover, menus and app focus pause it; the close button dismisses at once.
  • Upload success: green check, name, size/item count, the remote folder, and Copy Path. Same dismiss rules; the card keeps the full remote path for the clipboard.
  • Failure: a persistent red card with the name and error, plus Retry when the hidden transfer row kept a source and host. A cancel the user asked for raises nothing.
  • The card's whole surface swallows clicks; only its buttons act, so clicking the name/progress/message no longer selects a file or opens a preview underneath.
  • A live transfer outranks a finished notice when more than three cards compete for the corner.

Upload button and picker

  • A new Upload icon button sits to the right of the Files filter and left of Refresh, using the same icon-button style and size. Its hover label is Upload Files/Folders.
  • Before the system picker opens, the button asks where: a menu shows Upload to /path… (macOS), or Upload Files to /path… / Upload Folder to /path… on platforms whose native dialogs cannot combine files and folders. Click a folder in the tree to select it first; a selected file means its parent, and nothing selected means the tree root.
  • Refresh now has the hover label Refresh Directory Information, for both the local and remote trees.
  • The picker supports multiple selections and both kinds of path where the platform can:
    • macOS: one NSOpenPanel with files and directories enabled together.
    • Windows/Linux: the native dialogs have one mode (files or folders), so the button opens an Upload Files… / Upload Folder… menu first; each opens the native picker in that mode. Multiple files are supported.
  • Selected paths upload to the selected remote directory, the parent of a selected file, or the tree root when nothing is selected.
  • The host is re-checked after the picker closes; a selection is never replayed against a different host.
  • Folder uploads keep the existing size confirmation.

Follow-up fixes from the first macOS preview

  • A Finder drop started uploading before the card appeared: the card hid itself whenever the process-wide focus flag was false, and that flag lags a drop from Finder. Running cards are now painted regardless of focus; completed notices still wait. Accepting a drop also focuses the window.
  • Clicking a folder expanded it without selecting it, so the Upload button always fell back to the tree root. Directory clicks now select the folder too, and the button asks for the destination before opening the picker.
  • Scrolling the remote tree covered the header with its mask and repainted only Filter and Refresh. The Upload button is repainted in the same pass and stays visible.

Testing

Notes

  • In-app only, matching the chosen design; no OS notification.
  • Cards are hidden while a context menu, command palette or modal is open, and pause their countdown then.
  • Failure cards persist until closed or retried; success cards auto-dismiss after twelve seconds.
  • Upload success ends with Copy Path rather than an Open action: a remote path has no local application to open.
  • The transfer strip remains the compact history for deletes and local copies.

A remote download reported itself only in the Files panel's transfer strip:
one narrow row at the bottom of the panel, with the file name and status on
the same line. A long name ellipsized the percentage away, so the only
visible sign of progress was a spinner, and the finished line was easy to
miss. Closing the panel or switching it to another mode hid the transfer
entirely.

Put the transfer in a floating card in the window's bottom-right corner,
where the update capsule already lives:

- While a file or folder is coming down, the card shows its name, the
  percentage and bytes (or items, for a folder), and a bar. The card does
  not need the Files panel to be open and stays out of the right sidebar's
  way when it is.
- On success the same card becomes the completion notice: a green check,
  the name, its size or item count, where it was saved, and two icon+text
  buttons that open the file/folder or the download folder. It stays for
  twelve seconds, pausing while the pointer is over it, while a menu is
  open, or while the app is unfocused; a close button dismisses it at once.
- Failures appear in the same card without the open buttons. A cancel the
  user asked for does not raise a failure card. A live transfer outranks a
  finished notice when more than three cards compete for the corner.
- Record each download's destination on its transfer. A single file's path
  is known when it is reserved; a folder's free name is only reserved after
  its walk, so it arrives with the result.

The Files panel's strip stays as the compact history; the card is the
visible progress and the actionable completion notice.
…indow corner

The first cut left the Files panel's download row in place and shifted the
new card left of the right sidebar. A download therefore showed two progress
UIs at once, and the card covered the terminal area instead of the corner the
user asked for.

- Exclude downloads from the transfer strip. It keeps uploads, deletes and
  local copies; the card is now the only place a download reports progress,
  completion or failure.
- Pin the card to the window's own bottom-right corner. It overlays the right
  sidebar when that is open, and no longer hides when the sidebar is
  hover-revealed.
- Give a failed download a persistent card with a Retry button when its row
  kept a source and host. A failure that happened before the transfer started
  now gets a card too. A cancel the user asked for still raises nothing.
@Mirr0ch1
Mirr0ch1 force-pushed the feat/download-progress-card branch from 0410440 to 902445b Compare October 27, 2026 08:46
The card only registered its buttons as UI items, so a click on the name,
progress bar, message or padding matched nothing and went to the file tree
or terminal underneath. Clicking what looked like an inert card could
select a file or open a preview in the panel behind it.

- Register the card's whole surface as a hit target. It is pushed before the
  buttons, so the reverse-order hit test still gives the buttons priority.
- Keep the arrow cursor over that surface; buttons still show a hand.
@Mirr0ch1 Mirr0ch1 changed the title feat(files): show remote downloads in a floating progress card feat(files): replace the download strip with a floating progress card Oct 27, 2026
@Mirr0ch1

Copy link
Copy Markdown
Contributor Author

Follow-up from testing:

  • v2: downloads now leave the Files strip entirely; the card moved to the window's own bottom-right corner, width-constrained to the open sidebar; failure cards persist with Retry.
  • v3: the card's whole surface swallows clicks, so clicking its empty area no longer selects or opens a file underneath.

Latest code: c8406862.

macOS arm64 preview build (run 40484660145) succeeded, and manual testing passed for download/completion, folder download, cancel, failure/retry, and the click-through fix.

Uploads reported themselves in the same narrow strip as downloads, so they
had the same problems: a long name hid the percentage, and the finished
"Uploaded" row was easy to miss. Give them the floating card too.

- Generalise the transfer card to downloads and uploads. Running uploads
  show the name, percentage/bytes or items, a bar and Cancel; successful
  uploads show the size/item count, the remote folder, and Copy Path;
  failures persist with Retry when the row kept a source and host.
- Remove downloads and uploads from the Files strip entirely. It keeps
  deletes and local copies; the cards are the only transfer UI.
- Add an Upload button beside the Files filter, left of Refresh, using the
  same icon-button style and size. Its tooltip is "Upload Files/Folders";
  Refresh now has "Refresh Directory Information".
- Add a native path picker. macOS can select files and folders together in
  one NSOpenPanel; Windows and Linux native dialogs cannot, so the button
  offers an Upload Files… / Upload Folder… menu there. Selections upload to
  the selected directory, a selected file's parent, or the tree root, and
  the host is re-checked after the picker closes.
- Multiple files and folders are supported; folder uploads keep the
  existing size confirmation.
@Mirr0ch1 Mirr0ch1 changed the title feat(files): replace the download strip with a floating progress card feat(files): improve the Files panel with transfer cards and an upload picker Oct 27, 2026
…e header fixed

Three issues from testing the preview:

- A Finder drop started uploading before the card was visible: the card
  hidden itself whenever the process-wide focus flag was false, and that
  flag lags a drag from Finder. Keep running cards visible regardless of
  focus; only completed notices wait to be looked at. Also focus the window
  when it accepts a drop.
- The Upload button silently used the tree root unless a FILE was selected;
  clicking a folder expanded it without selecting it. Select directories on
  click too, and make the button ask first: a menu shows the destination
  ("Upload to /path…", or files/folder choices on platforms without a
  combined picker) before opening the system picker.
- Scrolling the remote tree covered the header with its mask and repainted
  only Filter and Refresh. Repaint the Upload button in the same pass.
@Mirr0ch1

Copy link
Copy Markdown
Contributor Author

Combined preview package for testing all open fork PRs:

This build also contains the three follow-up fixes: immediate running cards on Finder drops, an explicit upload-destination menu, and the upload button staying visible while the tree scrolls.

@Mirr0ch1

Copy link
Copy Markdown
Contributor Author

Preview package 0.3.7-preview2 is built.

It includes all six open fork PRs: #15, #16, #18, #19, #21 (CodeBuddy/OMP tab icons), #22 (six app icon themes), plus the three follow-up file-panel fixes.

macOS arm64 build: run 40567156040, success in 34m46s. Bundle version: 0.3.7-preview2.

@Mirr0ch1

Copy link
Copy Markdown
Contributor Author

Preview package 0.3.7-preview3 is built.

It includes all six open fork PRs: #15, #16, #18, #19, #21, and the updated #22 (seven app icon themes: Capsules / Dawn / Ivory / Ligature / Nordic / Pure / Split). The old six-theme set from preview2 was replaced, not layered on top.

macOS arm64 build: run 40668715087, success in 36m8s. Bundle version: 0.3.7-preview3.

@RoversX
RoversX merged commit 4191a1d into RoversX:main Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants