Skip to content

Commit

Permalink
Merge pull request #292 from umccr/hide-onco-buttons
Browse files Browse the repository at this point in the history
Disabled temporarily oncoanalyser from Launch Pad UI
  • Loading branch information
victorskl authored Oct 27, 2023
2 parents 64e2d33 + 650382b commit 070c2c6
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/containers/subjects-launch/SubjectGPLLaunch/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function SubjectGPLLaunch({ subjectId }: Props) {
className='p-button-rounded p-button-danger bg-red-500 cursor-auto'
aria-label='Cancel'
/>
<div className='mt-3'>{`Something went wrong on launching RNAsum!`}</div>
<div className='mt-3'>{`Something went wrong on launching GPL!`}</div>
<pre className='mt-3 p-3 text-left overflow-auto surface-200 '>
{JSON.stringify(gplTrigger.error, Object.getOwnPropertyNames(gplTrigger.error), 2)}
</pre>
Expand Down
12 changes: 12 additions & 0 deletions src/containers/subjects-launch/SubjectOncoanalyserLaunch/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import WGSDragenInput, { WGSInput } from './inputModes/WGSDragenInput';
import WTSStarAlignInput, { WTSInput } from './inputModes/WTSStarAlignInput';
import ConfirmationDialog from '../utils/ConfirmationDialog';
import { Button } from 'primereact/button';
import { Message } from 'primereact/message';

export enum OncoanalyserEnum {
WGS = 'wgs',
Expand Down Expand Up @@ -91,6 +92,17 @@ export default function SubjectLaunchOncoanalyser({ subjectId }: Props) {

return (
<div>
{/* TODO https://trello.com/c/W0EjvUg6/1561-implement-oncoanalyser-trigger-in-portal-launch-pad */}
<Message
severity='warn'
text='Warning Message: THIS IS EXPERIMENTAL FEATURE. PLEASE DO NOT ATTEMPT UNLESS OTHERWISE ADIVCE.'
className='border-primary w-full justify-content-start'
style={{
border: 'solid #696cff',
borderWidth: '0 0 0 6px',
color: '#696cff',
}}
/>
<div className='text-2xl font-medium mb-4'>{subjectId} - Oncoanalyser</div>
<OncoanalyserDescription subjectId={subjectId} />
<SubjectMetadataTable subjectId={subjectId} />
Expand Down
12 changes: 12 additions & 0 deletions src/containers/subjects-launch/SubjectWTSStarAlignment/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { FastqRow, usePortalFastqAPI } from '../../../api/fastq';
import JSONToTable from '../../../components/JSONToTable';
import ConfirmationDialog from '../utils/ConfirmationDialog';
import SubjectMetadataTable from '../SubjectMetadata';
import { Message } from 'primereact/message';

type Props = { subjectId: string };
export default function SubjectLaunchWTSStarAlignment({ subjectId }: Props) {
Expand Down Expand Up @@ -116,6 +117,17 @@ export default function SubjectLaunchWTSStarAlignment({ subjectId }: Props) {

return (
<div>
{/* TODO https://trello.com/c/W0EjvUg6/1561-implement-oncoanalyser-trigger-in-portal-launch-pad */}
<Message
severity='warn'
text='Warning Message: THIS IS EXPERIMENTAL FEATURE. PLEASE DO NOT ATTEMPT UNLESS OTHERWISE ADIVCE.'
className='border-primary w-full justify-content-start'
style={{
border: 'solid #696cff',
borderWidth: '0 0 0 6px',
color: '#696cff',
}}
/>
<div className='text-2xl font-medium mb-4'>
{subjectId} - Whole Transcriptome Sequencing Star Alignment Launch
</div>
Expand Down
18 changes: 10 additions & 8 deletions src/pages/subjects/SubjectLaunchPad/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import { Button } from 'primereact/button';
import SubjectGPLLaunch from '../../../containers/subjects-launch/SubjectGPLLaunch';
import SubjectRNAsumLaunch from '../../../containers/subjects-launch/SubjectRNAsumLaunch';
import SubjectWGSTNLaunch from '../../../containers/subjects-launch/SubjectWGSTNLaunch';
import SubjectLaunchStarAlign from '../../../containers/subjects-launch/SubjectWTSStarAlignment';
import SubjectLaunchOncoanalyser from '../../../containers/subjects-launch/SubjectOncoanalyserLaunch';
// import SubjectLaunchStarAlign from '../../../containers/subjects-launch/SubjectWTSStarAlignment';
// import SubjectLaunchOncoanalyser from '../../../containers/subjects-launch/SubjectOncoanalyserLaunch';

export enum launchPadOptions {
NONE = '',
Expand All @@ -29,8 +29,10 @@ export default function SubjectLaunchPad() {
{ key: launchPadOptions.GPL, label: 'GRIDSS PURPLE LINX (GPL)' },
{ key: launchPadOptions.RNASUM, label: 'RNAsum' },
{ key: launchPadOptions.WGS_TN, label: 'Whole-Genome Sequencing Tumor-Normal (WGS T/N)' },
{ key: launchPadOptions.STAR_ALIGN, label: 'Whole Transcriptome Sequencing Star Alignment' },
{ key: launchPadOptions.ONCOANALYSER, label: 'Oncoanalyser' },
// TODO de-scope from Ocicat release and let temporary hide them for now
// https://trello.com/c/W0EjvUg6/1561-implement-oncoanalyser-trigger-in-portal-launch-pad
// { key: launchPadOptions.STAR_ALIGN, label: 'Whole Transcriptome Sequencing Star Alignment' },
// { key: launchPadOptions.ONCOANALYSER, label: 'Oncoanalyser' },
];
const location = useLocation();
const navigate = useNavigate();
Expand All @@ -49,11 +51,11 @@ export default function SubjectLaunchPad() {
<SubjectRNAsumLaunch subjectId={subjectId} />
) : lastPath == launchPadOptions.WGS_TN ? (
<SubjectWGSTNLaunch subjectId={subjectId} />
) : lastPath == launchPadOptions.STAR_ALIGN ? (
<SubjectLaunchStarAlign subjectId={subjectId} />
) : lastPath == launchPadOptions.ONCOANALYSER ? (
<SubjectLaunchOncoanalyser subjectId={subjectId} />
) : (
// ) : lastPath == launchPadOptions.STAR_ALIGN ? (
// <SubjectLaunchStarAlign subjectId={subjectId} />
// ) : lastPath == launchPadOptions.ONCOANALYSER ? (
// <SubjectLaunchOncoanalyser subjectId={subjectId} />
<div className='h-full'>
<div className='text-2xl font-medium mb-4'>{subjectId} - Report trigger</div>

Expand Down

0 comments on commit 070c2c6

Please sign in to comment.