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 frontend-build, patch font-awesome, use React.StrictMode, refactor dashboard tabs #777

Conversation

adamstankiewicz
Copy link
Member

Description

  • Upgrades @edx/frontend-build to latest (v12.8.57).
  • Patches font-awesome via patch-package (docs).
    • Adds an ADR to add context for the decision to patch font-awesome.
  • Begins running the application in React.StrictMode (docs). By doing so, we should be able to identify and fix any issues now to make future React upgrades easier (and to take advantage of React features like concurrent rendering). Upon running the application locally with React.StrictMode, the behavior doesn't appear to be any different, so this feels like a safe enough change for now.
    • React.StrictMode only impacts the application when running in development; does not affect production builds.
  • Refactors the DashboardPage tabs to rely on an array as its children due to the conditional feature flags used as currently implemented. If those feature flags are false, it would break the Tabs component which expects every child node to be a Tab component (i.e., not a boolean).

For all changes

  • Ensure adequate tests are in place (or reviewed existing tests cover changes)

Only if submitting a visual change

  • Ensure to attach screenshots
  • Ensure to have UX team confirm screenshots

@adamstankiewicz adamstankiewicz changed the title chore: patch font-awesome, run React.StrictMode chore: upgrade frontend-build, patch font-awesome, run React.StrictMode Jun 25, 2023
@adamstankiewicz adamstankiewicz changed the title chore: upgrade frontend-build, patch font-awesome, run React.StrictMode chore: upgrade frontend-build, patch font-awesome, use React.StrictMode, refactor dashboard tabs Jun 25, 2023
@codecov
Copy link

codecov bot commented Jun 25, 2023

Codecov Report

Attention: Patch coverage is 76.92308% with 3 lines in your changes missing coverage. Please review.

Project coverage is 84.68%. Comparing base (d36b78a) to head (2e9574b).
Report is 390 commits behind head on master.

Files with missing lines Patch % Lines
src/index.jsx 0.00% 2 Missing ⚠️
src/components/dashboard/DashboardPage.jsx 90.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #777      +/-   ##
==========================================
- Coverage   84.87%   84.68%   -0.19%     
==========================================
  Files         320      322       +2     
  Lines        6399     6557     +158     
  Branches     1552     1594      +42     
==========================================
+ Hits         5431     5553     +122     
- Misses        941      975      +34     
- Partials       27       29       +2     

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

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.

1 participant