Skip to main content
Version: 4.38.0

feat-tower-download

✨ New Features​

Download files deposited by Tower​

Goal: Download a Tower deposit through Tower, including when neo already created a remotefile (fileKey).

Solution: No fileId → no download. Classic fileId → existing Box paths (SharePoint, Azure, GCP, BCYIP, Local). fileId marked Tower (tower, legacy FTP/TOWER, or bcyip:agent=iptower) plus towerUrl → {towerUrl}/api/v1/files/presign, then the download manager fetches the signed URL.

Files Modified:

  • src/utils/downloadHelpers.ts — Tower routing via tower / agent; presignTowerDownload
  • src/protocol/bcyipApi.ts — presign helper
  • src/components/SidebarTabs/Details.tsx — enable download for Tower; disable while loading
  • src/components/DocumentsPanel/interface.types.ts — optional fileId.tower

🐛 Bug Fixes​

Download file button spinner stuck after success​

Goal: Keep the Details button locked until the download finishes, without leaving the spinner stuck.

Solution: download-manager-start still waits for completion. The in-memory download manager updates sets with functional state so stop after await always clears the document id. The button is also disabled while loading to block stacked clicks.

Files Modified:

  • src/components/DocumentsPanel/utils/downloadManager.ts — immutable start/stop
  • src/components/SidebarTabs/Details.tsx — disabled while loading; ignore double-clicks
  • main/downloads/manager.mjs — await queue completion (unchanged contract)