Skip to content

[FE-81] Add a custom not-found page #1180

Description

@yusuftomilola

Overview

There is no not-found.tsx, so unknown URLs render Next's unbranded default.

Tasks

  • Add app/not-found.tsx styled with the existing design system, linking back to the dashboard or home depending on auth state.
  • Add a scoped not-found.tsx for app/(dashboard)/assets/[id] so a missing asset shows a specific message.
  • Call notFound() from dynamic routes when a record does not exist, instead of rendering an empty shell.
  • Ensure a real 404 status is returned, not a 200 with 404 content.

Acceptance Criteria

  • Unknown URLs render the branded page with a 404 status.
  • A non-existent asset ID shows the asset-specific not-found message.

Notes for Contributors

Comment below to be assigned.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions