feat(ui): merge 'Add to list' into 'Add to queue' and fix display bugs

- Remove 'Add to list' function from UI and state store
- Replace 'Add to...' button with 'Add to queue' menu in AddDownloadsModal
- Prevent completed items from displaying in queue views
- Fix right-click context menu overflow clipping the queue submenu
- Gracefully discard completed items when batch-assigning to queues
This commit is contained in:
NimBold
2026-06-21 13:35:18 +03:30
parent 9e8c4aacf7
commit bf28029d2e
4 changed files with 21 additions and 76 deletions
-3
View File
@@ -143,7 +143,6 @@ export type { DownloadItem, Queue };
export type ExtensionDownloadRequest = ExtensionDownload;
export type AddDownloadAction =
| { type: 'start-now' }
| { type: 'add-to-list' }
| { type: 'add-to-queue'; queueId: string };
export type DownloadDraft = Omit<DownloadItem, 'status' | 'queueId' | 'hasBeenDispatched'>;
@@ -305,8 +304,6 @@ export const useDownloadStore = create<DownloadState>((set, get) => ({
get().updateDownload(item.id, { hasBeenDispatched: true });
}
info(`Download ${item.id} started`);
} else {
info(`Download ${item.id} added to list`);
}
},
applyProperties: async (id, updates) => {