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

[Page] Resolve Errors & Warnings #423

Merged
merged 118 commits into from May 6, 2024

Conversation

shindigira
Copy link
Contributor

@shindigira shindigira commented Apr 26, 2024

closes #333
closes #401

Note (05/02/24)

The sbl-filing branch used is main -- latest working commit 0ddf51bd4bd0ab7aefac8cbb02c7797077885620

branched off 331-filing-routing_phase2-live-data

Changes

  • feat(Resolve Errors): Single-Field Errors
  • feat(Resolve Errors): Multi-Field Errors
  • feat(Resolve Errors): Register-Level Errors
  • feat(Resolve Errors): Alerts present depending on errors or no errors
  • feat(Resolve Errors): Swappable between Step 1 (Syntax Errors) and Step 2 (Logical Errors/Register Errors); navigates to warnings on Step 2 (no errors)
  • enhancement(Upload): added an enableLongPolling boolean to useGetSubmissionLatest; default false
  • enhancement(Resolve Errors): Implemented 'react-markdown' -- Validation Description
  • chore(Resolve Errors): TypeScript handling in FilingErrors.helpers.ts
  • chore(Upload): Hide FilingNavButtons if still loading
  • feat(Resolve Errors): if a get submission latest fails, there is an Alert that pops up

Next PRs

  • Pagination
  • Accessibility pass
  • Table styling size adjustments
  • Download linking the validation report

How to Test

  1. yarn install to install react-markdown
  2. Select an institution and upload with the csv files provided (Syntax Errors and then Logical/Register Errors)
  3. Ensure the right Alert occurs based on the error (or no errors) per segment
  4. Verify all proper data is present per field-level section

Test CSV's to use

all-errors-warnings-no-syntax-errors.csv
sblar_syntax_errors_large.csv
sblar_syntax_errors.csv

Note: If Syntax Errors are present, then validation for the logical errors/warnings do not occur. Hence, why the test CSV's has either syntax errors or logical errors; not both.

Screenshots

Markdown
Screenshot 2024-05-02 at 2 40 05 AM
SingleFieldErrors Success Register-Level
Screenshot 2024-05-01 at 4 44 52 PM Screenshot 2024-05-01 at 4 45 10 PM Screenshot 2024-05-01 at 4 45 45 PM

…flatten the routing structure and hopefully simplify maintenance
- Filing creation
- Rename fetchFilingSubmissionLatest to fetchSubmissionLatest
- Created useFilingAndSubmissionInfo
@shindigira shindigira changed the title Resolve Errors - Phase 1 Resolve Errors & Warnings - Phase 1 May 3, 2024
@billhimmelsbach billhimmelsbach mentioned this pull request May 3, 2024
@shindigira shindigira changed the title Resolve Errors & Warnings - Phase 1 Resolve Errors & Warnings May 3, 2024
@shindigira shindigira changed the title Resolve Errors & Warnings [Page] Resolve Errors & Warnings May 3, 2024
Copy link
Collaborator

@meissadia meissadia left a comment

Choose a reason for hiding this comment

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

Couple cleanup points, but the major find is the Subheading content for Errors step 2. Looking great though!

src/pages/Filing/FilingApp/FieldEntry.tsx Show resolved Hide resolved
src/pages/Filing/FilingApp/FilingErrors/index.tsx Outdated Show resolved Hide resolved
…nto 333-resolve-errors-warnings-skeleton-phase1
@shindigira shindigira requested a review from meissadia May 6, 2024 19:00
@shindigira shindigira requested a review from meissadia May 6, 2024 19:58
Copy link
Collaborator

@meissadia meissadia left a comment

Choose a reason for hiding this comment

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

👍🏾

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.

This is super great! (good eye @meissadia finding the content changes)

Looks like we're missing blue underlines under some links that are in the Figma, could you create a separate ticket or fix that here?
Screenshot 2024-05-06 at 3 55 14 PM
Screenshot 2024-05-06 at 3 55 25 PM

@shindigira
Copy link
Contributor Author

shindigira commented May 6, 2024

This is super great! (good eye @meissadia finding the content changes)

Looks like we're missing blue underlines under some links that are in the Figma, could you create a separate ticket or fix that here? Screenshot 2024-05-06 at 3 55 14 PM Screenshot 2024-05-06 at 3 55 25 PM

Thanks for the find. This appears to be a DS requirement for links to be nested under a p, li or dd element.

We should address this outside of this PR since this styling change could affect all links through the app.
Screenshot 2024-05-06 at 4 28 07 PM

@billhimmelsbach
Copy link
Contributor

We should address this outside of this PR since this styling change could affect all links through the app.

Sounds good, can we make a ticket for it, then this is good to go @shindigira!

@shindigira
Copy link
Contributor Author

We should address this outside of this PR since this styling change could affect all links through the app.

Sounds good, can we make a ticket for it, then this is good to go @shindigira!

#456

@shindigira shindigira merged commit 4429fa1 into main May 6, 2024
2 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
Development

Successfully merging this pull request may close these issues.

[Page] Multifield Errors [Page][Resolve Errors/Warnings] Basic skeleton of errors and warnings
3 participants