From 4e5093cae048c7deec97419999b660c117375f4a Mon Sep 17 00:00:00 2001 From: TerryM Date: Sat, 30 May 2026 01:21:35 +0800 Subject: [PATCH] ui: drop the 'download complete' success toast Successful downloads no longer pop a 'downloadOk' toast across all the download sites (PopularRankList, RecommendedCard, FileDocBubble, ImageLightbox). The browser's native download UI already confirms the action, and the toast was redundant noise. Failure toasts and the spinner state remain so users still see errors. --- src/components/PopularRankList.tsx | 1 - src/components/RecommendedCard.tsx | 1 - src/components/messageStream/bubbles/FileDocBubble.tsx | 1 - src/components/messageStream/overlays/ImageLightbox.tsx | 1 - 4 files changed, 4 deletions(-) diff --git a/src/components/PopularRankList.tsx b/src/components/PopularRankList.tsx index 6d0f503..3242e9f 100644 --- a/src/components/PopularRankList.tsx +++ b/src/components/PopularRankList.tsx @@ -108,7 +108,6 @@ function PopularRankRow({ r.downloadAttachmentId, r.title, ); - showToast(t("downloadOk")); } catch { showToast(t("downloadFail"), "error"); } finally { diff --git a/src/components/RecommendedCard.tsx b/src/components/RecommendedCard.tsx index fb84c6f..a56907a 100644 --- a/src/components/RecommendedCard.tsx +++ b/src/components/RecommendedCard.tsx @@ -85,7 +85,6 @@ export function RecommendedCard({ } else { await downloadFile(dl, displayTitle); } - showToast(t("downloadOk")); } catch { showToast(t("downloadFail"), "error"); } finally { diff --git a/src/components/messageStream/bubbles/FileDocBubble.tsx b/src/components/messageStream/bubbles/FileDocBubble.tsx index 7845427..6b95078 100644 --- a/src/components/messageStream/bubbles/FileDocBubble.tsx +++ b/src/components/messageStream/bubbles/FileDocBubble.tsx @@ -27,7 +27,6 @@ function AttachmentRow({ postId, att }: { postId: string; att: Attachment }) { setIsDownloading(true); try { await downloadAttachment(postId, att.id, displayFilename); - showToast(t("downloadOk")); } catch { showToast(t("downloadFail"), "error"); } finally { diff --git a/src/components/messageStream/overlays/ImageLightbox.tsx b/src/components/messageStream/overlays/ImageLightbox.tsx index 8f1227c..fb60e19 100644 --- a/src/components/messageStream/overlays/ImageLightbox.tsx +++ b/src/components/messageStream/overlays/ImageLightbox.tsx @@ -94,7 +94,6 @@ function LightboxDownloadButton({ setIsDownloading(true); try { await downloadAttachment(postId, attachment.id, attachment.filename); - showToast(t("downloadOk")); } catch { showToast(t("downloadFail"), "error"); } finally {