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

Initial dependency upgrades and associated fixes #1645

Merged
merged 4 commits into from
Jan 16, 2023

Conversation

monocle
Copy link
Contributor

@monocle monocle commented Jan 15, 2023

@KentShikama, this is the beginning of #1634. The first batch is focused on getting to a baseline before future changes.

Commit 1

  • The first package upgrade is changing node-sass to sass. This is what's currently recommended by Sass and also avoids potential compilations issues during installation.
  • Prettier was only upgraded to the version that's in the .pre-commit-config.yaml. We could upgrade that in a future commit, if you think it would be okay.
  • I added snapshot tests for the components that have routes to help with future refactoring.

Commits 2 and 3

  • Upgraded TypeScript and react-scripts.
  • There were a lot of TypeScript, ESLint and React warnings. So there are a lot of changes, but they are small and should not affect the app's behavior.

Commit 4

There were some problems with using newer versions of TS and react-scripts with the older node version we had. Upgrading to node:18.13-bullseye fixed those.

With these commits, the frontend dev environment should be generally good to go. However, on my Macbook, I've been having problems with the docker-compose.yml binding to port 5000. I've been using "5001:5000" port binding instead. If you don't think that port binding would cause other problems (I'm still having problems getting the backend container to work), then I could add that change to this PR. Please let me know.

Thanks.

For:
* About
* AccessibilityStatement
* App
* Appendix
* Demo
* Faq
* FillForms
* Manual
* OeciLogin
* PartnerInterest
* PrivacyPolicy
* RecordSearch
* Rules

- Update package.json
* Change node-sass dependency to sass
* Upgrade prettier to match project root .pre-commit-config.yaml
* Remove unused imports

* About: remove unnecessary "Photo of"

* App: replace kabob-case attributes

* DemoInfo: add missing keys

* Landing:  don't nest within <p>

* PartnerTable: at missing keys, use === instead of ==, replace kabob-case attributes

* Record/Case: add `rel="noopener noreferrer"

* Rules/ChargeTypeRule: use === instead of ==

* reducer: use forEach instead of map, replace reduce comma shorthand function returns
* Add missing types for promise resolve parameter and action functions

* selectors test: add missing mockData attributes
for:

* ChargestList

* util.newlineOrsInString()
Copy link
Member

@KentShikama KentShikama left a comment

Choose a reason for hiding this comment

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

Looks safe to me! Let's push this to dev and test a bit.

@@ -148,7 +148,7 @@ export default class About extends React.Component {
<img
className="img w5 mb3"
src="/img/ks-2x.jpg"
alt="Photo of Kent Shikama"
alt="Kent Shikama"
/>
<dl>
<dt className="fw8 mb2">Kent Shikama</dt>
Copy link
Member

Choose a reason for hiding this comment

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

Feel free to add your name btw

@KentShikama KentShikama merged commit 11323ca into codeforpdx:master Jan 16, 2023
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.

2 participants