Skip to content

Move RegionalAnalyticsView out of RoleDashboards.tsx #139

Description

@jgupta05072003-code

What this is for

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

What to move

export const RegionalAnalyticsView (~292 lines) — a shared analytics view used by more than one dashboard.

Steps

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

Watch out for

  • Check which dashboards use RegionalAnalyticsView (search the file for it) before you start, so you know which screens to test afterward.

How to check your work

  1. cd frontend && npm run lint — no errors.
  2. npm run build — succeeds.
  3. Run npm run dev and check every dashboard that uses this view — confirm they all still render it correctly.

Part of #136.

Activity

  1. NITISHNAVEEN commented on Aug 15, 2026

    @NITISHNAVEEN
    Contributor

    @jgupta05072003-code
    Respected Ma'am,
    I would like to work on this issue, can you please confirm so I can start working on this towards phase 2 of my internship. I had started my internship on 01 June, 2026, and if a PR merge is compulsory then please let me work on this get the PR merged, then I will still keep on working after completing phase 2, on a separate new feature for defaulted schools that I am developing. I am requesting this due to urgent requirement of internship completion certificate. It would be so kind if you would kindly review the PR on this after affirming I can work on this issue #136
    I already have completed all other requirements for previous steps.
    I would forever be grateful for your kind response in this regards at your earliest convenience.

    Thanking You,
    Nitish Naveen
    Indian Institute of Information Technology (IIIT) Dharwad

  2. jgupta05072003-code commented on Aug 19, 2026

    @jgupta05072003-code
    CollaboratorAuthor

    Saw PR #230 is already open for this — leaving it with you, not touching it myself.

    Could you get it merge-ready by end of day tomorrow (2026-08-20)? If you hit a blocker, just comment here rather than letting it sit.

  3. NITISHNAVEEN commented on Aug 19, 2026

    @NITISHNAVEEN
    Contributor

    Yes ma'am, I'm working and will update from my side shortly. The person raising the PR #230 has not submitted the onboarding.md as well as I think they might be a French open-source contributor, though I had requested and was approved from you yesterday to work on this issue, I'll do the same and raise a PR shortly.
    Thank You

  4. NITISHNAVEEN commented on Aug 20, 2026

    @NITISHNAVEEN
    Contributor

    @jgupta05072003-code Ma'am please review PR #241

    • Onboarding.md document merged
    • Approved from your side
    • Screenshots in PR
    • All checks passed, no merge conflicts
    • No logic change so easy merge without much efforts

    Nitish Naveen
    Intern, Vicharanashala
    Student, IIIT Dharwad

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

    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