Skip to content

Commit

Permalink
Merge branch 'master' into feat/faro
Browse files Browse the repository at this point in the history
  • Loading branch information
mfshao committed Aug 22, 2024
2 parents 4046f15 + 0c93840 commit 9dfd5aa
Show file tree
Hide file tree
Showing 25 changed files with 45 additions and 36 deletions.
2 changes: 1 addition & 1 deletion data/config/acct.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"title": "ACCOuNT Data Commons",
"subTitle": "Explore, Analyze, and Share Data",
"text": "This website provides a centralized, cloud-based discovery portal for African American pharmacogenomics data and aims to accelerate discovery of novel genetic variants in African Americans related to clinically actionable cardiovascular phenotypes.",
"contact": "If you have any questions about access or the registration process, please contact support@datacommons.io"
"contact": "If you have any questions about access or the registration process, please contact support@gen3.org"
}
},
"featureFlags": {
Expand Down
2 changes: 1 addition & 1 deletion data/config/anvil.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"subTitle": "Explore, Analyze, and Share Data",
"text": "This website supports the management, analysis and sharing of human disease data for the research community and aims to advance basic understanding of the genetic basis of complex traits and accelerate discovery and development of therapies, diagnostic tests, and other technologies for diseases like cancer.",
"contact": "If you have any questions about access or the registration process, please contact ",
"email": "support@datacommons.io"
"email": "support@gen3.org"
},
"categorical9Colors": [
"#035C94",
Expand Down
2 changes: 1 addition & 1 deletion data/config/bpa.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
"subTitle": "Explore, Analyze, and Share Data",
"text": "This website combines liquid biopsy data from academic, government, and industry partners and aims to accelerate discovery and development of therapies, diagnostic tests, and other technologies for the treatment and prevention of cancer.",
"contact": "If you have any questions about access or the registration process, please contact ",
"email": "bpa-support@datacommons.io"
"email": "bpa-support@gen3.org"
},
"certs": {
"security_quiz": {
Expand Down
2 changes: 1 addition & 1 deletion data/config/canine.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
"subTitle": "explore, analyze, and share research data",
"text": "This website analyzes and shares genomic architecture of modern dog breeds and runs analysis for canine cancer to create clean, easy to navigate visualizations for data-driven discovery for canine cancer.",
"contact": "If you have any questions about access or the registration process, please contact ",
"email": "support@datacommons.io"
"email": "support@gen3.org"
}
},
"featureFlags": {
Expand Down
2 changes: 1 addition & 1 deletion data/config/dcf.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
"subTitle": "Explore, Analyze, and Share Data",
"text": "This website supports the management, analysis and sharing of human disease data for the research community and aims to advance basic understanding of the genetic basis of complex traits and accelerate discovery and development of therapies, diagnostic tests, and other technologies for diseases like cancer.",
"contact": "If you have any questions about access or the registration process, please contact ",
"email": "support@datacommons.io"
"email": "support@gen3.org"
}
},
"featureFlags": {
Expand Down
2 changes: 1 addition & 1 deletion data/config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
"subTitle": "Explore, Analyze, and Share Data",
"text": "This website supports the management, analysis and sharing of human disease data for the research community and aims to advance basic understanding of the genetic basis of complex traits and accelerate discovery and development of therapies, diagnostic tests, and other technologies for diseases like cancer.",
"contact": "If you have any questions about access or the registration process, please contact ",
"email": "support@datacommons.io"
"email": "support@gen3.org"
},
"certs": {
"security_quiz": {
Expand Down
2 changes: 1 addition & 1 deletion data/config/gtex.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
"subTitle": "Explore, Analyze, and Share Data",
"text": "This website supports the management, analysis and sharing of human disease data for the research community and aims to advance basic understanding of the genetic basis of complex traits and accelerate discovery and development of therapies, diagnostic tests, and other technologies for diseases like cancer.",
"contact": "If you have any questions about access or the registration process, please contact ",
"email": "support@datacommons.io",
"email": "support@gen3.org",
"image": "stage-icons/stage-gene"
},
"footerLogos": [
Expand Down
2 changes: 1 addition & 1 deletion data/config/ibdgc.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"subTitle": "Explore, Analyze, and Share Data",
"text": "The Inflammatory Bowel Disease Genetics Consortium Data Commons supports the management, analysis, and sharing of genetic data to support the vision and mission of the IBD genetics consortium.",
"contact": "If you have any questions about access or the registration process, please contact ",
"email": "support@datacommons.io"
"email": "support@gen3.org"
}
},
"featureFlags": {
Expand Down
2 changes: 1 addition & 1 deletion data/config/ncrdc-demo.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"subTitle": "explore, analyze, and share research data",
"text": "The Data Common Frameworks (DCF) supports the management, analysis and sharing of many different types of biomedical data for the research community with the goal of accelerating research in the molecular basis for disease and matching targeted therapies that factor in each patient's unique biology.",
"contact": "If you have any questions about access or the registration process, please contact ",
"email": "support@datacommons.io"
"email": "support@gen3.org"
}
},
"featureFlags": {
Expand Down
2 changes: 1 addition & 1 deletion data/config/ndh.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"subTitle": "Explore, Analyze, and Share Data",
"text": "The website combines government datasets from 3 divisions of NIAID to create clean, easy to navigate visualizations for data-driven discovery within Allergy and Infectious Diseases.",
"contact": "If you have any questions about access or the registration process, please contact ",
"email": "support@datacommons.io"
"email": "support@gen3.org"
},
"footerLogos": [
{
Expand Down
2 changes: 1 addition & 1 deletion data/config/va.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"subTitle": "Explore, Analyze, and Share Data",
"text": "The Veterans Data Commons supports the management, analysis and sharing of veteran oncologic data for the research community and aims to accelerate discovery and development of therapies, diagnostic tests, and other technologies for precision oncology.",
"contact": "If you have any questions about access or the registration process, please contact ",
"email": "support@datacommons.io"
"email": "support@gen3.org"
},
"footerLogos": [
{
Expand Down
8 changes: 4 additions & 4 deletions docs/portal_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Below is an example, with inline comments describing what each JSON block config
"components": {
"appName": "Gen3 Generic Data Commons", // required; title of commons that appears on the homepage
"metaDescription": "", // optional; meta description used by search engines
"banner": [ // optional; banner displayed accross top of all of data portal
"banner": [ // optional; banner displayed across top of all of data portal
{
"type": "info", // Type of Alert styles, options: success, info, warning, error
"message": "I'm a banner", // message to be displayed
Expand Down Expand Up @@ -150,9 +150,9 @@ Below is an example, with inline comments describing what each JSON block config
"subTitle": "Explore, Analyze, and Share Data", // optional; subtitle for login page
"text": "This is a generic Gen3 data commons.", // optional; text on the login page
"contact": "If you have any questions about access or the registration process, please contact ", // optional; text for the contact section of the login page
"email": "support@datacommons.io", // optional; email for contact
"email": "support@gen3.org", // optional; email for contact
"image": "gene", // optional; images displayed on the login page
"hideNavLink": false// optional default false; hide login link in main naviagion
"hideNavLink": false// optional default false; hide login link in main navigation
},
"systemUse" : { // optional; will show a Use Message in a popup, to inform users of the use policy of the commons. It will display a message which requires acceptance before a user can use the site.
"systemUseTitle" : "", // required; Title of the popup dialog
Expand Down Expand Up @@ -730,7 +730,7 @@ Below is an example, with inline comments describing what each JSON block config
"connectSrcCSPWhitelist": [ // optional; Array of urls to add to the header CSP (Content-Security-Policy) connect-src 'self'
"https://example.s3.amazonaws.com" // full url to be added
],
"analysisTools": [ // analysis apps to be diplayed at the /analysis/ page.
"analysisTools": [ // analysis apps to be displayed at the /analysis/ page.
{
"appId": "myAppId", // Optional. Can be used to ensure the app path after the /analysis/ subpath is fixed, e.g. URL https://SERVER-DOMAIN/analysis/myAppId. If not set, then "title" (below) is used.
"title": "My app title", // App title/name, also displayed on the App card in the /analysis page
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
import { components } from '../../../../../params';
import './WorkflowLimitsModalErrorMessage.css';

const supportEmail = components.login?.email || 'support@datacommons.io';
const supportEmail = components.login?.email || 'support@gen3.org';

const WorkflowLimitsModalErrorMessage = ({
status,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('WorkflowLimitsModalErrorMessage', () => {

test(`renders limit reached message when status is "success",
workflowLimitInfoIsValid is true, and workFlowLimitExceeded is true`, async () => {
const supportEmail = components.login?.email || 'support@datacommons.io';
const supportEmail = components.login?.email || 'support@gen3.org';
render(
<WorkflowLimitsModalErrorMessage
{...defaultProps}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const ActionsDropdown = ({ record }) => {
});
};

const supportEmail = components.login?.email || 'support@datacommons.io';
const supportEmail = components.login?.email || 'support@gen3.org';
const checkWorkflowLimit = async () => {
try {
const data = await fetchMonthlyWorkflowLimitInfo();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import LoadingErrorMessage from '../LoadingErrorMessage/LoadingErrorMessage';
import './WorkflowLimitsDashboard.css';

const WorkflowLimitsDashboard = React.memo(() => {
const supportEmail = components.login?.email || 'support@datacommons.io';
const supportEmail = components.login?.email || 'support@gen3.org';
const refetchInterval = 5000;

const { data, status } = useQuery(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const testDataExceeds = {
workflow_limit: 50,
};

const supportEmail = components.login?.email || 'support@datacommons.io';
const supportEmail = components.login?.email || 'support@gen3.org';

const testJSX = () => (
<QueryClientProvider client={mockedQueryClient}>
Expand Down
8 changes: 4 additions & 4 deletions src/Discovery/Discovery.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.discovery-container {
background-color: #f2f2f2;
padding: 30px 32px;
padding: 0 32px 30px 32px;
min-height: calc(100vh - 221px);
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -503,9 +503,9 @@
font-weight: bold;
}

#discovery-page-accessibility-links {
top: 129px;
padding-right: 16px;
.discovery-page-accessibility-links {
display: flex;
justify-content: flex-end;
}

.discovery-hidden-link {
Expand Down
14 changes: 12 additions & 2 deletions src/Discovery/Discovery.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, {
useState, useEffect, ReactNode, useMemo,
useRef,
} from 'react';
import * as JsSearch from 'js-search';
import jsonpath from 'jsonpath';
Expand Down Expand Up @@ -236,6 +237,8 @@ const Discovery: React.FunctionComponent<Props> = (props: Props) => {
|| config.features.search.tagSearchDropdown.collapseOnDefault === undefined),
);
const [visibleResources, setVisibleResources] = useState([]);
const [discoveryTopPadding, setDiscoveryTopPadding] = useState(30);
const discoveryAccessibilityLinksRef = useRef(null);

const handleSearchChange = (ev) => {
const { value } = ev.currentTarget;
Expand Down Expand Up @@ -340,6 +343,13 @@ const Discovery: React.FunctionComponent<Props> = (props: Props) => {
}
});

// to dynamically set the top padding for discovery panel to compensate for the height of the accessibility links
useEffect(() => {
if (discoveryAccessibilityLinksRef.current) {
setDiscoveryTopPadding(30 - discoveryAccessibilityLinksRef.current.clientHeight);
}
}, [setDiscoveryTopPadding]);

// Set up table columns
// -----
const columns = config.studyColumns.map((column) => ({
Expand Down Expand Up @@ -647,11 +657,11 @@ const Discovery: React.FunctionComponent<Props> = (props: Props) => {
// Disabling noninteractive-tabindex rule because the span tooltip must be focusable as per https://www.w3.org/TR/2017/REC-wai-aria-1.1-20171214/#tooltip
/* eslint-disable jsx-a11y/no-noninteractive-tabindex */
return (
<div className='discovery-container'>
<div className='discovery-container' style={{ paddingTop: discoveryTopPadding }}>
{(config.features.pageTitle && config.features.pageTitle.enabled)
&& <h1 className='discovery-page-title'>{config.features.pageTitle.text || 'Discovery'}</h1>}

<DiscoveryAccessibilityLinks />
<DiscoveryAccessibilityLinks ref={discoveryAccessibilityLinksRef} />

{/* Header with stats */}
<div className='discovery-header'>
Expand Down
8 changes: 4 additions & 4 deletions src/Discovery/DiscoveryAccessibilityLinks.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { forwardRef } from 'react';
import Tooltip from 'rc-tooltip';

const tooltipText = 'These accessibility links assist with keyboard navigation of the site. Selecting a link will bring tab focus to the specified page content.';
Expand All @@ -23,8 +23,8 @@ const viewLinkedElement = (elementId) => {
});
};

const DiscoveryAccessibilityLinks = () => (
<div className='g3-accessibility-links' id='discovery-page-accessibility-links'>
const DiscoveryAccessibilityLinks = forwardRef((props, ref) => (
<div className='discovery-page-accessibility-links' ref={ref}>
<Tooltip
placement='left'
overlay={tooltipText}
Expand Down Expand Up @@ -80,6 +80,6 @@ const DiscoveryAccessibilityLinks = () => (
<span>Pagination</span>
</a>
</div>
);
));

export default DiscoveryAccessibilityLinks;
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { workspaceRegistrationConfig } from '../../localconf';

const defaultEmail = 'support@datacommons.io';
const defaultEmail = 'support@gen3.org';

const StudyRegistrationAccessRequest = {
name: 'StudyRegistration',
Expand Down
2 changes: 1 addition & 1 deletion src/Workspace/ErrorWorkspacePlaceholder.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import NotFoundSVG from '../img/not-found.svg';
import { components } from '../params';

const ErrorWorkspacePlaceholder = () => {
const supportEmail = components.login?.email || 'support@datacommons.io';
const supportEmail = components.login?.email || 'support@gen3.org';
return (
<div className='error-workspace-placeholder__error-msg'>
<h1>Error opening workspace...</h1>
Expand Down
4 changes: 2 additions & 2 deletions src/Workspace/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ class Workspace extends React.Component {

handleMenuClick = async (e) => {
if (this.state.payModel.all_pay_models[e.key].request_status === 'above limit') {
message.error('Selected pay model usage has exceeded its available funding. Please choose another pay model. Contact brhsupport@datacommons.io with questions.');
message.error('Selected pay model usage has exceeded its available funding. Please choose another pay model. Contact brhsupport@gen3.org with questions.');
return;
}
await fetchWithCreds({
Expand Down Expand Up @@ -741,7 +741,7 @@ class Workspace extends React.Component {
{isPayModelAboveLimit
? (
<Alert
description='Selected pay model usage has exceeded its available funding. Please replenish your funds or choose a different pay model. Contact brhsupport@datacommons.io if you have questions.'
description='Selected pay model usage has exceeded its available funding. Please replenish your funds or choose a different pay model. Contact brhsupport@gen3.org if you have questions.'
type='error'
banner
closable
Expand Down
2 changes: 1 addition & 1 deletion src/components/ErrorPage403.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { components } from '../params';

class ErrorPage403 extends React.Component {
render() {
const supportEmail = components.login?.email || 'support@datacommons.io';
const supportEmail = components.login?.email || 'support@gen3.org';
return (
<div className='error-placeholder__error-msg '>
<h1>Error accessing requested resource...</h1>
Expand Down
1 change: 0 additions & 1 deletion testSchema.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ testCases=(
bpa "data.bloodpac.org"
dcf "nci-crdc.datacommons.io"
gtex "gen3.biodatacatalyst.nhlbi.nih.gov"
anvil "gen3.theanvil.io"
genomel "genomel.bionimbus.org"
)
index=0
Expand Down

0 comments on commit 9dfd5aa

Please sign in to comment.