Skip to content

Commit

Permalink
Merge branch 'feat/vadc_sprint22' into feat/addTeamProjectHeaderToAna…
Browse files Browse the repository at this point in the history
…lysisApps
  • Loading branch information
jarvisraymond-uchicago authored Nov 6, 2023
2 parents 54996d4 + 999cfc9 commit 6c60006
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
15 changes: 15 additions & 0 deletions docs/portal_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,21 @@ 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.
{
"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
"description": "My app description", // App title/name, also displayed on the App card in the /analysis page
"image": "/src/img/analysis-icons/myapp-image.svg", // App logo/image to be displayed on the App card in the /analysis page
"needsTeamProject": true // Optional. Whether the app needs a "team project" selection to be made by the user first. If true, it will force the user to select a "team project" first. See also https://github.com/uc-cdis/data-portal/pull/1445
},
{
"title": "My other app",
"description": "etc",
"image": "/src/img/analysis-icons/etc.svg",
},
...
],
"stridesPortalURL": "https://strides-admin-portal.org", // optional; If configured, will display a link on the workspace page which can direct user to the STRIDES admin portal,
"registrationConfigs": { // optional; Required when using Kayako integration with Study/Workspace registration
"features":{ // Optional; Required when using study/Workspace registration
Expand Down
4 changes: 2 additions & 2 deletions src/Analysis/AnalysisApp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,13 @@ class AnalysisApp extends React.Component {
/>
</React.Fragment>
);
case 'GWAS Results':
case 'GWASResults':
return (
<div className='analysis-app_flex_row'>
<GWASResultsContainer />
</div>
);
case 'Gen3 GWAS': {
case 'GWASUIApp': {
return (
<TourProvider
afterOpen={disableBody}
Expand Down
2 changes: 2 additions & 0 deletions src/localconf.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,8 @@ function buildConfig(opts) {
default:
break;
}
} else if (at.appId) {
analysisApps[at.appId] = at;
} else if (at.title) {
analysisApps[at.title] = at;
}
Expand Down

0 comments on commit 6c60006

Please sign in to comment.