Skip to content

Move AdminDashboard out of RoleDashboards.tsx #140

Description

@jgupta05072003-code

What this is for

RoleDashboards.tsx is a 3,100+ line file holding all 8 role dashboards. We're moving each one into its own file so the codebase is easier to navigate.

What to move

export const AdminDashboard (~405 lines) — the dashboard shown to State Admin-role users.

Steps

  1. Create frontend/src/components/dashboards/AdminDashboard.tsx.
  2. Cut the AdminDashboard component out of RoleDashboards.tsx into the new file, with whatever imports it needs.
  3. Back in RoleDashboards.tsx, add: export { AdminDashboard } from './dashboards/AdminDashboard'; where it used to be.
  4. Don't change any logic or JSX — copy it exactly as-is.

How to check your work

  1. cd frontend && npm run lint — no errors.
  2. npm run build — succeeds.
  3. Run npm run dev, log in as a State Admin user, and confirm the dashboard looks and behaves exactly the same as before.

Part of #136.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestgood first issueGood for newcomersintern-readyMechanical, well-scoped — safe for interns to pick up now

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions