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

Release/v3.7.7 sprint 117 #562

Merged
merged 126 commits into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
967a960
data files browser load test
jtimpe Dec 16, 2024
8663809
parametrize + default cypress token
jtimpe Dec 16, 2024
efaa7f1
parametrize + default base url
jtimpe Dec 16, 2024
e21fc21
- Updated function to prioritize querset based on file section
elipe17 Dec 17, 2024
1469b69
- Linting
elipe17 Dec 17, 2024
0625807
- exclude cat2 error about update indicator wrt S3/S4 files
elipe17 Dec 17, 2024
61de699
- Changed order for consistency
elipe17 Dec 17, 2024
4ad3e58
3.7.5 updates
victoriaatraft Dec 17, 2024
6800394
Symbols & table divisions
reitermb Dec 17, 2024
ec1e27f
Merge branch 'develop' into 3.7.5-release-notes
reitermb Dec 17, 2024
8a85e74
- Updated spreadsheet writer to be a bit smarter with respect to the …
elipe17 Dec 18, 2024
9d9df82
- Added deprecated flag to parser error model
elipe17 Dec 18, 2024
41341d4
Merge branch 'develop' into 3.7.5-release-notes
andrew-jameson Dec 18, 2024
91c01e3
- add var for one off invokes of validators in parse
elipe17 Dec 18, 2024
7eea8d9
- Linting
elipe17 Dec 18, 2024
594ba3d
- updated test case consistency
elipe17 Dec 19, 2024
2dd699f
enable celery worker task events
jtimpe Dec 19, 2024
392d0dd
add api scenario
jtimpe Dec 19, 2024
066fe07
add taskfile scenario switching
jtimpe Dec 19, 2024
a32d6ec
add api test sleep
jtimpe Dec 19, 2024
ccd2ca8
Merge pull request #3382 from raft-tech/3.7.5-release-notes
victoriaatraft Dec 19, 2024
acb6dea
- Fix error with deprecate_call
elipe17 Dec 19, 2024
23092ac
- Fixed cat1 tests
elipe17 Dec 19, 2024
1174bf8
- Fixed cat2 tests
elipe17 Dec 19, 2024
18f7f03
- Fixed cat3 tests
elipe17 Dec 19, 2024
2954de4
- Updated test
elipe17 Dec 19, 2024
a12166c
- Linting
elipe17 Dec 19, 2024
c312675
readme outline
jtimpe Dec 19, 2024
1ab7010
- updated aggregates to not consider deprecated errors
elipe17 Dec 19, 2024
66d4140
- Added deprecation tests for all validators
elipe17 Dec 19, 2024
ad6c0b3
- Linting
elipe17 Dec 19, 2024
00fe2eb
- Remove unintentional inclusion of validator
elipe17 Dec 19, 2024
2c7ab0d
- Update docstring
elipe17 Dec 19, 2024
c55f2af
formatting
jtimpe Dec 19, 2024
aa804e8
readme examples
jtimpe Dec 19, 2024
dc939c7
org
jtimpe Dec 19, 2024
205b1c5
rm comments
jtimpe Dec 19, 2024
c6825d0
Merge branch 'develop' into 2346-load-tests
jtimpe Dec 19, 2024
833e978
updated images
victoriaatraft Dec 19, 2024
ff01121
Merge branch 'develop' into 3.7.5-release-notes
reitermb Dec 19, 2024
d308af6
Merge pull request #3389 from raft-tech/3.7.5-release-notes
victoriaatraft Dec 19, 2024
c9c5fe5
dynamic user id
jtimpe Dec 20, 2024
7757a46
- Updated return type of decorators
elipe17 Dec 20, 2024
e5bf647
- Added deprecation warning err message for deprecate decorator
elipe17 Dec 20, 2024
2be3cf2
- linting
elipe17 Dec 20, 2024
82bb856
Merge branch 'develop' into 2346-load-tests
jtimpe Dec 20, 2024
cc6ae6d
move settings
jtimpe Dec 20, 2024
0984b95
3243 promtail pipeline (#3285)
raftmsohani Dec 26, 2024
18b29ea
- Updated validation to return a common dataclass
elipe17 Dec 31, 2024
3b54a4a
- linting
elipe17 Dec 31, 2024
19030a1
- Updated error message to match UX research and added link to KC
elipe17 Dec 31, 2024
d40eb91
- Update labels
elipe17 Dec 31, 2024
92f3dd3
- linting
elipe17 Dec 31, 2024
dc90779
- update to only accept text files
elipe17 Dec 31, 2024
eaf8dc0
- disable tests
elipe17 Dec 31, 2024
e0b23fb
Revert "- disable tests"
elipe17 Dec 31, 2024
1439aee
- Fixed logic causing download button to disappear
elipe17 Jan 1, 2025
6846a01
- Updating to align with what devs actually do
elipe17 Jan 1, 2025
0d435d3
- Updated test due to new year
elipe17 Jan 1, 2025
aba6139
- update tests
elipe17 Jan 2, 2025
86b70dd
- update aria label
elipe17 Jan 3, 2025
45464ab
- update year
elipe17 Jan 3, 2025
d67f9cd
Merge branch 'develop' into 3341-missing-critical-errors
ADPennington Jan 3, 2025
f01cfef
1577 - Upgrade frontend deps (#3327)
jtimpe Jan 3, 2025
086217b
Merge branch 'develop' of https://github.com/raft-tech/TANF-app into …
elipe17 Jan 3, 2025
0259c7a
Merge branch 'develop' into 2175-download-button
elipe17 Jan 3, 2025
cd84589
Merge branch 'develop' into 2699-refine-labels
elipe17 Jan 3, 2025
6bbc3e9
Merge branch 'develop' into 3342-deprecate-cat4-vals
elipe17 Jan 3, 2025
e2e05cd
Merge branch 'develop' into 3341-missing-critical-errors
elipe17 Jan 3, 2025
d516f2d
make date dynamic for test
jtimpe Jan 6, 2025
0323d47
Merge pull request #3405 from raft-tech/fix-isOlderThan-test
jtimpe Jan 6, 2025
396c3a6
Merge branch 'develop' into 2175-download-button
jtimpe Jan 6, 2025
fe45ba9
Merge branch 'develop' into 2873-ext-err-msg
jtimpe Jan 7, 2025
68504b4
Merge branch 'develop' into 2699-refine-labels
elipe17 Jan 8, 2025
73ca2a5
Merge branch 'develop' into 3342-deprecate-cat4-vals
elipe17 Jan 8, 2025
3b6a8ef
Merge branch 'develop' of https://github.com/raft-tech/TANF-app into …
elipe17 Jan 8, 2025
186d977
Merge branch '3341-missing-critical-errors' of https://github.com/raf…
elipe17 Jan 8, 2025
bd236ae
- Re-add removed file types
elipe17 Jan 8, 2025
d326e59
Merge pull request #3381 from raft-tech/3341-missing-critical-errors
elipe17 Jan 8, 2025
abbe447
Merge branch 'develop' of https://github.com/raft-tech/TANF-app into …
elipe17 Jan 8, 2025
4b14e08
Merge branch '3342-deprecate-cat4-vals' of https://github.com/raft-te…
elipe17 Jan 8, 2025
2d01f44
- Revert uuid back to id
elipe17 Jan 8, 2025
1109c2e
Merge branch 'develop' into 2346-load-tests
raftmsohani Jan 9, 2025
25440c5
Merge pull request #3388 from raft-tech/2346-load-tests
jtimpe Jan 13, 2025
33b0f37
Create Winter 2024, Evaluating FRA Submission & Error Reporting.md
reitermb Jan 14, 2025
22d3368
Update Winter 2024, Evaluating FRA Submission & Error Reporting.md
reitermb Jan 14, 2025
fb4ebec
- Updating error message
elipe17 Jan 14, 2025
d6faa15
Merge branch 'develop' into 2873-ext-err-msg
ADPennington Jan 15, 2025
5afd299
Merge pull request #3393 from raft-tech/2873-ext-err-msg
elipe17 Jan 15, 2025
9d2e2eb
Merge branch 'develop' into 2699-refine-labels
elipe17 Jan 15, 2025
baa9801
Merge branch 'develop' into 3342-deprecate-cat4-vals
elipe17 Jan 15, 2025
6ae76ba
Merge branch 'develop' into 2175-download-button
elipe17 Jan 15, 2025
083104b
- Add new value to appropriate schemas
elipe17 Jan 15, 2025
6d98e5f
Update product manager for TDP (#3403)
ADPennington Jan 15, 2025
4c20a59
Merge branch 'develop' into 3386-citizenship-status-new-value
elipe17 Jan 15, 2025
f748ba5
3328 vul audit (#3390)
raftmsohani Jan 17, 2025
6299a38
Merge branch 'develop' into 2175-download-button
ADPennington Jan 17, 2025
f6b83cc
Merge branch 'develop' into 2699-refine-labels
ADPennington Jan 17, 2025
2ae423c
Merge pull request #3394 from raft-tech/2699-refine-labels
elipe17 Jan 18, 2025
da27e04
- updated cat3 validators
elipe17 Jan 18, 2025
778e08a
Merge branch '3386-citizenship-status-new-value' of https://github.co…
elipe17 Jan 18, 2025
a30aee1
Merge branch 'develop' into 2175-download-button
ADPennington Jan 21, 2025
fb36531
Update Winter 2024, Evaluating FRA Submission & Error Reporting.md
reitermb Jan 21, 2025
8bac20f
Merge branch 'develop' into winter2024research
reitermb Jan 21, 2025
048dcbe
Update Winter 2024, Evaluating FRA Submission & Error Reporting.md
reitermb Jan 21, 2025
6871ea6
- Fix fat fingered value
elipe17 Jan 21, 2025
07cf85c
- add missing filter for DFS status
elipe17 Jan 21, 2025
caa336a
Merge branch '3342-deprecate-cat4-vals' of https://github.com/raft-te…
elipe17 Jan 21, 2025
1466354
Merge branch 'develop' into 3342-deprecate-cat4-vals
ADPennington Jan 22, 2025
d5c0c2d
Merge pull request #3396 from raft-tech/2175-download-button
elipe17 Jan 22, 2025
453be00
Merge branch 'develop' of https://github.com/raft-tech/TANF-app into …
elipe17 Jan 22, 2025
14c82e2
Merge branch '3342-deprecate-cat4-vals' of https://github.com/raft-te…
elipe17 Jan 22, 2025
6f775f7
Merge pull request #3383 from raft-tech/3342-deprecate-cat4-vals
elipe17 Jan 22, 2025
06d41eb
Merge branch 'develop' into 3386-citizenship-status-new-value
ADPennington Jan 23, 2025
099b230
Merge branch 'develop' into winter2024research
reitermb Jan 24, 2025
d275470
Merge pull request #3424 from raft-tech/winter2024research
reitermb Jan 24, 2025
e67e58a
Merge branch 'develop' into 3386-citizenship-status-new-value
elipe17 Jan 27, 2025
892c9ce
included 3 value, tests likely to fail
Jan 28, 2025
3be8eb0
Merge branch 'develop' of github.com:raft-tech/TANF-app into develop
Jan 28, 2025
4849833
Revert "included 3 value, tests likely to fail"
Jan 28, 2025
90e2823
Merge pull request #3428 from raft-tech/3386-citizenship-status-new-v…
elipe17 Jan 31, 2025
d920414
variables changes from gender to sex
Jan 31, 2025
0e95366
updating field name to sex including migration
Jan 31, 2025
294857a
3397 fra report types data file model (#3412)
raftmsohani Feb 6, 2025
a655e92
Merge branch 'develop' into hotfix/3450-rename-gender-to-sex
ADPennington Feb 6, 2025
3135a48
Merge pull request #3451 from raft-tech/hotfix/3450-rename-gender-to-sex
jtimpe Feb 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Pull request closes #_
_List the steps to test the PR_
These steps are generic, please adjust as necessary.
```
cd tdrs-frontend && docker-compose -f docker-compose.yml -f docker-compose.local.yml up -d
cd tdrs-backend && docker-compose -f docker-compose.yml -f docker-compose.local.yml up -d
cd tdrs-frontend && docker-compose up --build
cd tdrs-backend && docker-compose up --build
```

1. Open http://localhost:3000/ and sign in.
Expand Down
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Our Pledge

We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ TDP is developed to be (at minimum) compliant with Section 508 of the Rehabilita
|--|--|--|--|
| Product Owner |Lauren Frohlich |@lfrohlich |[email protected]|
| Government Technical Monitor |Alex Pennington |@adpennington |[email protected]|
| Vendor Product Manager |Rob Gendron |@robgendron |rgendron@teamraft.com |
| Vendor Product Manager |Lauren Hux |@lhuxraft |lhux@teamraft.com |
13 changes: 12 additions & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ tasks:
desc: Open a shell in the backend container
dir: tdrs-backend
cmds:
- docker compose -f docker-compose.yml exec web sh
- docker compose -f docker-compose.yml exec web bash

backend-shell:
desc: Open a Django shell in the backend container
Expand Down Expand Up @@ -241,6 +241,17 @@ tasks:
- docker-compose -f docker-compose.local.yml up --build tdp-frontend-test -d
- npm run test:e2e

k6:
desc: Run k6 performance tests
dir: performance-tests
vars:
SCRIPT: '{{.SCRIPT}}'
CYPRESS_TOKEN: '{{.CYPRESS_TOKEN | default "local-cypress-token"}}'
BASE_URL: '{{.BASE_URL | default "http://localhost:3000"}}'
SCENARIO: '{{.SCENARIO}}'
cmds:
- k6 run -e BASE_URL={{.BASE_URL}} -e CYPRESS_TOKEN={{.CYPRESS_TOKEN}} -e SCENARIO={{.SCENARIO}} {{.SCRIPT}}


frontend-lint:
desc: Run eslint in the frontend container
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,303 @@
# Upgrading frontend dependencies (react-scripts v3 to v5)

**Audience**: TDP Software Engineers <br>
**Subject**: Upgrading frontend dependencies - React Scripts v5 upgrade <br>
**Date**: Dec 2, 2024 <br>

## Summary
This technical memorandum focuses on the effort required to upgrade react-scripts (create-react-app) from v3 to v5. This update contains breaking changes which are described, along with the changes required to fix them, below.

1. Webpack changes
2. SASS updates
3. USWDS
4. Browser vs Node runtime (file-type)

## Out of Scope
Out-of-scope for the dependency upgrade is anything not strictly related to the library version differences, including
* Any refactoring for improving readability or performance
* Removing any libraries that are unnecessary
* Fixing any deprecations not causing exceptions
* Fixing any frontend syntax errors or bugs not causing exceptions

Follow-on work has been outlined below and will be incorporated into future tickets.

## Method/Design
This section outlines the process by which frontend dependencies were upgraded, for this cycle. Included are error messages encountered, some background behind the issue or change needed, and the implemented change (or a note that the change was implemented and will be included as part of follow-on work).

### 1. Update all the dependencies using `npm-check-updates`
`npm-check-updates` checks for newer versions of libraries listed in `package.json` and modifies the file so that they can be installed.
* [npm-check-updates](https://github.com/raineorshine/npm-check-updates)


```bash
npx npm-check-updates -u
npm install
```

This will bump every package version to the latest available. However, since certain dependencies require specific versions of other packages, this step is not complete until dependency conflicts are resolved. You may receive errors such as this when compiling the application:

```bash
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! react@"^16.8.0" from the root project
npm ERR! peer react@"^16.8.0" from @material-ui/[email protected]
npm ERR! node_modules/@material-ui/core
npm ERR! @material-ui/core@"^4.11.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"17.0.1" from [email protected]
npm ERR! node_modules/react-dom
npm ERR! react-dom@"^17.0.1" from the root project
```

Downgrade/pin any dependency versions that are in conflict, then recompile.

### 2. Update the linter rules to allow trailing commas

This small change ignores a new linter rule.

* In `.eslintrc.json`, add
```json
"comma-dangle": 0,
```
* In `.prettierrc.json`, add
```json
"singleQuote": true,
"trailingComma": "es5"
```

### 3. Remove SASS_PATH from env

This line appears in the `.env` files, as well as the dockerfile. It will be replaced in step 7 (upgrade USWDS)

```bash
ENV SASS_PATH=node_modules:src
```

### 4. Implement React 18 changes

Another small change enables React 18. In `src/index.js` the root component should now look like this

```javascript
import React from 'react'
import { createRoot } from 'react-dom/client'

// ... other stuff, all the same

const container = document.getElementById('root')
const root = createRoot(container)
root.render(
<Provider store={store}>
<Router store={store} history={history}>
<App />
</Router>
</Provider>
)
```

### 5. Update library imports

Some library imports changed. The new paths are generally included in the error message when compiling/bundling. If they aren't, consult the library's documentation for the new version. If they STILL aren't (it happens), you can go into `node_modules/{package name}/package.json` and find the `exports` section, which lists the export paths. From there, you can dig through the files to find what you're looking for.


One example is `thunk`, which had some minor export changes
```javascript
import thunkMiddleware from 'redux-thunk' // old way

import { thunk } from 'redux-thunk' // new way
```


Named exports (e.g., `import { thunk } from 'redux-thunk'`) can be renamed using the `as` keyword, so implementation code doesn't have to be further changed
```javascript
import { thunk as thunkMiddleware } from 'redux-thunk'
```

### 6. Update SASS import syntax

SASS has deprecated `@import` and global built-in functions to support the new module syntax ([documentation](https://sass-lang.com/documentation/breaking-changes/import/)). The following change was needed

In `src/index.scss` `@import` becomes `@forward`

```scss
@forward "src/assets/uswds/_uswds-theme-general";

@forward "uswds";

@forward 'src/assets/App';
@forward 'src/assets/GovBanner';
@forward 'src/assets/Header';
// etc
```

### 7. Implement USWDS v3

Upgrading SASS required that USWDS be upgraded to v3, which supports the new SASS modules. The [v3 migration guide](https://designsystem.digital.gov/documentation/migration/) was primarily used to perform the updates.


* `package.json` - `start` and `build` need the following pre-pended to the react-scripts command
```
SASS_PATH=\"`cd \"./src\";pwd`:./node_modules/@uswds:./node_modules/@uswds/uswds/packages\"
```
* e.g.
```json
"start": "SASS_PATH=\"`cd \"./src\";pwd`:./node_modules/@uswds:./node_modules/@uswds/uswds/packages\" react-scripts start",
"build": "sh -ac '. ./.env.${REACT_APP_ENV}; SASS_PATH=\"`cd \"./src\";pwd`:./node_modules/@uswds:./node_modules/@uswds/uswds/packages\" react-scripts build'",
```
* Theme customizations must be moved to a single file (imported once in `src/index.scss`)
* Everything was moved to `src/assets/uswds/_uswds-theme-general.scss` following the migration guide
* It is critical that all variables customized must have matching default in uswds config. If not, you will get weird import errors, like: `SassError: This module was already loaded, so it can't be configured using "with".`
* Variables must also be moved to a separate file, on their own: `src/assets/uswds/_variables.scss`
```scss
$disabled-button-color: #4A4A4A;
$gov-banner-background: #122E51;
// etc
```
* Now must be imported by `@use "./assets/uswds/_variables" as *;` in custom scss files (`GovBanner.scss`, `Footer.scss`, etc)
* Imports changed slightly for components and sass files (import paths can be found in `node_modules/@uswds/uswds/package.json` in the `exports` section)
* Components
```javascript
import { fileInput } from '@uswds/uswds/src/js/components'
```
* SASS files (must `@use "{lib/file}" as *` to bring it into the same namespace)
```scss
@use "uswds-core" as *;
@use "./assets/uswds/_variables" as *;
@use 'include-media/dist/include-media' as *;
```

### 8. Fix test dependencies
Because of node runtime vs. browser runtime issues for certain packages, may get the following error: `Must use import to load ES Module`

Jest must be configured to ignore the es5 versions of some things. Add the following to the `jest` section of `package.json`
```json
"transform": {},
"moduleNameMapper": {
"^axios$": "axios/dist/node/axios.cjs",
"@uswds/uswds/src/js/components": "@uswds/uswds/packages/uswds-core/src/js/index.js",
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "jest-transform-stub"
}
```


In `package.json`, update the `test` script to prepend the following to the `react-scripts test` command
```
"NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\"
```

e.g.
```json
"test": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" react-scripts test",
```

### 9. Replace `file-type` library (node runtime) with `file-type-checker` (browser runtime)

Due to the browser runtime vs. node runtime conflict, the `file-type` library (requires the node runtime) is no longer compatible with our project. The following errors were presented:
* `Must use import to load ES Module`
* `Cannot find module 'strtok3/core' from 'node_modules/file-type/core.js'`

We will replace `file-type` with the browser-compatible `file-type-checker` ([file-type-checker](https://github.com/nir11/file-type-checker))

1. Remove the `file-type` line from `package.json`'s `dependencies` section.
2. Run
```bash
npm i file-type-checker --save
```

* It may be required to delete the `node_modules` folder, then run `npm i` again (if you have cache issues)
* Implementation for this library was slightly different than `file-type`. Consult documentation

### 10. Fix tests

A number of imports needed to be updated in test files. Otherwise, the only major issue was with the `IdleTimer` tests, which simply needed to handle timers differently, and focus the element before continuing the test.

```javascript
jest.useFakeTimers()
let start = Date.now()

// pre-timeout test code

React.act(() => {
jest.setSystemTime(start + 1200000) // replaces jest.runAllTimers() which wasn't working in this case
fireEvent.focus(document) // required to apply the new time
})

// post-timeout test code

jest.useRealTimers()
```

Also in these tests, `act()` in tests becomes `React.act()` to address the following deprecation warning
```
ReactDOMTestUtils.act is deprecated in favor of React.act. Import act from react instead of react-dom/test-utils
```

### Follow-on work

The following issues (mostly deprecations) were identified and not resolved. Follow-up tickets should be created for this work.

1. Security vulnerabilities
* Running `npm audit` results in the following
```bash
37 vulnerabilities (19 moderate, 17 high, 1 critical)
```
2. Frontend deprecations
* Default props deprecated (warning)
```
Warning: STTComboBox: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
```
* Span not allowed as table child - warning
```
Warning: validateDOMNesting(...): <span> cannot appear as a child of <table>.
```
* Router deprecation
```
React Router Future Flag Warning: Relative route resolution within Splat routes is changing in v7. You can use the `v7_relativeSplatPath` future flag to opt-in early. For more information, see https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath.
```
2. Test library deprecations
* wrapper.find
```
Warning: findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node
```
* redux configureStore
```
The signature '(middlewares?: Middleware<{}, any, Dispatch<AnyAction>>[] | undefined): MockStoreCreator<any, {}>' of 'configureStore' is deprecated.
```
3. SASS deprecations
* USWDS v3 still contains a number of references to deprecated SASS modules. These happen when webpack compiles the SASS.
```bash
<w> Deprecation color.lightness() is deprecated. Suggestion:
<w>
<w> color.channel($color, "lightness", $space: hsl)
<w>
<w> More info: https://sass-lang.com/d/color-functions
<w>
<w> node_modules/@uswds/uswds/packages/uswds-core/src/styles/mixins/helpers/checkbox-and-radio-colors.scss 68:5 -checkbox-and-radio-colors()
<w> node_modules/@uswds/uswds/packages/uswds-core/src/styles/mixins/helpers/checkbox-and-radio-colors.scss 12:3 checkbox-colors()
<w> node_modules/@uswds/uswds/packages/usa-checkbox/src/styles/_usa-checkbox.scss 5:1 @forward
<w> node_modules/@uswds/uswds/packages/usa-checkbox/src/styles/_index.scss 4:1 @forward
<w> node_modules/@uswds/uswds/packages/usa-checkbox/_index.scss 8:1 @forward
<w> node_modules/@uswds/uswds/packages/uswds-form-controls/_index.scss 4:1 @forward
<w> node_modules/@uswds/uswds/packages/uswds/_index.scss 51:1 @forward
<w> src/index.scss 3:1 root stylesheet
<w> 445 repetitive deprecation warnings omitted.
```
* USWDS will need to be updated again at some point, once these are resolved - https://github.com/uswds/uswds/issues/6213
4. Remove customizations in `src/assets/uswds/_uswds-theme-general.scss` that are duplicates of the existing defaults
* The defaults are listed in the [v3 migration guide](https://designsystem.digital.gov/documentation/migration/#5-update-to-sass-module-syntax-2)
5. Can utilize `fetch`, remove `axios`
6. A11y compliance has not been evaluated for this upgrade. Follow-on work may be necessary to bring us back into compliance.

## Affected Systems
Most of the frontend is affected by this change, but especially
* USWDS styles and components
* File type check when uploading data files
* Unit tests

## Use and Test cases to consider
1. Test the file upload feature thoroughly, including allowed and disallowed file types (extensions and signatures), search form behavior, modals, etc.
2. A11y compliance has not yet been evaluated; test with screenreaders and other a11y tools.
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ In discussing error troubleshooting, we also discussed new staff training. Curre
But, most participants wanted a way to know where the error was occuring—for example what row or case.

- “[It’s] helpful to know what specific value was submitted and what is acceptable. If it’s like a million records that’s obviously a problem.”
- “If comes back that specific, gender incorrect, as long as it tell us which case it was for then they could correct pretty quickly, but doesn’t show what actual case it was on”
- “If comes back that specific, sex incorrect, as long as it tell us which case it was for then they could correct pretty quickly, but doesn’t show what actual case it was on”

**Project impacts**

Expand Down
Loading