From 4eeb52eafd38973742ea251c13db431e09cc3386 Mon Sep 17 00:00:00 2001 From: tdgao Date: Fri, 3 Jul 2026 15:21:10 -0700 Subject: [PATCH] feat: add tooltip for downloading file with filename and size --- .../DownloadDependencies.vue | 3 ++ .../DownloadDependency.vue | 45 ++++++++++++++++--- apps/frontend/src/locales/en-US/index.json | 6 +++ 3 files changed, 49 insertions(+), 5 deletions(-) diff --git a/apps/frontend/src/components/ui/ProjectDownloadModal/DownloadDependencies.vue b/apps/frontend/src/components/ui/ProjectDownloadModal/DownloadDependencies.vue index ad6b4ba2a9..184e9c92f9 100644 --- a/apps/frontend/src/components/ui/ProjectDownloadModal/DownloadDependencies.vue +++ b/apps/frontend/src/components/ui/ProjectDownloadModal/DownloadDependencies.vue @@ -57,6 +57,7 @@ interface DownloadDependencyRow { projectHref?: string downloadHref?: string filename?: string + fileSize?: number typeLabel: string unavailableTooltip: string dependencies: DownloadDependencyRow[] @@ -259,6 +260,7 @@ const additionalFileRows = computed(() => fallbackIcon: FileIcon, downloadHref: getDownloadUrl(file.url), filename: file.filename, + fileSize: file.size, typeLabel: fileTypeLabel(file.file_type), unavailableTooltip: formatMessage(messages.unavailableFile), dependencies: [], @@ -323,6 +325,7 @@ function createDependencyRow(dependency: ResolvedContent): DownloadDependencyRow downloadHref: 'reason' in dependency || !primaryFile ? undefined : getDownloadUrl(primaryFile.url), filename: primaryFile?.filename, + fileSize: primaryFile?.size, typeLabel: 'Required', unavailableTooltip, dependencies: (versionId && dependenciesByParentVersionId.value.get(versionId) diff --git a/apps/frontend/src/components/ui/ProjectDownloadModal/DownloadDependency.vue b/apps/frontend/src/components/ui/ProjectDownloadModal/DownloadDependency.vue index 02ce80e1d2..840d4ff35e 100644 --- a/apps/frontend/src/components/ui/ProjectDownloadModal/DownloadDependency.vue +++ b/apps/frontend/src/components/ui/ProjectDownloadModal/DownloadDependency.vue @@ -46,10 +46,10 @@