Skip to content

Missing page: Admin Dashboard (/admin) #26

@snishant0

Description

@snishant0

Problem

The /admin route is not implemented in the application. When users try to navigate to /admin, they see an empty page with a console warning: "No routes matched location '/admin'"

Note: There appears to be an /admin/products route that redirects to home, suggesting some admin functionality was planned.

Expected Behavior

Admin users should have access to an admin dashboard with:

  • Overview of orders, products, and users
  • Quick stats and analytics
  • Links to admin sections (products, orders, users)
  • Management tools for the e-commerce platform

Current Behavior

  • Navigation to /admin shows an empty page
  • Console warning: "No routes matched location '/admin'"
  • Navigation to /admin/products redirects to homepage
  • No admin dashboard or management interface

Acceptance Criteria

  • Create /admin route in React Router
  • Implement Admin Dashboard component
  • Display key metrics (total orders, revenue, products, users)
  • Add navigation to admin sections (products, orders, users)
  • Implement admin authentication/authorization
  • Create layout for admin section with sidebar navigation
  • Fix /admin/products route (currently broken)
  • Add role-based access control
  • Show recent orders and activities

Related

  • AdminProducts component already exists in codebase but route may be broken

Priority

Medium - Important for administrative management but not customer-facing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions