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 viatower/ agent;presignTowerDownloadsrc/protocol/bcyipApi.ts— presign helpersrc/components/SidebarTabs/Details.tsx— enable download for Tower; disable while loadingsrc/components/DocumentsPanel/interface.types.ts— optionalfileId.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/stopsrc/components/SidebarTabs/Details.tsx— disabled while loading; ignore double-clicksmain/downloads/manager.mjs— await queue completion (unchanged contract)