Repository navigation
Open
Labels
dependenciesPull requests that update a dependency filefeature: Design systemRelated to design patterns and componentsmilestone: missingrole: Front Endsize: 2ptCan be done in 7-12 hours
Description
Trillium Firstmate 🤖
Overview
After every screen is migrated, delete the MUI theme and provider and uninstall MUI and emotion. Nothing should be visible to users; the bundle gets smaller.
Dependencies
- Migrate the app shell, navbar, and footer to Tailwind #2273
- Migrate the shared TitledBox components to Tailwind #2274
- Migrate the volunteer check-in flow and remove the MUI X date picker #2275
- Migrate the home page and sign-in screens to Tailwind #2276
- Migrate the welcome and profile screens to Tailwind #2277
- Migrate the user search and permission search screens to Tailwind #2278
- Migrate the edit-user and onboarding-visibility screens to Tailwind #2279
- Migrate the project list and the project form to Tailwind #2280
- Migrate the manage-project meeting and event screens to Tailwind #2281
- Migrate the edit-project screen to Tailwind #2282
- Migrate the project member management screens to Tailwind #2283
- Migrate the admin dashboard and reports to Tailwind #2284
- Migrate the project leader dashboard to Tailwind #2285
- Migrate the events pages, status pages, and leaderboard to Tailwind #2286
Action Items
Run yarn commands from client/, and commit client/package.json and client/yarn.lock together.
- Confirm nothing is left:
git grep -nE "@mui|@emotion|\bMui[A-Z]|\.Mui-" -- client/srcmust return no lines (apart from the files this ticket deletes). If a file still matches, finish it here and say so in the PR. - Remove
ThemeProviderand thethemeimport fromclient/src/App.jsx. - Delete
client/src/theme/(index.js,palette.js). The tokens ticket already carries every value. - Remove
@mui/material,@mui/system(if listed),@emotion/react,@emotion/styled(and@mui/x-date-pickersand@mui/icons-materialif any are left) fromclient/package.json; updateclient/yarn.lock. - Root
package.json: remove the unused@mui/icons-material(if still present) andstyled-components. First confirm nothing in the repo importsstyled-components. - Remove the temporary rules in the Tailwind theme that only existed for MUI interop, if any were added.
- Run
yarn buildand record the new JS and CSS size next to the numbers from before the epic (JS about 1,345 kB / gzip about 405 kB; CSS about 54 kB) in the PR description. - Update
CONTRIBUTING.md(UI section) to remove the "MUI may still appear in old files" wording.
Acceptance Criteria
-
git grep -nE "@mui|@emotion" -- client root package.jsonreturns nothing. - The app builds,
yarn testandyarn typecheckpass. - Before/after screenshots of three representative pages (home, check-in form, a project edit page) show no visible change.
- The size comparison is in the PR.
- The
importantflag is still on in this ticket (it is removed in the next one).
Resources/Instructions
- Files:
client/src/App.jsx,client/src/theme/,client/package.json, rootpackage.json. - Earlier measurement: MUI + emotion + related packages were about a quarter of the minified JavaScript.
Additional Notes
- This is a small ticket on purpose: the work was done in the screen tickets. Keeping it separate means it is easy to revert if something was missed.
Metadata
Metadata
Assignees
Labels
dependenciesPull requests that update a dependency filefeature: Design systemRelated to design patterns and componentsmilestone: missingrole: Front Endsize: 2ptCan be done in 7-12 hours
Type
Projects
- StatusShow more project fieldsNew Issue Approval
Activity