-
Notifications
You must be signed in to change notification settings - Fork 1
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
[sbl-filing: just_metadata_branch
branch] enhancement(Upload): Upload Adjustments
#411
Conversation
…request upon either VALIDATION_IN_PROGRESS or SUBMISSION_UPLOAD
f99e398
to
8378f0f
Compare
…a changes in all-current-prs
5a6378f
to
9c023b4
Compare
…e over a size limit (e.g. 2GB)
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, @typescript-eslint/no-unused-expressions, prettier/prettier | ||
return (response.data?.state && response.data.state) === fileSubmissionState.VALIDATION_IN_PROGRESS; | ||
return (response.data?.state && response.data.state) === FileSubmissionState.VALIDATION_IN_PROGRESS || (response.data?.state && response.data.state) === FileSubmissionState.SUBMISSION_UPLOADED; |
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.
Could this be simplified?
return (response.data?.state && response.data.state) === FileSubmissionState.VALIDATION_IN_PROGRESS || (response.data?.state && response.data.state) === FileSubmissionState.SUBMISSION_UPLOADED; | |
return [FileSubmissionState.VALIDATION_IN_PROGRESS, FileSubmissionState.SUBMISSION_UPLOADED].includes(response.data?.state); |
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 Meissa, I'll include this handling elsewhere too!
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.
Functionality looks good to me. Tested the prescribed scenarios and the UI felt aligned with the expected scenario outcomes.
b526013
to
0568b5e
Compare
all-current-prs
branch] enhancement(Upload): Upload Adjustments
all-current-prs
branch] enhancement(Upload): Upload Adjustmentsnew_all_branch
branch] enhancement(Upload): Upload Adjustments
new_all_branch
branch] enhancement(Upload): Upload Adjustmentsjust_metadata_branch
branch] enhancement(Upload): Upload Adjustments
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.
Code looks good, and the new use cases are working. Great work! 🥳
@shindigira did you want this to be your "design review" PR? I think I'd prefer if we move this one forward and have a separate design review with PR @natalia-fitzgerald?
When we were working on the DSR validations and Shared Lending Platform, I think generally we decided on an iterative approach towards a final design review, otherwise branches will get stale / out of sync with other work.
There's still some TODOs as well, so I wouldn't want to do a design review before then.
Other than this process question, I'd be ready to approve as a demonstrable step in the right direction! 🎉
@billhimmelsbach Yes, let's merge this into Additionally, I've matched everything with the Figma as much as I can. If certain design or content items need to be updated, it would not take a significant amount of effort to make the necessary changes. |
Let's have our chat about merging your work and Meissa's in our meeting in a bit, then let's go ahead and put up a design PR after this one is merged if you think it's ready for design review by Natalia. |
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.
Looks good! Tried out a bunch of .csv
s with the just_metadata_branch
and everything looks good enough for now. Wait for @meissadia's review, then merge in. We're agreeing to two more PRs: accessibility improvements and a Natalia review next week.
closes #410
Note
all-current-prs
new_all_branch
just_metadata_branch
branch of sbl-filingScreenshot (04/24/2024)
New Test csv's
Syntactical Errors
Logical Warnings/Errors
not-enough-columns-parsing.csv
How to Test
SBL_REGTECH_FILING_URL
is set properly in your.env
yarn install
to getluxon
yarn up -i design-system-react
to get the latestdesign-system-react
dependencyyarn update
, reset all Docker volumes and containers,yarn seed
and set the user to have a LEI in Keycloakhttp://localhost:8899/filing
and click on 'Upload' to navigate to the lei's specific Upload page.csv
file -- can use test .csv files from https://github.com/cfpb/regtech-data-validator/tree/main/tests/data[WIP] Control Flow Testing
/filing
Save and continue
button should be enabled after the Upload/Validation succeedssbl-filing
docker container, and then try to upload -- should see the UPLOAD_FAILS error.Changes
enhancement(Upload - File Details): Warnings and Errors use special messages and the yellow icon based on validation resultsNext PR
uploadedBefore
true