generated from cfpb/open-source-project-template
-
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
[Design Review] Upload #430
Merged
Merged
Changes from 220 commits
Commits
Show all changes
221 commits
Select commit
Hold shift + click to select a range
8688b34
fix: [axiosService] Add missing POST parameter
meissadia 6822d26
[Filing Routing] Phase 1 - Mock Filing progress
meissadia 9849158
[Filing Routing] Phase 1 - Separate routes per step
meissadia fea91e3
fix: axiosService.request - remove unneeded `data` param in favor of …
meissadia 46971d5
fix: useMemo to avoid duplicate placeholder objects being generated
meissadia 2c2de5f
fix: FilingStepWrapper.helpers - remove unused eslint rule disables
meissadia bc14e84
[Filing Routing] Phase 1 - Mock Filing progress
meissadia 2cbd121
[Filing Routing] Phase 1 - Separate routes per step
meissadia e7d28d1
fix: useMemo to avoid duplicate placeholder objects being generated
meissadia 9c52113
fix: FilingStepWrapper.helpers - remove unused eslint rule disables
meissadia d912fc7
Update imports after rebase
meissadia 9257eb7
Update imports after rebase part 2
meissadia c60e6e6
Add "tasks" to our mock filing
meissadia 2867e7b
Sync axiosService file
meissadia cd9a385
Filing step - Display "current" highlight even if step is incomplete
meissadia b937bc4
Filing - Placeholder for "is step complete?" status
meissadia 5b6c4f3
Filing step - Improve spacing between step indicators
meissadia c0be487
Filing steps - Remove custom hook that contained routes, which helps …
meissadia f66f7b3
Merge branch 'main' into 331-filing-routing_phase1-mock-data
meissadia 0c0d989
Filing steps - Revamp flex alignment of page elements
meissadia cd69c7b
[ScreenReaderOnly] Component: Extract from Filing step indicator code…
meissadia e64c41c
Filing steps - More dynamic routes (year and lei from the url)
meissadia a0dcab9
Filing steps - Add TODO to check on StepIndicator widths
meissadia 74506f3
Merge branch 'main' into 331-filing-routing_phase1-mock-data
meissadia f8f1bdc
fix: [axiosService] Always include "body" for post/put/patch requests
meissadia 502c82c
feat: [API]
meissadia 152ceb6
feat: [FilingOverview] Determine and link to next incomplete step
meissadia 4ebc759
feat: [Filing] Display current Institution's progress within the subm…
meissadia a0fa68b
feat: [Filing] Placeholder pages for Filing steps
meissadia 77c7ea0
fix: [Institution card] Routing logic for a Submissio n with a previo…
meissadia e2ca8d2
feat: [FileSubmission] Integrate Filing step indicator and navigation…
meissadia 3b1f9a7
Merge branch 'main' into 331-filing-routing_phase2-live-data
meissadia 45c787c
feat: [Filing Steps] Split out the FilingSteps and FilingNavButtons i…
meissadia d6a0aa8
fix: [Filing Steps] Adjust font color/weight based on step status
meissadia 26799d8
Merge branch 'main' into 331-filing-routing_phase2-live-data
meissadia fe318e5
start wip
shindigira 19fbbaf
added Alert
shindigira beb8475
single errors count
shindigira 2d34bcf
added TODOs
shindigira 1625732
resolved merge conflicts -- after upload adjustments PR
shindigira be097dd
Merge main
meissadia dc1e91f
task: More compact error/loading checks
meissadia 9baf597
fix(Upload - Infinite Loading): adjusted the useGetLatestSubmission s…
shindigira c355edf
resolved merge conflict
shindigira a7caaf4
alternative solution to react-query settings changes on useGetSubmiss…
shindigira 3b0e54f
removed unnecessary variable
shindigira 91970e5
Merge branch '331-filing-routing_phase2-live-data' of github.com:cfpb…
shindigira 1d1bf6e
removed unusued
shindigira 1964c52
Merge branch '331-filing-routing_phase2-live-data' of github.com:cfpb…
shindigira d70c852
best solution for initial check
shindigira 34c6444
Merge branch '331-filing-routing_phase2-live-data' of github.com:cfpb…
shindigira 33cf044
chore(errors_warnings): Created helper functions to sort between erro…
shindigira 513e2d2
chore(errors_warnings): Updated errors and warnings helper functions
shindigira a546911
chore(errors_warnings): Added Alert links
shindigira f8b9e32
fix phantom space
shindigira f6450bc
remove refetches on window focus by default
shindigira 47b360a
disabled refetch on window focus
shindigira 997da1b
resolve comment conflict
shindigira e372b60
style(FilingNavButtons): 18px between buttons (according to figma), m…
shindigira 527bbf1
task: [useFilingAndSubmissionInfo] Simplify fetching logic
meissadia 211a45f
fix: [FileSubmission] New Filers get stuck in "Loading" state on init…
meissadia 95f6108
task: [useFilingAndSubmissionInfo] Set staletime to 0
meissadia 8438199
task: [useFilingAndSubmissionInfo] Utilize useGetSubmissionLatest hook
meissadia 614ca43
task: [fetchSubmissionLatest] Delete
meissadia 4612751
Merge branch 'main' into 331-filing-routing_phase2-live-data
meissadia 17b71eb
task: Utilize some of the Design System colors that have been integra…
meissadia d661744
fix: [useFilingAndSubmissionInfo] Ensure Filing is created before fet…
meissadia b856cda
added a check for register errors
shindigira 963a7ca
task: Use fetchFilingSubmissionLatest
meissadia 53a1793
fixed one typescript item
shindigira 158b8e1
Merge branch '331-filing-routing_phase2-live-data' of github.com:cfpb…
shindigira 1d3a68d
chore(single-field-error): subfolder start
shindigira 7a4bc32
enhancement(single-field-errors): Started table implementation
shindigira 74a921e
enhancement(single-field-errors): Table - rows
shindigira 273834e
resolved merge conflict
shindigira fa28321
Removed unused file
shindigira 0a47c45
chore(single-field-errors): set tables to be horizontal scrollable
shindigira 7603d16
chore(resolve-errors-warnings): updated function to separate singles/…
shindigira 4c51b9f
formatting start
shindigira be6704d
feat(errors): multifield start
shindigira 8486616
chore(errors): Updated Step2 with MultiErrors
shindigira 0a82a76
feat(errors): Alerts properly toggle depending on errors
shindigira c050a3a
feat(errors): Multifield errors rendering
shindigira 0d79dcd
refactor(errors): Used a common component between single and multi
shindigira 63007c3
feat(errors): Added Register level errors
shindigira cd8738a
refactor(errors): swapped out hook for useGetSubmissionLatest
shindigira dbbf77a
Merge branch 'main' of github.com:cfpb/sbl-frontend into 333-resolve-…
shindigira 18d3262
chore(Resolve Errors): added commented out td shrink for demo
shindigira 17f2f68
refactor(get submission latest): refactored the hook and axios reques…
shindigira 3aae0fc
feat(Resolve Errors): Buttons that toggle between state or transition…
shindigira 574b2e9
style(Resolve Errors): 18px between buttons
shindigira 51f695b
feat(Upload): added an enableLongPolling boolean to useGetSubmissionL…
shindigira 4bf9507
enhancement(Resolve Errors): Implemented 'react-markdown' in Resolve …
shindigira 05d64b1
fix(Resolve Errors): updated Link with the proper component
shindigira 67be125
ts error
shindigira bbef90c
update(Resolve Errors): due to sbl-filing data schema change -- valid…
shindigira 7d98720
typescript update
shindigira ef61955
more TS handling
shindigira d380708
enhancement(Upload): Hide FilingNavButtons if still loading
shindigira acb452f
feat(Resolve Errors): if a get submission latest fails, there is an a…
shindigira 2b16c0d
pathing updates
shindigira cfe5e33
warnings skeleton complete
shindigira 50d0061
refactor(Errors/Warnings): Made FieldErrorsSummary more flexible
shindigira f7338b1
renamed components handling both errors and warnings to be more appro…
shindigira f8f44d5
TypeScript handling -- FieldEntry
shindigira b49a472
Merge branch 'main' of github.com:cfpb/sbl-frontend into 333-resolve-…
shindigira 7f7a324
column ref
shindigira 74a5f0f
resolve merge conflicts
shindigira 759c2f6
added error incorrect file type based on status 415
shindigira e78eabd
removed unused check due to backend data schema change
shindigira bb8675a
pulled in errors and warnings; resolved merge conflicts
shindigira 142e82a
Merge branch 'main' of github.com:cfpb/sbl-frontend into 333-resolve-…
shindigira 0254a14
Merge branch 'design-review-upload' of github.com:cfpb/sbl-frontend i…
shindigira 3e3e31d
Merge branch 'main' of github.com:cfpb/sbl-frontend into 333-resolve-…
shindigira 6335396
step2 message fixed
shindigira 3e20323
fixed isstep2 subheading on errors
shindigira 931fd71
final isstep2 fix
shindigira d6be6e0
Merge branch 'main' of github.com:cfpb/sbl-frontend into design-revie…
shindigira 6fcd5f9
fix(record_no): In the Error/Warnings tables, incremented the row num…
shindigira ff752e0
chore(filingTypes): added total_count to a filing type
shindigira 7a15556
styling(pagination/tables): extra unused rows are now white
shindigira fb68da3
style(table): removed the every other table row background color
shindigira 8d9504a
enhancement(Upload): SUBMISSION_ACCEPTED warnings and no warnings dif…
shindigira b1e7183
change(Upload): The Upload Alert is now always present if there was a…
shindigira c2d0738
enhancement(Upload): Redirect to 500 page if initial get submission l…
shindigira 46c96a8
enhancement(Upload): Updated figma/excel up with new success scenarios
shindigira 3d8244b
wording update
shindigira 47f5143
general upload alert error implemented
shindigira a15f9cd
enhancement(links): Modified uses of Alert and TextIntroduction to us…
shindigira e8d2080
Merge branch '473-upload-excel-figma-content-update' of github.com:cf…
shindigira bb3c8f0
fixed a missing import
shindigira 0122810
fixed a missing import 2
shindigira 719d6f9
addressed the validatedomnest error in TextIntroduction
shindigira 179ed6c
corrected SUBMISSION_ACCEPTED no warnings
shindigira bb0e63a
more Alert references
shindigira 555ee1f
chore
shindigira f30bd3b
removed p
shindigira 9fb67f1
redirect corrected
shindigira 26475b8
,
shindigira b0ea143
more robust redirect logic
shindigira 5e16184
underline link start
shindigira ec1af5a
underline instead if Alert wrapper
shindigira f7657be
step1 header underline
shindigira cda1267
missing link ref
shindigira c47c503
missing link ref 2
shindigira 67e6a12
underlined links
shindigira d0e5d3e
content(Resolve Errors): Text Introduction content updated
shindigira ac0c914
chore(longpolling): set delay to one second
shindigira 441e138
style(FieldLinks - Download report): updated button style based on figma
shindigira d89e797
content(FilingErrorsAlerts): Updated based on figma updates
shindigira 398c4d6
feat(Resolve Errors - Bottom Alert): Syntax or logic errors warning n…
shindigira a023107
fix(time): set to the proper one second
shindigira eebc3aa
feat(Resolve Errors - Bottom Alert): Syntax or logic errors warning n…
shindigira a57dd6b
style(Upload): errors or warnings in validation details icon is yellow
shindigira 09bbdd2
style(Alert - underline links): changed to border bottom solid
shindigira 4507b06
style(underline links): changed to border bottom solid
shindigira fbe8e6f
style(underlined error links): utlize text-decoration underline
shindigira 0292c19
content(Resolve Errors): single field errors description update
shindigira 108dcf2
dotted underline
shindigira 6ea1b08
underline solid to dotted
shindigira 8dafb4b
focus style on validation link
shindigira 378013a
content update - warning alert
shindigira b198f6e
missing styles
shindigira 5ff8f26
more content update
shindigira 9b6ad8b
resolved merge conflicts
shindigira 8d1623e
desp(DSR): pagination component update
shindigira 4dba6db
deps(DSR): updated DSR's pagination component
shindigira 3e21fc6
style: TextIntroduction description instances utilize Paragraph wrappers
shindigira ba5baa4
design - upload/errors/warnings
shindigira 49c305a
error link hover border solid
shindigira 7afd9fb
Merge branch 'resolve-errors-bugs-1' of github.com:cfpb/sbl-frontend …
shindigira 1230fb6
border separate on hidden table
shindigira e45d3c4
Merge branch 'resolve-errors-bugs-1' of github.com:cfpb/sbl-frontend …
shindigira 5c3c48e
fix(Upload - Alert): after attempting above file size upload, alert s…
shindigira 04bafe9
Merge branch 'design-review-upload' of github.com:cfpb/sbl-frontend i…
shindigira 4f8448c
ref fix for Paragraph in contact
shindigira 40b4ac5
exclamation mark fixed in upload
shindigira a84f734
Merge branch 'design-review-upload' of github.com:cfpb/sbl-frontend i…
shindigira f0a25bc
resolve merge conflict
shindigira dda1f9a
download report and upload is not visible if no warnings
shindigira 6bd2cc9
Merge branch 'resolve-errors-bugs-1' of github.com:cfpb/sbl-frontend …
shindigira a2b142b
Merge branch 'main' of github.com:cfpb/sbl-frontend into errors-and-u…
shindigira 8dd1d80
style(Button): focus -- bg-white
shindigira 5892774
Merge branch 'design-review-upload' of github.com:cfpb/sbl-frontend i…
shindigira 9b102d2
feat(download report): removed caching heads -- using submissionId so…
shindigira 76fd904
Merge branch 'design-review-upload' of github.com:cfpb/sbl-frontend i…
shindigira 57e8156
Merge branch 'main' of github.com:cfpb/sbl-frontend into design-revie…
shindigira 16fbfd8
Merge branch 'main' of github.com:cfpb/sbl-frontend into resolve-erro…
shindigira 74b4f7c
reverted cache headers change
shindigira 823d864
Merge branch 'design-review-upload' of github.com:cfpb/sbl-frontend i…
shindigira 0b2ead0
enabled one second polling
shindigira 0a788af
content(Upload): updated based on figma updates
shindigira 49b7a97
Paragraph wrapping -- underlined links
shindigira e45bb8a
resolve merge conflicts
shindigira 6b259f3
paragraph wrapping, logicerroralert
shindigira 7b26caa
resolve merge conflicts
shindigira 0c1e09f
TODO - table stripe fix
shindigira 9ada256
Merge branch 'resolve-errors-bugs-1' of github.com:cfpb/sbl-frontend …
shindigira 4dac8a3
Merge branch 'main' into exponential-backoff-one-second
shindigira 56d6c67
button content
shindigira ba66606
Merge branch 'design-review-upload' of github.com:cfpb/sbl-frontend i…
shindigira 8f740e8
Merge branch 'main' of github.com:cfpb/sbl-frontend into errors-and-u…
shindigira 3615120
Merge branch 'main' into design-review-upload
shindigira e600ff7
Merge branch 'main' into resolve-errors-bugs-1
shindigira 71214e1
style(InstitutionHeading): 2 spaces instead of 1
shindigira 3f6849b
Merge branch 'design-review-upload' of github.com:cfpb/sbl-frontend i…
shindigira 86880b0
resolve merge conflict - one second longpolling
shindigira e2a465b
Merge branch 'main' of github.com:cfpb/sbl-frontend into errors-and-u…
shindigira e32cb89
merged with main
shindigira 5e90e17
Merge branch 'main' of github.com:cfpb/sbl-frontend into design-revie…
shindigira 85b8db5
Merge branch 'resolve-errors-bugs-1' of github.com:cfpb/sbl-frontend …
shindigira ebb9e1c
Merge branch 'design-review-upload' of github.com:cfpb/sbl-frontend i…
shindigira df816a9
updated with main
shindigira 5b68cf3
updated with main
shindigira 3f3398e
Merge branch 'design-review-upload' of github.com:cfpb/sbl-frontend i…
shindigira c9c78a5
merged with all
shindigira d36a57b
resolve merge conflict part 2
shindigira 137f402
point of contact - double issue
shindigira aa28d1d
upload button always primary
shindigira d9abe04
resolve merge conflicts
shindigira d757afc
Merge branch 'main' of github.com:cfpb/sbl-frontend into design-revie…
shindigira File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looking forward to getting this in the DSR post-mvp. |
||
|
||
export function Button({ | ||
children, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,27 +6,32 @@ import { fileSubmissionValidationStatus } from './FileSubmission.data'; | |
interface FileDetailsProperties { | ||
dataGetSubmissionLatest: SubmissionResponse | undefined; | ||
errorGetSubmissionLatest: unknown; | ||
hasWarnings: boolean; | ||
} | ||
|
||
function FileDetailsValidation({ | ||
dataGetSubmissionLatest, | ||
errorGetSubmissionLatest, | ||
hasWarnings, | ||
}: FileDetailsProperties): JSX.Element | null { | ||
// Should only show once an validation has completed | ||
if ( | ||
!dataGetSubmissionLatest?.filename && | ||
!dataGetSubmissionLatest?.submission_time | ||
errorGetSubmissionLatest || | ||
(!dataGetSubmissionLatest?.filename && | ||
!dataGetSubmissionLatest?.submission_time) | ||
) | ||
return null; | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment | ||
const validationStatusMessage: string = errorGetSubmissionLatest | ||
? fileSubmissionValidationStatus[FileSubmissionState.VALIDATION_ERROR] | ||
: // @ts-expect-error key in | ||
dataGetSubmissionLatest.state in fileSubmissionValidationStatus | ||
? // @ts-expect-error use key | ||
fileSubmissionValidationStatus[dataGetSubmissionLatest.state] | ||
: ''; | ||
const validationStatusMessage: string = | ||
hasWarnings && | ||
dataGetSubmissionLatest.state === FileSubmissionState.SUBMISSION_ACCEPTED | ||
? 'Your file contains no errors and warnings have been verified' | ||
: // @ts-expect-error key in | ||
dataGetSubmissionLatest.state in fileSubmissionValidationStatus | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh interesting... I added the exception to this ticket |
||
? // @ts-expect-error use key | ||
fileSubmissionValidationStatus[dataGetSubmissionLatest.state] | ||
: ''; | ||
|
||
return ( | ||
<div id='file-details-validation'> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Wonder how the security scan stuff will handle these dev only console.logs. We'll find out. 👍