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

merge main into dev #772

Merged
merged 19 commits into from
Jan 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
0de1c6c
Update README.md
anitadesigns Dec 1, 2022
a539d2a
Bump ansi-regex in /products/statement-generator (#731)
dependabot[bot] Dec 17, 2022
ddeb9e5
Bump express from 4.17.1 to 4.18.2 in /products/statement-generator (…
dependabot[bot] Dec 17, 2022
78522d3
Bump qs and express in /products/statement-generator (#762)
dependabot[bot] Dec 17, 2022
d737830
Bump decode-uri-component in /products/statement-generator (#761)
dependabot[bot] Dec 17, 2022
68bd862
Bump ansi-html and react-scripts in /products/statement-generator (#732)
dependabot[bot] Dec 17, 2022
6c89840
Bump ejs and react-scripts in /products/statement-generator (#733)
dependabot[bot] Dec 17, 2022
5020673
Bump shell-quote and react-scripts in /products/statement-generator (…
dependabot[bot] Dec 17, 2022
24b4ca6
Bump node-forge and react-scripts in /products/statement-generator (#…
dependabot[bot] Dec 17, 2022
694ea1b
Bump loader-utils and react-scripts in /products/statement-generator …
dependabot[bot] Dec 17, 2022
200f7ec
Bump minimatch and react-scripts in /products/statement-generator (#764)
dependabot[bot] Dec 17, 2022
7512b30
Bump jspdf from 2.1.1 to 2.3.1 in /products/statement-generator (#765)
dependabot[bot] Dec 17, 2022
2697ef1
Bump glob-parent from 5.1.1 to 5.1.2 in /products/statement-generator…
dependabot[bot] Dec 17, 2022
2749e78
Bump node-fetch and i18next-http-backend (#767)
dependabot[bot] Dec 17, 2022
0535e84
remove jest testing dependencies
aahvocado Dec 20, 2022
99423b6
master-deploy.yml - deploy using node-version 16.x
aahvocado Dec 20, 2022
fba9cb1
jsx-no-bind fix on PreviewPage & FlowNavigation
aahvocado Dec 20, 2022
71aeb0e
delete App.test.tsx
aahvocado Dec 20, 2022
680dc14
FlowNavigation.tsx - stupid semicolon
aahvocado Dec 20, 2022
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
2 changes: 1 addition & 1 deletion .github/workflows/master-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
permissions: write-all
strategy:
matrix:
node-version: [10.x]
node-version: [16.x]

steps:
- name: Checkout 🛎️
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Explain the different ways people can contribute. For example:
- Join the team
on Slack channel and at our biweekly Monday hack night in person or teleconference (start at 6pm).
- To help with user research, sync with Apurva.
- To provide design support, sync with Gretchen.
- To provide design support, sync with Anita or Serena.
- To contribute to the code, sync with Daniel.


Expand Down
46,257 changes: 20,090 additions & 26,167 deletions products/statement-generator/package-lock.json

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions products/statement-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
"version": "0.8.0",
"homepage": "./",
"private": true,
"engines": {
"npm": ">=8.0.0",
"node": ">=16.0.0"
},
"dependencies": {
"@material-ui/core": "^4.11.2",
"@material-ui/icons": "^4.11.2",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"@types/jest": "^26.0.15",
"@types/jspdf": "^1.3.3",
"@types/node": "^12.0.0",
"@types/react": "^16.9.56",
Expand All @@ -18,13 +20,13 @@
"gh-pages": "^3.1.0",
"i18next": "^20.1.0",
"i18next-browser-languagedetector": "^6.1.0",
"i18next-http-backend": "^1.2.1",
"jspdf": "^2.1.1",
"i18next-http-backend": "^1.4.5",
"jspdf": "^2.3.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-i18next": "^11.8.12",
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.0",
"react-scripts": "5.0.1",
"typescript": "^4.0.3",
"web-vitals": "^0.2.4"
},
Expand All @@ -39,8 +41,7 @@
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
"react-app"
]
},
"browserslist": {
Expand Down
9 changes: 0 additions & 9 deletions products/statement-generator/src/App.test.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useContext } from 'react';
import React, { useCallback, useContext } from 'react';
import { makeStyles, createStyles } from '@material-ui/core';

import FormStateContext from 'contexts/FormStateContext';
Expand Down Expand Up @@ -43,21 +43,21 @@ export default function FlowNavigation({
const backBtnTheme =
appTheme === 'dark' ? 'transparent-on-dark' : 'transparent-on-light';

function handleBack() {
const handleBack = useCallback(() => {
if (onBack) {
onBack();
} else {
goBackStep();
}
}
}, []);

function handleNext() {
const handleNext = useCallback(() => {
if (onNext) {
onNext();
} else {
goNextStep();
}
}
}, []);

return (
<div className={utilityClasses.buttonContainer}>
Expand Down
6 changes: 3 additions & 3 deletions products/statement-generator/src/pages/PreviewPage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useContext, useEffect } from 'react';
import React, { useCallback, useContext, useEffect } from 'react';

import TextPreview from 'components/TextPreview';
import ContentContainer from 'components-layout/ContentContainer';
Expand All @@ -16,7 +16,7 @@ function PreviewPage() {
const previewConfigItem = getPreviewConfig(currentStep);
const hasPreviewConfig = previewConfigItem !== undefined;

function updateStatement(newStatement: string) {
const updateStatement = useCallback((newStatement: string) => {
if (hasPreviewConfig) {
updateStepToForm({
statements: {
Expand All @@ -25,7 +25,7 @@ function PreviewPage() {
},
});
}
}
}, []);

// hacky implementation to generate the heading & closing statement here
// because it does not have a unique page to be generated via a preview
Expand Down
5 changes: 0 additions & 5 deletions products/statement-generator/src/setupTests.ts

This file was deleted.