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 8 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 ready!

Name Link
🔨 Latest commit 742409a
🔍 Latest deploy log https://app.netlify.com/sites/endearing-brigadeiros-63f9d0/deploys/6723ebdae6339500087a986c
😎 Deploy Preview https://deploy-preview-740--endearing-brigadeiros-63f9d0.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Oct 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.23%. Comparing base (39dd45c) to head (742409a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #740   +/-   ##
=======================================
  Coverage   60.23%   60.23%           
=======================================
  Files          47       47           
  Lines        1647     1647           
=======================================
  Hits          992      992           
  Misses        655      655           

☔ 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