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

[Design Review] Upload #430

Merged
merged 221 commits into from May 15, 2024
Merged

[Design Review] Upload #430

merged 221 commits into from May 15, 2024

Conversation

shindigira
Copy link
Contributor

@shindigira shindigira commented Apr 29, 2024

closes #480
closes #473
closes #456
closes #467
closes #478

Note

  • yarn install to pull in the DSR changes to the pagination component
  • Screenshots show a checkmark instead of an exclamation mark during errors/warnings. This is changed

Changes

  • enhancement(Upload): Updated content to match the excel and figma
  • feat(Upload): initial load (get submission latest) 4xx/5xx's redirect to the 500 page
  • style(Upload Alerts - Links): underlined
  • style(Upload): Updated based on [Design Review] Upload #430 (comment)
  • enhancement(download report): removed caching headers -- using submissionId so the browser caching is fine

Extra note

  • The two scenarios not added to this design review:

    • VALIDATION_EXPIRED (Needs a big file to test the two minute limit)
    • If initial GET LATEST SUBMISSION fails, redirect to 500 page
  • The button changes are not in yet

Screenshots

Introduction

Screenshot 2024-05-10 at 3 01 16 PM

Never uploaded before

Screenshot 2024-05-10 at 1 17 22 PM

Pass

pass_123456789TESTBANK456_small.csv
Screenshot 2024-05-10 at 2 32 07 PM

Warnings

logic-warnings_small.csv
Screenshot 2024-05-10 at 2 32 53 PM

Errors

logic-errors_small.csv
Screenshot 2024-05-10 at 2 33 27 PM

SUBMISSION_ACCEPTED - no warnings

pass_123456789TESTBANK456_small.csv
Screenshot 2024-05-10 at 2 58 09 PM

SUBMISSION_ACCEPTED - warnings

logic-warnings_small.csv
Screenshot 2024-05-10 at 2 59 00 PM

File size upload limit (Can use 2MB test limit -- normally 2GB)

logic-errors_medium.csv (2MB)
Screenshot 2024-05-10 at 2 53 15 PM

Incorrect file type (renamed to `.csv) -- General Catch-All Validation Error

alf-picture copy.csv
Screenshot 2024-05-10 at 2 54 56 PM

Incorrect file type (example .png)

alf-picture
Screenshot 2024-05-10 at 2 59 40 PM

Submission Malformed

format-error__missing-more-columns.csv
Screenshot 2024-05-10 at 3 00 07 PM

…flatten the routing structure and hopefully simplify maintenance
- Filing creation
- Rename fetchFilingSubmissionLatest to fetchSubmissionLatest
- Created useFilingAndSubmissionInfo
@shindigira
Copy link
Contributor Author

shindigira commented May 15, 2024

@natalia-fitzgerald

Regarding the missing scenarios:
Thanks for adding to the list. Yes, those scenarios are not controllable from the frontend. However, the alerts for said scenarios are accounted for.

Regarding the secondary button pipe color:
This is pulled from the design system's button. To change this would require changing a nested DS/DSR item. We should ticket this item. #510

Regarding the secondary button height:
This one also requires a bit of an intricate DS/DSR style change as the buttons do not use a border by default. The change would be to all buttons to use a border with their respective matching color. We should ticket this item as well. #511

InstitutionHeading (2 spaces before/after pipe) and button content has been updated.

@shindigira shindigira requested a review from meissadia May 15, 2024 17:01
@shindigira shindigira changed the title [Design Review] Upload [Design Review] Upload, Errors & Warnings May 15, 2024
@shindigira shindigira changed the title [Design Review] Upload, Errors & Warnings [Design Review] Upload May 15, 2024
Copy link
Contributor

@billhimmelsbach billhimmelsbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Approving this for merging so that everything can land on our preview environment, but @natalia-fitzgerald will still get the final say on the design review. ✅

I've also added a ticket to cleanup some of our Typescript exceptions for post-mvp:
#528

'Validation STILL in-progress - Long Polling - RETRYING',
response,
);
if (import.meta.env.DEV) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonder how the security scan stuff will handle these dev only console.logs. We'll find out. 👍

@@ -6,7 +6,7 @@ type ButtonProperties = ComponentProps<typeof ButtonDSR>;
/* Handles new secondary styling */

const newSecondaryStyle =
'cursor-pointer border-[1px] border-solid border-pacific bg-white text-pacific hover:border-[#0050B4] hover:bg-white hover:text-[#0050B4] focus:bg-transparent disabled:cursor-not-allowed disabled:border-none';
'cursor-pointer border-[1px] border-solid border-pacific bg-white text-pacific hover:border-[#0050B4] hover:bg-white hover:text-[#0050B4] focus:bg-white disabled:cursor-not-allowed disabled:border-none';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking forward to getting this in the DSR post-mvp.

dataGetSubmissionLatest.state === FileSubmissionState.SUBMISSION_ACCEPTED
? 'Your file contains no errors and warnings have been verified'
: // @ts-expect-error key in
dataGetSubmissionLatest.state in fileSubmissionValidationStatus
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh interesting... I added the exception to this ticket

@shindigira shindigira merged commit e723fc0 into main May 15, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants