Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Statistics Dashboard to Admin Dashboard with Analytical Tools #906

Merged
merged 2 commits into from
Nov 9, 2024

Conversation

IkkiOcean
Copy link
Contributor

This PR introduces a new Statistics Dashboard for the Admin Panel, which provides an overview of key metrics and insights, including:

  • Time Range Selector: Allows admins to switch between daily, weekly, or monthly statistics.
  • Stat Cards: Displays key metrics such as total users, active sellers, total sales, pending orders, and total products.
  • Sales Trend Chart: Visualizes sales performance over time.
  • User Registration Trend: Shows the number of user registrations over the selected time range.
  • Popular Products: Lists the top-selling products in the selected period.
  • Analysis: Provides a brief analysis of the trends (e.g., whether sales or registrations are increasing or decreasing).

Changes Made:

  1. Added New Components:

    • StatisticComponent: The main container for the statistics page.
    • TimeRangeSelector: A dropdown to select the time range for statistics.
    • StatCard: A card component for displaying individual stats.
    • SalesTrend: A chart that shows sales trends over time.
    • UserRegistrations: A chart for visualizing user registrations.
    • PopularProducts: Displays a list of popular products.
    • Analysis: Analyzes sales and registration trends and displays the results.
  2. Updated Admin Dashboard:

    • Integrated the new statistics page into the admin dashboard for easy access.
    • Added the ability to switch between daily, weekly, and monthly views for all statistics.
  3. Data Handling:

    • Used mock data (dummyData) to simulate real data for now. This can be replaced with API calls later for real-time data.

Screenshots:

analysis.mp4

Copy link

vercel bot commented Nov 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
agro-tech-ai ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 9, 2024 6:11am

Copy link
Contributor

github-actions bot commented Nov 9, 2024

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@manikumarreddyu manikumarreddyu merged commit a608398 into manikumarreddyu:main Nov 9, 2024
4 checks passed
Copy link
Contributor

github-actions bot commented Nov 9, 2024

🎉 Your pull request has been successfully merged! 🎉 Thank you for your valuable contribution to our project. Your efforts are greatly appreciated. Feel free to reach out if you have any more contributions or if there's anything else we can assist you with. Keep up the fantastic work! 🚀

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.

Add Statistic Component to Admin Dashboard
2 participants