From 1224a804a28e3a9f2d57cc644100c462108c550f Mon Sep 17 00:00:00 2001 From: ufgauthi Date: Wed, 18 Sep 2024 12:32:40 -0400 Subject: [PATCH] Count removed as completed in the count. Indicate in the text that removed samples have completed the step. --- frontend/src/components/studySamples/StudySamples.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/studySamples/StudySamples.tsx b/frontend/src/components/studySamples/StudySamples.tsx index ad1e81b26..2b9f90f62 100644 --- a/frontend/src/components/studySamples/StudySamples.tsx +++ b/frontend/src/components/studySamples/StudySamples.tsx @@ -10,7 +10,6 @@ import RefreshButton from '../RefreshButton' import CompletedSamplesTable from './CompletedSamplesTable' import StudyStepSamplesTable from './StudyStepSamplesTable' import { WarningOutlined } from '@ant-design/icons' -import { PaginationParameters } from '../WorkflowSamplesTable/WorkflowSamplesTable' const { Text, Title } = Typography @@ -96,9 +95,9 @@ function StudySamples({ studyID, studySamples, refreshSamples }: StudySamplesPro {renderedSteps.map((step) => { - const countString = `${step.completed.count} / ${step.ready.count + step.completed.count + step.removed.count}` - const countTitle = `${step.completed.count} of ${step.ready.count + step.completed.count + step.removed.count} samples are completed` - const removedTitle = step.removed.count === 1 ? `1 sample was removed from study at this step` : `${step.removed.count} samples were removed from study at this step` + const countString = `${step.completed.count + step.removed.count} / ${step.ready.count + step.completed.count + step.removed.count}` + const countTitle = `${step.completed.count + step.removed.count} of ${step.ready.count + step.completed.count + step.removed.count} samples are completed` + const removedTitle = step.removed.count === 1 ? `1 sample was removed from study after completing this step` : `${step.removed.count} samples were removed from study after completing this step` // Call StepPanel as a function because the child of Collapse must be a CollapsePanel, not a StepPanel return ( @@ -148,7 +147,7 @@ function StepTabs({step, studyID, uxSettings, removedTitle} : StepPanelProps) { const completedTab = {`Completed (${step.completed.count})`} const removedTab = - {`Removed (${step.removed.count})`} + {`Completed and removed (${step.removed.count})`}