Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt help messages to new support workflow #989

Merged
merged 3 commits into from
Mar 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading