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

chore: upgrade admin dashboard ui to react 18 #740

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

lwhiteley
Copy link
Contributor

@lwhiteley lwhiteley commented Oct 6, 2024

Changes:

  • upgrade to react 18
  • upgrade to mui v6
    • increase specificity of app styles to override mui component styles
  • replace react-html-parser with html-react-parser

Notes:

After an audit of the dependencies of this project, it was determined that react and a few libraries were outdated.

one of the dependencies preventing an upgrade is react-html-parser . it has a peer dependency of react 16.
A successor of the package is html-react-parser

However, there is no storybook setup in the project or a way to test this easily.

How can i get diff data passed to this component to test in isolation or
Can someone give steps to arrive at this view to test it in the UI to verify it works?

I also see that there are cypress tests but i dont believe this view is covered yet

old package: https://www.npmjs.com/package/react-html-parser
proposed package: https://www.npmjs.com/package/html-react-parser


TODOs:

  • fix ui styling glitches
    • increase css specificity
  • fix dep check

Please test thoroughly
Let me know if i missed something

Copy link

netlify bot commented Oct 6, 2024

Deploy Preview for endearing-brigadeiros-63f9d0 canceled.

Name Link
🔨 Latest commit 7500dbd
🔍 Latest deploy log https://app.netlify.com/sites/endearing-brigadeiros-63f9d0/deploys/670d4b05b5ed5700082341d8

Copy link

codecov bot commented Oct 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.79%. Comparing base (a1d8f42) to head (7500dbd).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #740   +/-   ##
=======================================
  Coverage   57.79%   57.79%           
=======================================
  Files          46       46           
  Lines        1597     1597           
=======================================
  Hits          923      923           
  Misses        674      674           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lwhiteley lwhiteley marked this pull request as ready for review October 6, 2024 12:24
@lwhiteley lwhiteley changed the title refactor: upgrade to react 18 refactor: upgrade admin dashboard ui to react 18 Oct 6, 2024
@lwhiteley lwhiteley changed the title refactor: upgrade admin dashboard ui to react 18 chore: upgrade admin dashboard ui to react 18 Oct 6, 2024
@JamieSlome
Copy link
Member

@lwhiteley - happy for me to start reviewing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants