Skip to content

Nearly all the frontend is done, 2 small features to be added.#172

Merged
frasermuller merged 1 commit intomainfrom
Frontend/product_cart_checkout_transaction_refund
Dec 4, 2025
Merged

Nearly all the frontend is done, 2 small features to be added.#172
frasermuller merged 1 commit intomainfrom
Frontend/product_cart_checkout_transaction_refund

Conversation

@frasermuller
Copy link
Collaborator

Complete E-Commerce Platform Implementation

Summary

This PR implements all core frontend pages and features for the Web Shopping Service, modernizes the UI/UX, adds security protections, and cleans up unused code. The application is fully functional and ready (other than 2 features see below).


Features Added

Admin Pages

  • Metrics Dashboard - Revenue analytics, top products, category distribution, anomaly detection (3/4 endpoints working)
  • Product Management - Full CRUD operations, review management
  • User Role Management - Promote/demote users, self-demotion protection
  • Refund Management - Approve/deny customer refund requests
  • Penalty Management - Apply and resolve user penalties
  • Data Export - Export all system data as JSON files

Customer Pages

  • Shopping Cart - View, update quantities, remove items, checkout
  • Order Confirmation - Success page with order details
  • Transaction History - View past orders, request refunds
  • Wishlist - Save products, add to cart
  • My Penalties - View active and resolved penalties with filtering
  • Product Browsing - Enhanced search, sort, currency conversion
  • Product Details - Full product info, reviews, add to cart

UI/UX Improvements

  • Modern Navbar - Sticky header, user avatars (first letter circles), integrated search, shopping cart icon branding
  • Enhanced Product Filters - Card-based layout, better typography, results count badge
  • Security - Self-demotion protection for admins (cannot demote themselves)

Code Cleanup

  • Deleted unused files (10+ files removed including old components, utilities, test reports)
  • Refactored API client with automatic auth token handling
  • Updated type definitions for consistency
  • Removed backend image scraper service (no router)

Still Needs Implementation

Kithe's Tasks

  1. User Metrics Endpoint - Implement get_user_metrics() in backend/services/metrics_service.py
    • Frontend UI already complete and waiting for this endpoint
  2. Metrics Page Formatting - Fix overlapping content issues

Harrison's Tasks

  1. Penalty Dispute Functionality - Add dispute endpoint and frontend UI for customers to dispute penalties

Statistics

  • 14 new pages created
  • 5 components modernized
  • 46 API endpoints integrated
  • All core features working (shopping, checkout, refunds, reviews, penalties, admin tools)
  • Production ready except for 2 pending features above

@frasermuller frasermuller linked an issue Dec 4, 2025 that may be closed by this pull request
@KitheK
Copy link
Owner

KitheK commented Dec 4, 2025

Hey Fraser, this addition to the layout is amazing. The added functionalities throughout the project, as well as the fast data handling that this system is capable of is incredible.

I like all the additions to the systems functionality, as well as the speed at which the system currently runs at.

Great work, we are almost at the finish line

@Corangit
Copy link
Collaborator

Corangit commented Dec 4, 2025

Here it is! The world biggest PR. Everything looks great here no conflicts and all tests passed, the design looks sleek and effective and the speed of everything is great. You're individual added functionality also looks great. Everything is smooth and works as it should when I loaded through docker following our readme instructions. Everythings coming together. Well done.

@frasermuller frasermuller merged commit a83f8b4 into main Dec 4, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Frontend/Product_Cart_Checkout_Transaction_Refund

4 participants