From baa9eadebb35597212f7426c5c4b2edd448c38e5 Mon Sep 17 00:00:00 2001 From: Oliver Gibson Date: Thu, 29 Feb 2024 17:25:30 -0300 Subject: [PATCH 1/2] Adapt help messages to new support workflow --- .../data-management/FileUploadModal.jsx | 25 +++---------------- .../metadata/MetadataUploadModal.jsx | 5 ++-- src/utils/getDomainSpecificContent.jsx | 18 +++++++++++++ 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/components/data-management/FileUploadModal.jsx b/src/components/data-management/FileUploadModal.jsx index 401bf62edb..dcef694eb1 100644 --- a/src/components/data-management/FileUploadModal.jsx +++ b/src/components/data-management/FileUploadModal.jsx @@ -208,11 +208,9 @@ const FileUploadModal = (props) => { - Is your dataset generated using another single cell RNA-seq technology (e.g. Nadia, inDrop, etc.)? Email us to find out if we can support your data: - - {' '} - {config.supportEmail} - + Don't have data in an accepted format? + {' '} + {getDomainSpecificContent('helpMessage')} @@ -229,23 +227,6 @@ const FileUploadModal = (props) => { - - - - - Don’t have the data in the accepted format? Email us for help with file conversion (e.g. from Fastq or H5 file): - {config.supportEmail} - - - - More guidance on supported file types and formats is available - here - . - - - - - {/* eslint-disable react/jsx-props-no-spreading */} diff --git a/src/components/data-management/metadata/MetadataUploadModal.jsx b/src/components/data-management/metadata/MetadataUploadModal.jsx index 4320bbe413..93713b3ebd 100644 --- a/src/components/data-management/metadata/MetadataUploadModal.jsx +++ b/src/components/data-management/metadata/MetadataUploadModal.jsx @@ -21,6 +21,7 @@ import config from 'config'; import handleError from 'utils/http/handleError'; import endUserMessages from 'utils/endUserMessages'; import readFileToString from 'utils/upload/readFileToString'; +import getDomainSpecificContent from 'utils/getDomainSpecificContent'; const { Text, Title, Paragraph } = Typography; @@ -160,9 +161,9 @@ const MetadataUploadModal = (props) => { - Don’t have the data in the accepted format? Email us for help with file conversion: + Don’t have the data in an accepted format? {' '} - {config.supportEmail} + {getDomainSpecificContent('helpMessage')} diff --git a/src/utils/getDomainSpecificContent.jsx b/src/utils/getDomainSpecificContent.jsx index 7d698758a2..6af6fc6a01 100644 --- a/src/utils/getDomainSpecificContent.jsx +++ b/src/utils/getDomainSpecificContent.jsx @@ -61,6 +61,14 @@ const domainSpecificContent = { HelpButton: reusedContent.HelpButton.OneToOneSupport, matomoName: 'cellenics', guidanceFileLink: 'https://drive.google.com/file/d/1VPaB-yofuExinY2pXyGEEx-w39_OPubO/view', + helpMessage: () => ( + <> + Email us to find out if we can support your data: + + {config.supportEmail} + + + ), }, BIOMAGE: { containerIds: biomageContainerIds, @@ -86,6 +94,11 @@ const domainSpecificContent = { matomoName: 'biomage', ExtraLogoText: reusedContent.ExtraLogoText, guidanceFileLink: 'https://www.biomage.net/user-guide', + helpMessage: ( + <> + Reach out to us using the feedback button at the top of the page. + + ), }, BIOMAGE_PRIVATE: { containerIds: biomageContainerIds, @@ -98,6 +111,11 @@ const domainSpecificContent = { ), ExtraLogoText: reusedContent.ExtraLogoText, guidanceFileLink: 'https://www.biomage.net/user-guide', + helpMessage: ( + <> + Reach out to us using the feedback button at the top of the page. + + ), }, }; From c5c51f69cff7cc24527419177f1de61523910afa Mon Sep 17 00:00:00 2001 From: Oliver Gibson Date: Sun, 3 Mar 2024 11:22:57 -0300 Subject: [PATCH 2/2] remove user support from biomage private --- src/utils/getDomainSpecificContent.jsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/utils/getDomainSpecificContent.jsx b/src/utils/getDomainSpecificContent.jsx index 6af6fc6a01..ada78240a1 100644 --- a/src/utils/getDomainSpecificContent.jsx +++ b/src/utils/getDomainSpecificContent.jsx @@ -105,8 +105,6 @@ const domainSpecificContent = { HelpButton: ( <> {reusedContent.HelpButton.BiomageUserGuide} -
- {reusedContent.HelpButton.OneToOneSupport} ), ExtraLogoText: reusedContent.ExtraLogoText,