From 60371356a6d4c8ec718d3adf71d57700becfe913 Mon Sep 17 00:00:00 2001 From: etanb Date: Sat, 2 Nov 2024 00:49:42 -0700 Subject: [PATCH 1/2] remove dead link --- .../components/FileHandlers/FileHandler.tsx | 69 +++++-------------- frontend-react/src/content/about/security.mdx | 2 +- frontend-react/src/content/support/index.mdx | 3 +- 3 files changed, 18 insertions(+), 56 deletions(-) diff --git a/frontend-react/src/components/FileHandlers/FileHandler.tsx b/frontend-react/src/components/FileHandlers/FileHandler.tsx index a3123ededf7..4c82d635cb6 100644 --- a/frontend-react/src/components/FileHandlers/FileHandler.tsx +++ b/frontend-react/src/components/FileHandlers/FileHandler.tsx @@ -10,14 +10,11 @@ import { WatersResponse } from "../../config/endpoints/waters"; import site from "../../content/site.json"; import { showToast } from "../../contexts/Toast"; import useOrganizationSettings from "../../hooks/api/organizations/UseOrganizationSettings/UseOrganizationSettings"; -import useFileHandler, { - FileHandlerActionType, - FileHandlerState, -} from "../../hooks/UseFileHandler/UseFileHandler"; +import useFileHandler, { FileHandlerActionType, FileHandlerState } from "../../hooks/UseFileHandler/UseFileHandler"; import { SchemaOption } from "../../hooks/UseSenderSchemaOptions/UseSenderSchemaOptions"; import Alert from "../../shared/Alert/Alert"; import Spinner from "../Spinner"; -import { USExtLink, USLink } from "../USLink"; +import { USExtLink } from "../USLink"; export interface FileHandlerStepProps extends FileHandlerState { isValid?: boolean; @@ -27,8 +24,7 @@ export interface FileHandlerStepProps extends FileHandlerState { } function mapStateToOrderedSteps(state: FileHandlerState) { - const { selectedSchemaOption, file, errors, warnings, overallStatus } = - state; + const { selectedSchemaOption, file, errors, warnings, overallStatus } = state; return [ { @@ -42,9 +38,7 @@ function mapStateToOrderedSteps(state: FileHandlerState) { { Component: FileHandlerErrorsWarningsStep, isValid: false, - shouldSkip: Boolean( - overallStatus && errors.length === 0 && warnings.length === 0, - ), + shouldSkip: Boolean(overallStatus && errors.length === 0 && warnings.length === 0), }, { Component: FileHandlerSuccessStep, @@ -56,15 +50,9 @@ function mapStateToOrderedSteps(state: FileHandlerState) { export default function FileHandler() { const { state, dispatch } = useFileHandler(); const { fileName, localError } = state; - const orderedSteps = mapStateToOrderedSteps(state).filter( - (step) => !step.shouldSkip, - ); + const orderedSteps = mapStateToOrderedSteps(state).filter((step) => !step.shouldSkip); const [currentStepIndex, setCurrentStepIndex] = useState(0); - const { - Component: StepComponent, - isValid, - shouldSkip, - } = orderedSteps[currentStepIndex]; + const { Component: StepComponent, isValid, shouldSkip } = orderedSteps[currentStepIndex]; useEffect(() => { if (localError) { @@ -142,31 +130,19 @@ export default function FileHandler() { name="description" content="Check that public health entities can receive your data through ReportStream by validating your file format." /> - - + +

ReportStream File Validator

- {organization?.description && ( -

- {organization.description} -

- )} + {organization?.description &&

{organization.description}

} {fileName && (
-

- File name -

+

File name

{fileName}

)} @@ -192,12 +168,8 @@ export default function FileHandler() { ); @@ -205,9 +177,7 @@ export default function FileHandler() { return ( ); case FileHandlerSuccessStep: @@ -219,20 +189,13 @@ export default function FileHandler() { {StepComponent !== FileHandlerSuccessStep && ( - Reference{" "} - - the data model - {" "} - for the information needed to validate your file - successfully. Pay special attention to which fields - are required and common mistakes. + Reference the data model for the information needed to validate your file successfully. Pay + special attention to which fields are required and common mistakes. )}

Questions or feedback? Please email{" "} - - {site.orgs.RS.email} - + {site.orgs.RS.email}

diff --git a/frontend-react/src/content/about/security.mdx b/frontend-react/src/content/about/security.mdx index 1cf78bfd5b2..64e32ce03df 100644 --- a/frontend-react/src/content/about/security.mdx +++ b/frontend-react/src/content/about/security.mdx @@ -111,7 +111,7 @@ ReportStream is committed to handling data securely and reliably. From federal r headingLevel:"h3", title: "What data does ReportStream send?", content: (<> -

ReportStream always sends synthetic, non-PII data in our standard data schema during testing.

+

ReportStream always sends synthetic, non-PII data in our standard data schema during testing.

For public health entities receiving data, we'll send patient data to your test environment for approval before going live with launch.

) } diff --git a/frontend-react/src/content/support/index.mdx b/frontend-react/src/content/support/index.mdx index 2c26c9d1c5c..a1bb462272a 100644 --- a/frontend-react/src/content/support/index.mdx +++ b/frontend-react/src/content/support/index.mdx @@ -243,7 +243,7 @@ import site from "../../content/site.json"; title: "How do I map to the LIVD table?", content: (<>

- LOINC In Vitro Diagnostic (LIVD) mapping provides several data elements + LOINC In Vitro Diagnostic (LIVD) mapping provides several data elements {" "} you’ll need for your ReportStream test file. Including:

@@ -259,7 +259,6 @@ import site from "../../content/site.json"; When you know the devices you are reporting for, you can use the LIVD mapping table to identify the device identifier code. The code is in column F, labeled Test Performed LOINC Code. - Then, you can use that code as described in our data model.

) }, From 8bdfa195afb00bc1868e5db3f9f11ab56e1c9ae5 Mon Sep 17 00:00:00 2001 From: etanb Date: Sat, 2 Nov 2024 00:51:38 -0700 Subject: [PATCH 2/2] spacing issue --- frontend-react/src/content/support/index.mdx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend-react/src/content/support/index.mdx b/frontend-react/src/content/support/index.mdx index a1bb462272a..cf7b9734cba 100644 --- a/frontend-react/src/content/support/index.mdx +++ b/frontend-react/src/content/support/index.mdx @@ -243,8 +243,7 @@ import site from "../../content/site.json"; title: "How do I map to the LIVD table?", content: (<>

- LOINC In Vitro Diagnostic (LIVD) mapping provides several data elements - {" "} you’ll need for your ReportStream test file. Including: + LOINC In Vitro Diagnostic (LIVD) mapping provides several data elements you’ll need for your ReportStream test file. Including: