microsoft / microsoft/GitHubCopilot_Customized

Missing page: Admin Dashboard (/admin)

Open
#26 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
66
Forks
38
Avg merge
21d 15h
Merged PRs (30d)
1

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the React Router entries for /admin and /admin/products, then read the existing AdminProducts component. Use the acceptance criteria to define the dashboard scope, including metrics, recent activity, section navigation, layout, authentication, and role-based access; completion requires the routes and admin access behavior to work without redirecting to the homepage.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
authentication, authorization, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.