-
Notifications
You must be signed in to change notification settings - Fork 0
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
EASI-4530 Grb async presentation links card #2958
base: feature/EASI-4521_grb_presentation_links
Are you sure you want to change the base?
EASI-4530 Grb async presentation links card #2958
Conversation
EKS Ingress URLs |
@@ -84,6 +87,35 @@ function PresentationLinksCard({ | |||
}); | |||
}; | |||
|
|||
// External link modal handling |
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.
This handling block is copied from the RTE feature. It isn't great .. but if it needs iteration I think the next worthy step would be to generalize the hook and effect for the whole app, instead of placing a selector scope made from assigning dom refs. (At the time didn't think the site would have so many external links.) For now I think this duplicated instance is okay.
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.
#2970 introduces an ExternalLinkAndModal
component that can be used here. We can update this later, just wanted to point it out for visibility.
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 had referenced Gary to this as he started that work. Thanks.
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.
- It looks like the "virus scanning in progress" view from the Figma is missing
- Action buttons should be hidden for GRB reviewer view
- I think it's worth adding both this and the virus scanning view to the unit tests
- I noticed a couple things on the mobile view:
- You might want to double check with Zoe on this, but the "Remove all presentation links" button is not displayed on mobile
- The links should all be on separate lines (see screenshot of current state below)
![Screenshot 2025-01-27 at 9 38 35 AM](https://private-user-images.githubusercontent.com/60187543/406985314-3dc31151-e48a-42e9-81d2-a81f43c2e5f1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4MjkwODksIm5iZiI6MTczODgyODc4OSwicGF0aCI6Ii82MDE4NzU0My80MDY5ODUzMTQtM2RjMzExNTEtZTQ4YS00MmU5LTgxZDItYTgxZjQzYzJlNWYxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDA3NTk0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUzZmNjOTg5OTI0NDUyZDI2MWNhYTE0MjMwNzE4N2JhODk5MTc4YWVjNWFhODIzOWIwOWE0ODg0ZmY2MGU2MzcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.I_2mZYH3MHUg2QaQUAu8tUs5USmQWvzpduAGKnBXXjI)
<> | ||
{/* Asynchronous presentation links card */} | ||
<div className="usa-card__container margin-left-0 border-width-1px shadow-2 margin-top-3 margin-bottom-4"> | ||
<CardHeader> |
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.
The margin between CardHeader
and CardBody
needs to be decreased to match the Figma.
@@ -155,6 +155,21 @@ export const SystemIntake = gql` | |||
decisionState | |||
submittedAt | |||
} | |||
grbPresentationLinks { |
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.
The transcriptLink
field needs to be added to the query and displayed in the same place as the transcriptFileURL
field on the card.
{recordingLink && ( | ||
<Link | ||
className="margin-right-2 display-flex flex-align-center" | ||
href={recordingLink} | ||
target="_blank" | ||
> | ||
{t('asyncPresentation.viewRecording')} | ||
<Icon.Launch className="margin-left-05" /> | ||
</Link> | ||
)} | ||
{recordingPasscode && ( | ||
<span className="text-base margin-right-2"> | ||
{t('asyncPresentation.passcode', { | ||
passcode: recordingPasscode | ||
})} | ||
</span> | ||
)} | ||
{transcriptFileStatus === SystemIntakeDocumentStatus.AVAILABLE && | ||
transcriptFileURL && ( | ||
<Link |
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.
Might check with Zoe on this, but I'm pretty sure the recording passcode and transcript link should only display if there is a recording link.
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 just had a call with Zoe to go over something on the presentation links form so I asked her about this. If there is either a recording passcode or transcript but no recording link, display "No recording link available" in place of the link.
I also asked Zoe about this and she said the "Remove all presentation links" button should display on mobile |
EASI-4530
Description
Please keep in mind there is another ticket in this feature for more testing in case there are substantial change requests.
How to test this change
PR Author Checklist
PR Reviewer Guidelines