-
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-4531] GRB presentation links form #2972
[EASI-4531] GRB presentation links form #2972
Conversation
…grb-presentation-links-form
EKS Ingress URLs |
…grb-presentation-links-form
…grb-presentation-links-form
…grb-presentation-links-form
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.
After adding a link to a transcript (or an upload), saving, then going back in to edit, the link/upload isn't pre-populated. Additionally, every other hit on the form to edit, the presentation deck file isn't show/empty, even though I uploaded the file. Not sure if this matters or in scope since we are changing the behavior of the presentation deck, but the transcript link should be in scope.
It actually looks like the input value for the presentationDeckFileData
and `` are both null despite adding both of those files
Getting a ts error here, didn't seem to be caught in CI/am using the workspace version of TS in the editor.
|
||
// Display default filename with button to clear file | ||
return ( | ||
<div className="maxw-none border border-dashed border-base-light font-body-2xs margin-top-1"> | ||
<div className="display-flex flex-justify padding-1 bg-primary-lighter"> | ||
<span className="text-bold">{t('selectedFile')}</span> | ||
<Button |
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 want to add a test for this to ensure that the name gets displayed if it's present
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 for catching this! I had a unit test for this in the presentation links form but forgot to add unit tests for the actual component. Tests have been added here.
src/views/GovernanceReviewTeam/GRBReview/PresentationLinksForm/index.tsx
Outdated
Show resolved
Hide resolved
- Submit button was disabled on edit if presentation deck file was previously uploaded, and a different field was updated - Updated form to set default values for file upload fields
Adding details from syncing on this PR for visibility:
This is caused by the
The mutation currently clears previously uploaded files from the database if the edit form is submitted without touching those fields. See Slack thread for details. The backend mutation is being fixed in #2966, and this will be fixed on the frontend in a separate ticket (EASI-4715). |
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.
LG Thanks for all the help sorting everything out!
082e3b3
into
feature/EASI-4521_grb_presentation_links
EASI-4531
Figma
Description
FileUpload
custom component to handle pre-filled file fieldsHow to test this change
I created a testing branch (EASI-4531/grb-presentation-links-form-test) with the branches for #2966 and #2958 merged into this work. Use that branch for testing so that the form mutation works and links are displayed on the "GRB review" admin tab.
GOVTEAM
job codePR Author Checklist
PR Reviewer Guidelines