-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add ecr retrieval failed page #2882
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
33cb59a
add ecr retrieval failed page
lina-roth e554304
[pre-commit.ci] auto fixes from pre-commit hooks
pre-commit-ci[bot] 195fab0
Merge branch 'main' into lr/retrieval-dailed
lina-roth 55b6d0e
[pre-commit.ci] auto fixes from pre-commit hooks
pre-commit-ci[bot] 819747e
switch error page
lina-roth 3d21ce9
Merge branch 'lr/retrieval-dailed' of github.com:CDCgov/phdi into lr/…
lina-roth 6f25cc7
remove error page
lina-roth 2a5b1fb
Remove empty tag
lina-roth File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
containers/ecr-viewer/src/app/view-data/retrieval-failed.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
"use client"; | ||
import React from "react"; | ||
import { Icon } from "@trussworks/react-uswds"; | ||
import Header from "../Header"; | ||
|
||
/** | ||
* @returns The ecr retrieval error page JSX component. | ||
*/ | ||
const RetrievalFailed = () => ( | ||
<div className="height-viewport width-viewport display-flex flex-column"> | ||
<Header /> | ||
<main className="display-flex flex-justify-center height-full"> | ||
<div className="display-inline-block margin-y-auto"> | ||
<h2 className="font-family-serif font-serif-xl margin-bottom-0"> | ||
<Icon.Error | ||
size={5} | ||
className="margin-right-105 text-middle" | ||
aria-hidden | ||
/> | ||
eCR retrieval failed | ||
</h2> | ||
<div className="text-semibold font-sans-md margin-top-1"> | ||
The eCR Viewer couldn't retrieve the associated eCR file | ||
</div> | ||
<div className="bg-info-lighter border border-info-light radius-md font-sans-md line-height-sans-4 padding-3 margin-top-2"> | ||
This is likely because the DIBBs pipeline hasn't processed this eCR. | ||
<p /> | ||
<div className="margin-0"> | ||
<b>Contact support:</b> If the problem persists, please reach out to | ||
your eCR coordinator | ||
<br /> to troubleshoot the issue with the DIBBs team. | ||
</div> | ||
</div> | ||
</div> | ||
</main> | ||
</div> | ||
); | ||
|
||
export default RetrievalFailed; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need the
<br />
here - should we instead defer to css to make sure the wrapping happens appropriately?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id normally agree but this being a static page with content that is unlikely to change, I dont feel like using text-wrap over "br" is really much of a difference
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how does it look on mobile?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to double check but I dont think we are concerned with mobile for this app
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! I could see it being weird at some widths, but if we're not worried about mobile, those odds are way low and I agree it doesn't make much difference here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
though I suppose things could get weird again if someone has different font sizes set on their settings? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i asked Emma and she said "our assumption is that all users will be in a desktop/workplace setting"