Skip to content

feat: implement branded custom 404 page with dashboard redirect#1101

Open
Smrithi-krishna wants to merge 2 commits into
Priyanshu-byte-coder:mainfrom
Smrithi-krishna:feat/custom-404-page
Open

feat: implement branded custom 404 page with dashboard redirect#1101
Smrithi-krishna wants to merge 2 commits into
Priyanshu-byte-coder:mainfrom
Smrithi-krishna:feat/custom-404-page

Conversation

@Smrithi-krishna
Copy link
Copy Markdown

Summary

This PR creates a custom, branded not-found.tsx page for the Next.js App Router, replacing the generic Next.js 404 screen. It features the DevTrack logo and typography, supports dark/light mode via existing global CSS custom properties, and includes a call-to-action button to redirect users back to safety.

Closes #971

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / code cleanup

Changes Made

-Created src/app/not-found.tsx to catch all invalid application routes globally.

  • Implemented responsive Tailwind CSS layout featuring the DevTrack logo icon and custom 404 branding.
  • Mapped all text and background elements to CSS custom variables (var(--primary), var(--foreground), var(--muted-foreground)) to ensure native compliance with light and dark mode toggles.
  • Added a primary navigation CTA button using next/link to redirect users back to the dashboard/home page (/).

How to Test

Steps for the reviewer to verify this works:

  1. Ensure your local environment variables are set up (e.g., mock keys in .env.local to bypass the src/lib/supabase.ts safety guards if testing fresh).
  2. Run the development server with npm run dev.
  3. Navigate to a non-existent URL path, such as http://localhost:3000/invalid-test-route-404.
  4. Verify that the custom DevTrack 404 UI renders correctly, fits within the global layout, and that the "Go to Dashboard" button correctly routes you back to /.

Screenshots (if UI change)

Screenshot 2026-05-25 175012

Checklist

  • Linked issue in summary
  • npm run lint passes locally
  • No TypeScript errors (npm run type-check)
  • Self-reviewed the diff
  • Added/updated tests if applicable

@vercel
Copy link
Copy Markdown

vercel Bot commented May 25, 2026

@Smrithi-krishna is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added gssoc26 GSSoC 2026 contribution type:feature GSSoC type bonus: new feature labels May 25, 2026
@github-actions
Copy link
Copy Markdown

GSSoC Label Checklist 🏷️

@Priyanshu-byte-coder — please apply the appropriate labels before merging:

Difficulty (pick one):

  • level:beginner — 20 pts
  • level:intermediate — 35 pts
  • level:advanced — 55 pts
  • level:critical — 80 pts

Quality (optional):

  • quality:clean — ×1.2 multiplier
  • quality:exceptional — ×1.5 multiplier

Validation (required to score):

  • gssoc:approved — counts for points
  • gssoc:invalid / gssoc:spam / gssoc:ai-slop — does not score

Type labels (type:*) are auto-detected from files and title. Review and adjust if needed.
Points formula: (difficulty × quality_multiplier) + type_bonus

@Smrithi-krishna
Copy link
Copy Markdown
Author

hi @Priyanshu-byte-coder can you please check this

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

Labels

gssoc26 GSSoC 2026 contribution type:feature GSSoC type bonus: new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[GOOD FIRST ISSUE] Add 404 page with navigation back to home

1 participant