Skip to content
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

Open
wants to merge 12 commits into
base: feature/EASI-4521_grb_presentation_links
Choose a base branch
from

Conversation

adamodd
Copy link
Contributor

@adamodd adamodd commented Jan 22, 2025

EASI-4530

Description

  • New PresentationLinksCard.tsx

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

  • New PresentationLinksCard.test.tsx

PR Author Checklist

  • I have provided a detailed description of the changes in this PR.
  • I have provided clear instructions on how to test the changes in this PR.
  • I have updated tests or written new tests as appropriate in this PR.

PR Reviewer Guidelines

  • It's best to pull the branch locally and test it, rather than just looking at the code online!
  • When approving a PR, provide a reason why you're approving it
    • e.g. "Approving because I tested it locally and all functionality works as expected"
    • e.g. "Approving because the change is simple and matches the Figma design"
  • Don't be afraid to leave comments or ask questions, especially if you don't understand why something was done! (This is often a great time to suggest code comments or documentation updates)
  • Check that all code is adequately covered by tests - if it isn't feel free to suggest the addition of tests.

@adamodd adamodd requested a review from a team as a code owner January 22, 2025 04:08
@adamodd adamodd requested review from aterstriep and removed request for a team January 22, 2025 04:08
Copy link

EKS Ingress URLs

@@ -84,6 +87,35 @@ function PresentationLinksCard({
});
};

// External link modal handling
Copy link
Contributor Author

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.

Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

@aterstriep aterstriep left a 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

<>
{/* Asynchronous presentation links card */}
<div className="usa-card__container margin-left-0 border-width-1px shadow-2 margin-top-3 margin-bottom-4">
<CardHeader>
Copy link
Contributor

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 {
Copy link
Contributor

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.

Comment on lines +171 to +190
{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
Copy link
Contributor

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.

Copy link
Contributor

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.

@aterstriep
Copy link
Contributor

You might want to double check with Zoe on this, but the "Remove all presentation links" button is not displayed on mobile

I also asked Zoe about this and she said the "Remove all presentation links" button should display on mobile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants