Skip to content

Sai Teja: Fix PR Analytics broken page – Add contextual error handling#4838

Merged
one-community merged 18 commits intodevelopmentfrom
fix/pr-analytics-friendly-error
Apr 14, 2026
Merged

Sai Teja: Fix PR Analytics broken page – Add contextual error handling#4838
one-community merged 18 commits intodevelopmentfrom
fix/pr-analytics-friendly-error

Conversation

@saitejakaasoju
Copy link
Copy Markdown
Contributor

Description

image

Related PRS (if any):

This frontend PR is not related to any backend PR.

Main changes explained:

  • Updated src/components/NotFound/NotFoundPage.jsx
  • Added route detection for /pr-dashboard paths
  • Displays contextual message:
    • "PR Analytics is temporarily unavailable."
    • Guidance to try again later or contact administrator
  • Added fallback link to Reports Dashboard.

How to test:

  1. check into current branch

  2. do npm install and ... to run this PR locally

  3. Clear site data/cache

  4. Login as Admin User

  5. Simulate PR Analytics failing to load:
    Temporarily comment out the PR Dashboard route in src/routes.jsx:

    <ProtectedRoute path="/pr-dashboard/overview" ... />

  6. Navigate to:
    Other Links → PR Team Analytics (or directly open /pr-dashboard/overview)

  7. Verify:
    You see the contextual message: “PR Analytics is temporarily unavailable.”
    The “Go to Reports Dashboard” link works.

  8. Verify a random invalid route (e.g., /random123) still shows the normal rabbit “Page Not Found”.

Screenshots or videos of changes:

Previous:
Screenshot 2026-02-13 at 12 06 05 AM
Now:
Screenshot 2026-02-13 at 12 02 34 AM

Note:

  • No backend changes required
  • Normal behavior remains unchanged when route loads successfully

one-community and others added 16 commits November 19, 2025 17:10
@netlify
Copy link
Copy Markdown

netlify bot commented Feb 13, 2026

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 55578f4
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/69d72c86f7fd9c0008454820
😎 Deploy Preview https://deploy-preview-4838--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
Copy link
Copy Markdown

@saitejakaasoju saitejakaasoju changed the title Fix: Friendly error message when PR Analytics cannot be loaded Sai Teja: Fix PR Analytics broken page – Add contextual error handling Feb 13, 2026
@one-community one-community added High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible and removed Medium Priority labels Apr 6, 2026
Copy link
Copy Markdown

@HemanthNidamanuru HemanthNidamanuru left a comment

Choose a reason for hiding this comment

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

Hi Sai Teja,

I have reviewed your PR locally. However, I was unable to validate the contextual message "PR Analytics is temporarily unavailable." as random data is loading at that address instead of showing the expected fallback message.

Image Image

Anusha-Gali
Anusha-Gali previously approved these changes Apr 9, 2026
Copy link
Copy Markdown

@Anusha-Gali Anusha-Gali left a comment

Choose a reason for hiding this comment

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

Hi Sai Teja,

I have reviewed your PR locally and the route works as per requirement including the contextual error handling.

Image Image Image Image

…tics-friendly-error

# Conflicts:
#	src/components/NotFound/NotFoundPage.jsx
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 9, 2026

@one-community
Copy link
Copy Markdown
Member

Thank you all, merging!

@one-community one-community merged commit faa4657 into development Apr 14, 2026
10 checks passed
Copy link
Copy Markdown

@rajanidi1999 rajanidi1999 left a comment

Choose a reason for hiding this comment

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

Hi Sai,
I have reviewed your PR as per given steps and its successfully executed.

Image Image 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