Feature #4957
closedefactored MyOrder Module – Component Separation, UI Enhancement & Code Optimization
Description
Split the large MyOrder component into multiple smaller, reusable components:
OrdersList component created
PreOrdersList component created
SalesList component created
SaleDetailsDialog extracted into separate component
Implemented a parent MyOrder component to:
Fetch all transaction data once
Manage tab switching without route changes
Maintain selected dialog state
Pass required data + callbacks to child components
Removed old path-based tab navigation (/orders, /preorders, /sales)
Added clean and modern sub-menu UI (pill-style tabs with count badges)
Improved component readability by:
Simplifying props
Removing duplicate logic
Using cleaner variable names
Using smaller functions for better maintainability
Implemented consistent and minimal UI across all list sections
Ensured all ListCard actions (View, Rebill) interact correctly with the parent
Cleaned up unused code, old comments, and unused imports
Improved folder structure under MyOrder/components for better scalability
Subtasks
Related issues