Skip to content

Migrate the home page and sign-in screens to Tailwind #2276

Open

Description

@trillium

Trillium Firstmate 🤖

Overview

Convert the landing page and the login / magic-link screens.

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/pages/Home.jsx (Select, MenuItem, FormControl, InputLabel, CircularProgress; 19 MUI tags) and client/src/sass/Home.scss (195 lines)
    • client/src/components/presentational/CreateNewProfileButton.jsx (also imports Home.scss)
    • client/src/components/auth/Auth.jsx (TextField, Button, FormControl) and client/src/sass/AdminLogin.scss
    • client/src/components/auth/HandleAuth.jsx (CircularProgress)
    • client/src/pages/SecretPassword.jsx (TextField, InputLabel, Button, Grid; 17 MUI tags)
  • Take before/after screenshots (desktop about 1280 px, phone 390 px) of each state listed in the Acceptance Criteria.

  • Add Vitest checks: the home page renders the select and the check-in buttons, and choosing an option updates the page the same way as before (mock the fetch); Auth submits the entered value and shows the same error text for a failed request; HandleAuth shows the spinner while loading; SecretPassword accepts input and submits.

  • 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: home page loading, home page with a project selected, login empty, login with error, secret password page.

Resources/Instructions

Additional Notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature: Design systemmilestone: missingp-feature: Loginrole: Front Endsize: 3pt

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions