You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move SuperadminDashboard out of RoleDashboards.tsx #143
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. This is the biggest and most complex dashboard — do this one last, after a couple of the smaller ones from #136 feel familiar.
What to move
export const SuperadminDashboard (~694 lines) — the dashboard shown to Superadmin-role users.
Cut the SuperadminDashboard component out of RoleDashboards.tsx into the new file, with whatever imports it needs.
Back in RoleDashboards.tsx, add: export { SuperadminDashboard } from './dashboards/SuperadminDashboard'; where it used to be.
Don't change any logic or JSX — copy it exactly as-is.
Watch out for
This dashboard is the most complex one — it likely uses RegionalAnalyticsView and/or FLNLevelReferenceModal (see Epic: split RoleDashboards.tsx into one file per dashboard #136's other sub-issues). If those have already been moved by the time you start, just import them from their new location instead of RoleDashboards.tsx.
How to check your work
cd frontend && npm run lint — no errors.
npm run build — succeeds.
Run npm run dev, log in as Superadmin, and click through every section — confirm everything renders and works exactly the same as before.
i would like to work on this....i was working on issue #172 but it already got resolved from your side ..so assign me this i will get it done @jgupta05072003-code
Resolved by PR #255 (merged). Verified independently: cherry-picked #255's commit onto the clean pre-#250 main (e778d58) in an isolated worktree — tsc --noEmit and vite build both pass clean. SuperadminDashboard extracted faithfully (664 lines in original block → 676 in new file, difference is added imports), duplicate DashboardProps interface across RoleDashboards/TeacherDashboard/VolunteerDashboard correctly consolidated into a single definition in types.ts. No logic changes, no regressions.
Activity
vanshikaagrawalcsaiml24 commentedon Aug 20, 2026
i would like to work on this....i was working on issue #172 but it already got resolved from your side ..so assign me this i will get it done @jgupta05072003-code
vanshikaagrawalcsaiml24 commentedon Aug 20, 2026
Kindly assign me this issue mam @jgupta05072003-code
jgupta05072003-code commentedon Aug 21, 2026
Resolved by PR #255 (merged). Verified independently: cherry-picked #255's commit onto the clean pre-#250 main (e778d58) in an isolated worktree —
tsc --noEmitandvite buildboth pass clean. SuperadminDashboard extracted faithfully (664 lines in original block → 676 in new file, difference is added imports), duplicateDashboardPropsinterface across RoleDashboards/TeacherDashboard/VolunteerDashboard correctly consolidated into a single definition in types.ts. No logic changes, no regressions.