Skip to content

Commit

Permalink
remove dead link (#16411)
Browse files Browse the repository at this point in the history
* remove dead link

* spacing issue
  • Loading branch information
etanb authored Nov 4, 2024
1 parent d7551d3 commit 84a5114
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 57 deletions.
69 changes: 16 additions & 53 deletions frontend-react/src/components/FileHandlers/FileHandler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 [
{
Expand All @@ -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,
Expand All @@ -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) {
Expand Down Expand Up @@ -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."
/>
<meta
property="og:image"
content="/assets/img/opengraph/howwehelpyou-3.png"
/>
<meta
property="og:image:alt"
content="An abstract illustration of screens and a document."
/>
<meta property="og:image" content="/assets/img/opengraph/howwehelpyou-3.png" />
<meta property="og:image:alt" content="An abstract illustration of screens and a document." />
</Helmet>

<GridContainer>
<article>
<h1 className="margin-y-4">ReportStream File Validator</h1>

{organization?.description && (
<h2 className="font-sans-lg">
{organization.description}
</h2>
)}
{organization?.description && <h2 className="font-sans-lg">{organization.description}</h2>}

{fileName && (
<div className="margin-bottom-3">
<p className="margin-bottom-1 text-normal text-base">
File name
</p>
<p className="margin-bottom-1 text-normal text-base">File name</p>
<p className="margin-top-0">{fileName}</p>
</div>
)}
Expand All @@ -192,22 +168,16 @@ export default function FileHandler() {
<FileHandlerFileUploadStep
{...commonStepProps}
onFileChange={handleFileChange}
onFileSubmitError={
handleResetToFileSelection
}
onFileSubmitSuccess={
handleFileSubmitSuccess
}
onFileSubmitError={handleResetToFileSelection}
onFileSubmitSuccess={handleFileSubmitSuccess}
/>
</Suspense>
);
case FileHandlerErrorsWarningsStep:
return (
<FileHandlerErrorsWarningsStep
{...commonStepProps}
onTestAnotherFileClick={
handleResetToFileSelection
}
onTestAnotherFileClick={handleResetToFileSelection}
/>
);
case FileHandlerSuccessStep:
Expand All @@ -219,20 +189,13 @@ export default function FileHandler() {
</div>
{StepComponent !== FileHandlerSuccessStep && (
<Alert headingLevel="h3" type="tip">
Reference{" "}
<USLink href="/developer-resources/api/documentation/data-model">
the data model
</USLink>{" "}
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.
</Alert>
)}
<p className="text-base-darker margin-top-10">
Questions or feedback? Please email{" "}
<USExtLink href={`mailto: ${site.orgs.RS.email}`}>
{site.orgs.RS.email}
</USExtLink>
<USExtLink href={`mailto: ${site.orgs.RS.email}`}>{site.orgs.RS.email}</USExtLink>
</p>
</article>
</GridContainer>
Expand Down
2 changes: 1 addition & 1 deletion frontend-react/src/content/about/security.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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: (<>
<p>ReportStream always sends synthetic, non-PII data in our <A href="/developer-resources/api/documentation/data-model">standard data schema</A> during testing.</p>
<p>ReportStream always sends synthetic, non-PII data in our standard data schema during testing.</p>
<p>For public health entities receiving data, we'll send patient data to your test environment for approval before going live with launch.</p>
</>)
}
Expand Down
4 changes: 1 addition & 3 deletions frontend-react/src/content/support/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,7 @@ import site from "../../content/site.json";
title: "How do I map to the LIVD table?",
content: (<>
<p>
LOINC In Vitro Diagnostic (LIVD) mapping provides several <A href="/developer-resources/api/documentation/data-model">data elements</A>
{" "} you’ll need for your ReportStream <A href="/developer-resources/api/getting-started">test file</A>. Including:
LOINC In Vitro Diagnostic (LIVD) mapping provides several data elements you’ll need for your ReportStream <A href="/developer-resources/api/getting-started">test file</A>. Including:
</p>

<ul>
Expand All @@ -259,7 +258,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 <A href="https://www.cdc.gov/csels/dls/livd-codes.html">column F</A>,
labeled Test Performed LOINC Code.
Then, you can use that code as described in our <A href="/developer-resources/api/documentation/data-model">data model</A>.
</p>
</>)
},
Expand Down

0 comments on commit 84a5114

Please sign in to comment.