Skip to content

Migrate the edit-user and onboarding-visibility screens to Tailwind #2279

Open

Description

@trillium

Trillium Firstmate 🤖

Overview

Convert the screen where an admin edits a user's details and role, and the screen where project onboarding/offboarding visibility is switched on and off.

Dependencies

Action Items

  • Migrate these files to the shared components from client/src/components/ui/ and Tailwind classes. Keep the same text, props, routes and behavior:

    • client/src/components/user-admin/EditUsers.jsx (Switch with 5 .Mui… style overrides, Select, List, Container, FormControlLabel)
    • client/src/pages/OnboardOffboardVisibility.jsx (Switch, Tooltip, CircularProgress, info icon; 13 sx)
    • client/src/components/user-admin/AddNewProject.jsx (raw <input>/<button> elements, same SCSS)
    • Delete client/src/sass/UserAdmin.scss (184 lines) once nothing imports it, and client/src/sass/AddNew.scss (no importers today).
  • Take before/after screenshots (desktop about 1280 px, phone 390 px) of each state listed in the Acceptance Criteria.

  • Add Vitest checks: the switch toggles and calls the save request with the right value (mock it); the role select shows the current role and changes it; the tooltip text is reachable by keyboard focus; spinner while loading.

  • Delete the .scss files or rules that become unused, and remove their imports.

Acceptance Criteria

  • None of the files listed above imports from @mui/* or @emotion/*, and none still contains sx= or styled(.
  • The screen looks the same as before (pixel parity). The PR shows before/after screenshots at desktop width (about 1280 px) and phone width (390 px), including each state named in the Action Items (empty, loading, error, open dialog, and so on). The PR template has sections for these.
  • New Vitest checks are included (see Action Items) and yarn test passes.
  • yarn typecheck and yarn build pass in client/.
  • Any .scss file (or part of one) that this change makes unused is deleted, and nothing outside the listed files is left depending on it.
  • Keyboard-only pass done and noted in the PR: Tab order is sensible, every control can be used without a mouse, and dialogs/menus close with Escape.
  • The behavior is unchanged: same requests, same validation messages, same routes and redirects.
  • States in the screenshots: edit user (switch on and off), visibility page loading and loaded.

Resources/Instructions

Additional Notes

  • Decided for the whole epic: every screen keeps pixel parity with today. This is a change of tooling, not a redesign. Fonts, colors, spacing, sizes, and breakpoints must look the same after the change.
  • The temporary Tailwind important flag is on while MUI is still in the app (decided). That is what lets a Tailwind class beat MUI/emotion and the old global SCSS. It is removed in Final cleanup: remove the Tailwind 'important' flag and the old global SCSS #2288.

Activity

  1. added
    size: 3pt
    feature: Design system
    p-feature: On/Offboard Visibility
    on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature: Design systemmilestone: missingp-feature: On/Offboard Visibilityrole: Front Endsize: 3pt

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions