Repository navigation
Open
Labels
feature: Design systemRelated to design patterns and componentsmilestone: missingrole: Front Endsize: 1ptCan be done in 4-6 hours
Description
Trillium Firstmate 🤖
Overview
The app uses 8 different Material icons (9 uses). Replace them with icons from lucide-react and remove @mui/icons-material, so icons no longer need MUI.
Dependencies
- Foundation: add the shared UI toolkit (cn helper, cva, '@/' alias, test setup, components/ui folder) #2257
- Add a /design-system page that catalogues tokens and components #2260
Action Items
Run yarn commands from client/, and commit client/package.json and client/yarn.lock together.
- Replace each icon import and usage (keep the same size and color as today):
components/ChangesModal.jsx:WarningAmberRoundedcomponents/manageProjects/editProject.jsx:Close(also has a.MuiSvgIcon-rootselector at lines ~246 and ~291 to turn into a size class)components/manageProjects/editPMs/projectMembersList.jsx:Delete,Close,WarningAmber,CheckCircleOutlinecomponents/manageProjects/editPMs/editProjectMembers.jsx:AddCircleOutline,CheckCircleOutlinecomponents/user-admin/UserManagement.jsxandcomponents/user-admin/UserPermissionSearch.jsx:Personcomponents/parts/boxes/TitledBox.jsx:ExpandMorepages/OnboardOffboardVisibility.jsx:InfoOutlined
- Mapping to start from:
WarningAmber(Rounded)->TriangleAlert,Close->X,Delete->Trash2,CheckCircleOutline->CircleCheck,AddCircleOutline->CirclePlus,Person->User,ExpandMore->ChevronDown,InfoOutlined->Info. - Create
client/src/components/ui/icon.tsx: a tiny wrapper that sets default size (size-5),aria-hiddenfor decorative icons, and accepts anaria-labelfor meaningful ones. Test it. - Remove
@mui/icons-materialfromclient/package.jsonand from the rootpackage.json(it is listed there too and is not used by any root code). - Add an "Iconography" entry to the Foundations section of
/design-systemlisting the 8 icons in use. - Take a before/after screenshot of every place an icon appears (a few need a signed-in admin).
Acceptance Criteria
-
git grep @mui/icons-materialreturns nothing inclient/and the rootpackage.json. - Every icon appears in the same place, size and color as before.
- Icons that act as buttons have an accessible name; decorative ones are hidden from screen readers.
-
yarn typecheck,yarn buildandyarn testpass.
Resources/Instructions
- Icon search: https://lucide.dev/icons/
- The earlier inventory: 9 icon uses across 8 files, all listed above.
Additional Notes
- Decision needed: icon package. Proposed default:
lucide-react(tree-shakeable, one consistent style). Lucide shapes differ slightly from Material shapes. If a reviewer sees a visible difference that breaks pixel parity, copy that one Material icon's SVG path intocomponents/ui/icon.tsxinstead. - This ticket only swaps icons inside files that still use MUI for everything else. The files are fully migrated later in their own tickets.
Metadata
Metadata
Assignees
Labels
feature: Design systemRelated to design patterns and componentsmilestone: missingrole: Front Endsize: 1ptCan be done in 4-6 hours
Type
Projects
- StatusShow more project fieldsNew Issue Approval
Activity