From 8fb858c94ce6f5dc8f541bde7fb6feb18dd05c07 Mon Sep 17 00:00:00 2001 From: Bryan Chu Date: Thu, 19 Sep 2024 14:34:46 -0700 Subject: [PATCH] finish --- .../app/components/NoTotalResults.tsx | 17 +++++--------- .../data-portal/app/routes/runs.$id.tsx | 23 +++++++++++++++++-- .../public/locales/en/translation.json | 4 +++- 3 files changed, 30 insertions(+), 14 deletions(-) diff --git a/frontend/packages/data-portal/app/components/NoTotalResults.tsx b/frontend/packages/data-portal/app/components/NoTotalResults.tsx index da39cb031..fc5fc2d87 100644 --- a/frontend/packages/data-portal/app/components/NoTotalResults.tsx +++ b/frontend/packages/data-portal/app/components/NoTotalResults.tsx @@ -13,28 +13,23 @@ export function NoTotalResults({ buttons, }: NoTotalResultsProps) { return ( -
+
-

{title}

- {description} +

{title}

+
{description}
{buttons.map((button) => ( ))}
- + { + openRunDownloadModal({ + runId: run.id, + datasetId: run.dataset.id, + }) + }, + }, + ]} + /> + ), }, ] : []), diff --git a/frontend/packages/data-portal/public/locales/en/translation.json b/frontend/packages/data-portal/public/locales/en/translation.json index 18a69102c..2c0b98fb3 100644 --- a/frontend/packages/data-portal/public/locales/en/translation.json +++ b/frontend/packages/data-portal/public/locales/en/translation.json @@ -133,11 +133,14 @@ "download": "Download", "downloadAllAnnotations": "Download All Annotations", "downloadAllRunData": "Download all run data via our API. Visit API documentation.", + "downloadAllRunDataViaApiToCreateYourOwnReconstructions": "Download all Run data via API to create your own reconstructions.", "downloadAvailableAnnotationsInSupported": "Download available annotations in supported file formats.", "downloadDataset": "Download Dataset...", "downloadNow": "Download Now", "downloadOptions": "Download Options", "downloadRunData": "Download Run Data", + "downloadTheRunDataToCreateYourOwnAnnotations": "Download the Run data to create your own annotations.", + "downloadThisRun": "Download This Run", "downloadTomogram": "Download Tomogram", "downloadWillSaveToCurrentDirectory": "Download will save to your current directory. To change save destination, change the current directory in your terminal before continuing.", "downloadWithAdditionalOptions": "Download...", @@ -414,7 +417,6 @@ "website": "Website", "withDepositionData": "With deposition data", "yes": "Yes", - "youCanStillDownloadTheRun": "You can still download the Run data to create your own annotations.", "youMustHaveCliInstalled": "You must have AWS CLI installed. How to Install AWS CLI.", "youMustHaveCurlInstalled": "You must have cURL installed. How to Install cURL", "zarrLink": "https://zarr.readthedocs.io/en/stable/"