Skip to content

fix(dashboard): add custom error UI for non-existent users#107

Open
krishnamanocha21 wants to merge 1 commit into
JhaSourav07:mainfrom
krishnamanocha21:fix/not-found-error-ui
Open

fix(dashboard): add custom error UI for non-existent users#107
krishnamanocha21 wants to merge 1 commit into
JhaSourav07:mainfrom
krishnamanocha21:fix/not-found-error-ui

Conversation

@krishnamanocha21
Copy link
Copy Markdown

Description

Fixes #64

This PR implements a custom, CommitPulse-themed Error UI for scenarios where a searched GitHub username does not exist.

Key Changes:

  • Replaced the generic error boundary with a sleek "Broken Monolith" (🪨🔨) design.
  • Utilized useParams to dynamically display the missing username in the error message (e.g., User "username" not found on GitHub).
  • Hid the "Try again" button specifically for 404 errors, as retrying a non-existent user will not resolve the issue, ensuring the user is directed to the "Go back home" CTA instead.

Pillar

  • 🎨 Pillar 1 — New Theme Design
  • 📐 Pillar 2 — Geometric SVG Improvement
  • 🕐 Pillar 3 — Timezone Logic Optimization
  • 🛠️ Other (Bug fix, refactoring, docs)

Visual Preview

Screenshot 2026-05-15 194636

Checklist before requesting a review:

  • I have read the CONTRIBUTING.md file.
  • I have tested these changes locally (localhost:3000/api/streak?user=YOUR_USERNAME).
  • I have run npm run format and npm run lint locally and resolved all errors (CI will fail otherwise).
  • My commits follow the Conventional Commits format (e.g., feat(themes): ..., fix(calculate): ...).
  • I have updated README.md if I added a new theme or URL parameter.
  • I have started the repo.
  • I have made sure that i have only one commit to merge in this PR.
  • The SVG output matches the CommitPulse "premium quality" aesthetic standard (no raw elements, smooth animations, correct fonts).

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 15, 2026

@krishnamanocha21 is attempting to deploy a commit to the jhasourav07's projects Team on Vercel.

A member of the Team first needs to authorize it.

@krishnamanocha21
Copy link
Copy Markdown
Author

Hi @JhaSourav07, I've implemented the custom Error UI for non-existent users as requested in issue #64. I used useParams to make the error message dynamic and verified that it correctly triggers the 404 state without breaking the dashboard. Looking forward to your feedback!

@JhaSourav07
Copy link
Copy Markdown
Owner

can you focus on error SVG we get when someone puts wrong username instead?
i will change the Issue description.

image

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UX: Build a custom Error UI for non-existent GitHub users

2 participants