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

Add react helmet and titles #548

Merged
merged 11 commits into from
Dec 9, 2021
Merged

Conversation

bluSCALE4
Copy link
Contributor

Update pages so titles are updated on transitions.

@bluSCALE4 bluSCALE4 mentioned this pull request Sep 8, 2021
11 tasks
Copy link
Collaborator

@thegrims thegrims left a comment

Choose a reason for hiding this comment

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

Seeing this error in the unit test
Invariant failed: You should not use <Prompt> outside a <Router>

<FormProvider {...methods}>
<form tabIndex={-1} onSubmit={handleSubmit(onAdvance)}>
<Helmet>
<title>1098-E Information | Deductions | UsTaxes.org</title>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would it be better for all these titles to be in one place in the Main component

@codecov
Copy link

codecov bot commented Dec 9, 2021

Codecov Report

Merging #548 (9c3bfe7) into master (3a96917) will increase coverage by 2.01%.
The diff coverage is 82.05%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #548      +/-   ##
==========================================
+ Coverage   69.25%   71.27%   +2.01%     
==========================================
  Files         114      116       +2     
  Lines        3786     3815      +29     
  Branches      587      595       +8     
==========================================
+ Hits         2622     2719      +97     
+ Misses       1150     1082      -68     
  Partials       14       14              
Impacted Files Coverage Δ
src/components/GettingStarted.tsx 37.50% <ø> (ø)
src/components/NoMatchPage.tsx 0.00% <ø> (ø)
src/components/Questions.tsx 95.65% <ø> (ø)
src/components/RefundBankAccount.tsx 8.33% <ø> (ø)
src/components/TaxPayer/Address.tsx 92.85% <ø> (ø)
src/components/TaxPayer/SpouseAndDependent.tsx 92.00% <ø> (ø)
src/components/createPDF.tsx 3.22% <ø> (ø)
src/components/deductions/F1098eInfo.tsx 16.00% <0.00%> (-0.67%) ⬇️
src/components/income/RealEstate.tsx 8.06% <0.00%> (ø)
src/components/income/W2JobInfo.tsx 100.00% <ø> (ø)
... and 13 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3a96917...9c3bfe7. Read the comment docs.

@thegrims thegrims merged commit 739d563 into ustaxes:master Dec 9, 2021
zakpatterson pushed a commit that referenced this pull request Dec 18, 2021
* Add react helmet and titles

* Move focus to fields when adding records

* Add auto focus; Add sub form onSave and handleSubmit trigger; Add Prompt component to prevent data loss

* Fix issues with Prompt

* Remove preventDefault preventing advancing to next page

* add router wrapper to test component

* removing default value from W2JobInfo

* removing autofocus that was causing tests to fail

Co-authored-by: Aidan Grimshaw <grimshawaidan@gmail.com>
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.

3 participants