Repository navigation
Open
Labels
feature: Design systemRelated to design patterns and componentsmilestone: missingrole: Front Endsize: 3ptCan be done in 13-18 hours
Description
Trillium Firstmate 🤖
Overview
Create the shared list and table components that replace MUI List/ListItem/ListItemButton/ListItemText (6 files) and Table/TableHead/TableBody/TableRow/TableCell (1 file).
Dependencies
Action Items
-
client/src/components/ui/list.tsx:List,ListItem(static row), and aListItemvariantasButtonthat is a real<button>(keyboard focus, hover and selected backgrounds) for the searchable user lists inUserManagement.jsxandUserPermissionSearch.jsx. -
client/src/components/ui/table.tsx:Table,TableHeader,TableBody,TableRow,TableHead,TableCellusing real table elements, matching the styling incomponents/presentational/profile/UserTable.jsx. - Tests: list renders items; the button variant fires on click and Enter and exposes the selected state with
aria-currentoraria-selected; the table has correct header cells (th scope). - Catalogue entries.
Acceptance Criteria
- The component lives in
client/src/components/ui/as a.tsxfile, with typed props that passyarn typecheck(strict mode). - Styling uses Tailwind classes only. Variants (if any) are declared with
cva, andclassNameis merged withcn()so callers can override. - The component does not import anything from
@mui/*or@emotion/*. - A test file next to the component (for example
button.test.tsx) covers: it renders, each variant/size, the disabled and error states where they apply, and keyboard use where it applies (Tab, Enter/Space, Escape, arrow keys).yarn testpasses. - The component has an entry on the
/design-systempage: description, props/variants, states, a short do/don't, a code example, and a live demo. - Visible focus: there is a clear focus ring when the control is reached by keyboard.
- The PR does not change any existing screen. Screens adopt the component in their own tickets.
Resources/Instructions
- MUI uses to replace:
UserManagement.jsx,UserPermissionSearch.jsx,EditUsers.jsx,projectMembersList.jsx,editProject.jsx,pages/Events.jsx(lists);UserTable.jsx(table).
Additional Notes
- The older dashboard tables (
components/dashboard/RosterTable.jsx,AttendeeTable.jsx) use raw<table>and SCSS; they move in Migrate the project leader dashboard to Tailwind #2285 and can reuseTable.
Metadata
Metadata
Assignees
Labels
feature: Design systemRelated to design patterns and componentsmilestone: missingrole: Front Endsize: 3ptCan be done in 13-18 hours
Type
Projects
- StatusShow more project fieldsNew Issue Approval
Activity