Skip to content

Commit

Permalink
Merge pull request #989 from biomage-org/remove-hello-email
Browse files Browse the repository at this point in the history
Adapt help messages to new support workflow
  • Loading branch information
ogibson authored Mar 3, 2024
2 parents 34b7d69 + ef0fa9c commit 690a933
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 26 deletions.
25 changes: 3 additions & 22 deletions src/components/data-management/FileUploadModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,9 @@ const FileUploadModal = (props) => {
</Space>
<Text type='secondary'>
<i>
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:
<a href={`mailto:${config.supportEmail}`}>
{' '}
{config.supportEmail}
</a>
Don't have data in an accepted format?
{' '}
{getDomainSpecificContent('helpMessage')}
</i>
</Text>
</Space>
Expand All @@ -242,23 +240,6 @@ const FileUploadModal = (props) => {
</Col>
</Row>

<Row>
<Col span={24}>
<Paragraph type='secondary'>
<i>
Don’t have the data in the accepted format? Email us for help with file conversion (e.g. from Fastq or H5 file):
<a href={`mailto:${config.supportEmail}`}>{config.supportEmail}</a>
</i>
<span style={{ display: 'block', height: '0.6rem' }} />
<i>
More guidance on supported file types and formats is available
<a rel='noreferrer' target='_blank' href={getDomainSpecificContent('guidanceFileLink')}> here</a>
.
</i>
</Paragraph>
</Col>
</Row>

<Row>
{/* eslint-disable react/jsx-props-no-spreading */}
<Col span={24}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -160,9 +161,9 @@ const MetadataUploadModal = (props) => {
<Col span={24}>
<Paragraph type='secondary'>
<i>
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?
{' '}
<a href={`mailto:${config.supportEmail}`}>{config.supportEmail}</a>
{getDomainSpecificContent('helpMessage')}
</i>
</Paragraph>
</Col>
Expand Down
20 changes: 18 additions & 2 deletions src/utils/getDomainSpecificContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
<a href={`mailto:${config.supportEmail}`}>
{config.supportEmail}
</a>
</>
),
},
BIOMAGE: {
containerIds: biomageContainerIds,
Expand All @@ -86,18 +94,26 @@ 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,
HelpButton: (
<>
{reusedContent.HelpButton.BiomageUserGuide}
<br />
{reusedContent.HelpButton.OneToOneSupport}
</>
),
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.
</>
),
},
};

Expand Down

0 comments on commit 690a933

Please sign in to comment.