fix(ui): show empty folders as move and download destinations (#999)

This commit is contained in:
Will Miao
2026-08-23 21:09:16 +08:00
parent 030a32f8fa
commit c2360a35ad
12 changed files with 630 additions and 19 deletions
@@ -92,6 +92,12 @@ describe('MoveManager', () => {
expect(moveManager.folderTreeManager.getSelectedPath()).toBe('');
});
it('should fetch the folder tree including empty directories', async () => {
await moveManager.initializeFolderTree();
expect(mockApiClient.fetchUnifiedFolderTree).toHaveBeenCalledWith({ includeEmpty: true });
});
it('should ignore manual folder selection when useDefaultPath is true', async () => {
// Setup state
moveManager.useDefaultPath = true;