Skip to content

Sphurthy - fix: analytics dashboard integration#4482

Open
sphurthy wants to merge 1 commit into
developmentfrom
sphurthy-analytics-dashboard-integration
Open

Sphurthy - fix: analytics dashboard integration#4482
sphurthy wants to merge 1 commit into
developmentfrom
sphurthy-analytics-dashboard-integration

Conversation

@sphurthy

@sphurthy sphurthy commented Dec 1, 2025

Copy link
Copy Markdown
Contributor

Description

image

Related PRS (if any):

This frontend PR is related to this backend PR: OneCommunityGlobal/HGNRest#1917

Main changes explained:

  • Created src/components/EductionPortal/Analytics/AnalyticsDashboard.jsx: main dashboard component that fetches and displays analytics data with metric cards and charts.
  • Created src/components/EductionPortal/Analytics/MetricCard.jsx: component for displaying individual metrics with icons.
  • Created src/components/EductionPortal/Analytics/ReportChart.jsx: chart component using Recharts for line and bar visualizations.
  • Created src/components/EductionPortal/Analytics/FilterPanel.jsx: filter panel with student, class, and date range filters.
  • Created src/components/EductionPortal/Analytics/AnalyticsDashboard.module.css: CSS module with theme-aware styling and dark mode support.
  • Updated src/utils/URL.js: added ANALYTICS_OVERVIEW and ANALYTICS_STUDENT endpoints.
  • Updated src/routes.jsx: added /educator/analytics route using EPProtectedRoute.

How to test:

  1. Checkout branch.
  2. Run npm install.
  3. Start the development server with npm run start:local.
  4. Ensure backend is running on localhost:4500 (or set REACT_APP_APIENDPOINT in .env.local).
  5. Log in with an account that has Education Portal access.
  6. Navigate to /educator/analytics.
  7. Verify dashboard loads with metric cards and charts.
  8. Test filters: select student, class, and date range; verify data updates.
  9. Toggle dark mode and verify styling adapts.
  10. Test responsive design by resizing the browser window.

Screenshots or videos of changes:

image

@netlify

netlify Bot commented Dec 1, 2025

Copy link
Copy Markdown

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 196e272
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/692e05f18c24190007b18833
😎 Deploy Preview https://deploy-preview-4482--highestgoodnetwork-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@sonarqubecloud

sonarqubecloud Bot commented Dec 1, 2025

Copy link
Copy Markdown

@sphurthy sphurthy changed the title fix: analytics dashboard integration Sphurthy - fix: analytics dashboard integration Apr 23, 2026
@one-community one-community added the High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible label Jun 18, 2026

@kzou55 kzou55 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Sphurthy,

I ran the current branch locally(alongside the related backend pr), and I tried to access the Good Education Portal. However, I ran into an issue where I couldn't login. So I can't access /educator/analytics and verify the implementations.

  • Image

And by "Log in with an account that has Education Portal access.", do you mean the role of my account should be "Educator" because that is what I have.

  • Image

@Jaden300 Jaden300 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

I was unable to access the Education Portal to test this PR. When attempting to log in, the portal returns a login error and does not grant access even with an Educator role account. This is the same issue reported by the previous reviewer.

Please clarify what account setup or role configuration is required to access /educator/analytics, or provide test credentials that work. Until the feature is accessible locally, the implementation cannot be verified.

@one-community

Copy link
Copy Markdown
Member

Hi Sphurthy,

I ran the current branch locally(alongside the related backend pr), and I tried to access the Good Education Portal. However, I ran into an issue where I couldn't login. So I can't access /educator/analytics and verify the implementations.

  • Image

And by "Log in with an account that has Education Portal access.", do you mean the role of my account should be "Educator" because that is what I have.

  • Image

You need to log in with your PRODUCTION credentials

@kzou55

kzou55 commented Jul 7, 2026

Copy link
Copy Markdown

Hi Sphurthy,
I ran the current branch locally(alongside the related backend pr), and I tried to access the Good Education Portal. However, I ran into an issue where I couldn't login. So I can't access /educator/analytics and verify the implementations.

  • Image

And by "Log in with an account that has Education Portal access.", do you mean the role of my account should be "Educator" because that is what I have.

  • Image

You need to log in with your PRODUCTION credentials

A bit confused on what you mean by PRODUCTION credentials? Are you referring to the one we log in to at https://www.highestgood.com? Because the development/running locally(localhost:5173) doesn't have those credentials. And when trying to logging to the Good Education Portal, it states two things "Enter your current user credentials to access the Good Education Portal. Note: You must use your Production/Main credentials for this login.". And using those credentials at that education page, it says the email must match. But, none of my admin, owner, educator, etc. accounts work.

@HemanthNidamanuru HemanthNidamanuru left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Sphurthy,

I tested this PR locally.

The analytics dashboard loads with the metric cards and charts, but no data is showing on the dashboard. Because of that, I’m unable to properly verify the student, class, and date range filters.

I also noticed that the calendar is not aligned properly in dark mode.

Image Image Image

@DeepighaJ DeepighaJ left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked in to current branch and navigated to /educator/analytics. I'm getting below error.

Image

@kzou55 kzou55 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Sphurthy,

Still getting the same issue with being unable to log in to the Good Education Portal.

  • Tried using the same test account login credential, but nothing happens when I click submit.

    Image
  • Trying to use my Production/Main credentials, it just tells me my email must match

    Image

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

Labels

High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants