-
Notifications
You must be signed in to change notification settings - Fork 216
feat: Connect Dokan admin dashboard UI with API. (PR-4) #2803
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
feat: Connect Dokan admin dashboard UI with API. (PR-4) #2803
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…okan-admin-dashboard-ui
…okan-admin-dashboard-ui
…mprove prop typing
…/dokan-admin-dashboard # Conflicts: # src/AdminDashboardMenu/index.tsx # src/AdminDashboardMenu/tailwind.scss # src/admin/dashboard/pages/dashboard/components/DynamicIcon.tsx # src/admin/dashboard/pages/dashboard/hooks/useDashboardApiData.ts # src/admin/dashboard/pages/dashboard/index.tsx # src/admin/dashboard/pages/dashboard/sections/AllTimeStatsSection/Skeleton.tsx # src/admin/dashboard/pages/dashboard/sections/AllTimeStatsSection/index.tsx # src/admin/dashboard/pages/dashboard/sections/AnalyticsSection/Skeleton.tsx # src/admin/dashboard/pages/dashboard/sections/AnalyticsSection/index.tsx # src/admin/dashboard/pages/dashboard/sections/CustomerMetricsSection/Skeleton.tsx # src/admin/dashboard/pages/dashboard/sections/CustomerMetricsSection/index.tsx # src/admin/dashboard/pages/dashboard/sections/MonthlyOverviewSection/Skeleton.tsx # src/admin/dashboard/pages/dashboard/sections/MonthlyOverviewSection/index.tsx # src/admin/dashboard/pages/dashboard/sections/MostReportedVendorsSection/Skeleton.tsx # src/admin/dashboard/pages/dashboard/sections/MostReportedVendorsSection/index.tsx # src/admin/dashboard/pages/dashboard/sections/MostReviewedProductsSection/Skeleton.tsx # src/admin/dashboard/pages/dashboard/sections/MostReviewedProductsSection/index.tsx # src/admin/dashboard/pages/dashboard/sections/SalesChartSection/Skeleton.tsx # src/admin/dashboard/pages/dashboard/sections/SalesChartSection/index.tsx # src/admin/dashboard/pages/dashboard/sections/TodoSection/Skeleton.tsx # src/admin/dashboard/pages/dashboard/sections/TodoSection/index.tsx # src/admin/dashboard/pages/dashboard/sections/TopPerformingVendorsSection/Skeleton.tsx # src/admin/dashboard/pages/dashboard/sections/TopPerformingVendorsSection/index.tsx # src/admin/dashboard/pages/dashboard/types.ts # src/admin/dashboard/pages/dashboard/utils/api.ts
…okan-admin-dashboard-ui
…yout and functionality
…implement-dokan-admin-dashboard-ui # Conflicts: # src/admin/dashboard/pages/dashboard/Elements/MonthPicker.tsx # src/admin/dashboard/pages/dashboard/index.tsx # src/admin/dashboard/pages/dashboard/types.ts # src/admin/dashboard/pages/dashboard/utils/api.ts
…okan-admin-dashboard-ui
…okan-admin-dashboard-ui # Conflicts: # src/admin/dashboard/pages/dashboard/Elements/Section.tsx
…okan-admin-dashboard-ui
…ad of opening a new tab
…dling in index.tsx
0b6f282
into
feat/admin-dashboard-metrics-api
* feat: add Admin Dashboard API with multiple endpoints for metrics and reports * feat: add VendorOrderStats model and data store for tracking vendor order statistics * feat: update filter name and refine withdrawal count return type in AdminDashboardController * feat: enhance customer metrics API to accept date parameter and refine data retrieval logic * feat: enhance VendorOrderStats API with sales chart data and active vendor count by date range * feat: enhance Admin Dashboard metrics with structured data and additional order statuses * feat: update VendorOrderStats API to exclude specific order statuses and enhance data retrieval with filters * update 3 files * feat: add helper to fill missing dates in sales chart data results * feat: refactor Admin Dashboard metrics to utilize AdminDashboardStats model and streamline data retrieval * feat: enhance sales chart data retrieval with daily breakdown and optional grouping * feat: rename sales chart data methods for consistency and clarity * feat: remove deprecated sales chart data methods and enhance product type filtering in Admin Dashboard * feat: add unit tests for AdminDashboardController REST API endpoints * feat: refactor SQL query construction for improved readability in VendorOrderStatsStore * feat: update date handling in Admin Dashboard API to use dokan_current_datetime for consistency * feat: refactor Admin Dashboard API to improve structure and add new stats controller * feat: add AdminDashboardStats model and update date handling in AdminDashboardStatsController * feat: refactor SQL query construction for improved readability in AdminDashboardStatsStore * feat: improve SQL query construction in AdminDashboardStatsStore for better readability and maintainability * feat: add analytics endpoint to AdminDashboardStatsController and update related tests * test: improve readability of assertions in AdminDashboardStatsControllerTest * test: enhance readability of endpoint assertions in AdminDashboardStatsControllerTest * refactor: simplify SQL query preparation and improve code readability in AdminDashboardStatsStore * feat: enhance metrics API to include recurring customers and improve date range handling * feat: update vendor icon in AdminDashboardStatsController for consistency * feat: enhance admin dashboard metrics with position and redirect URL attributes * feat: Connect Dokan admin dashboard UI with API. (PR-4) (#2803) * feat: implement Dokan admin dashboard UI components and API integration * feat: implement UI for Dokan admin dashboard with sales chart and metrics sections * feat: update skeleton components to use concise function syntax and improve prop typing * feat: refactor dashboard menu structure and update routing for improved navigation * feat: update admin dashboard UI components and styles for improved layout and functionality * feat: update AdminNotices and Section components for improved UI and functionality * feat: add sorting utility and integrate it into dashboard sections * feat: enhance MiniCard component with clickable styling for better user interaction * feat: update DokanButton to navigate using window.location.href instead of opening a new tab * enhance: enhance MonthPicker and Section components, improve data handling in index.tsx * feat: implement vendor metrics section and update related API endpoints --------- Co-authored-by: Wasi-Ur-Rahman <[email protected]>
…roved navigation. (PR-2) (#2805) * feat: add custom Popover component using WordPress UI * feat: integrate Popover component into WpDatePicker for enhanced date selection * feat: enhance CategorySelector with custom Popover for category selection * feat: refactor dashboard menu structure and update routing for improved navigation * Update month picker component by wp popover * feat: add minDate and maxDate props to MonthPicker for date range selection * feat: update AdminSetupBanner and integrate it into Header component * feat: enhance dashboard menu structure and add admin notices component * feat: enhance admin notices component with close action and dynamic URL handling * feat: implement legacy dashboard redirect and enhance dashboard URL handling * feat: update dashboard redirect handling and unify dashboard URL structure * feat: Implement admin dashboard api metrics. (PR-3) (#2796) * feat: add Admin Dashboard API with multiple endpoints for metrics and reports * feat: add VendorOrderStats model and data store for tracking vendor order statistics * feat: update filter name and refine withdrawal count return type in AdminDashboardController * feat: enhance customer metrics API to accept date parameter and refine data retrieval logic * feat: enhance VendorOrderStats API with sales chart data and active vendor count by date range * feat: enhance Admin Dashboard metrics with structured data and additional order statuses * feat: update VendorOrderStats API to exclude specific order statuses and enhance data retrieval with filters * update 3 files * feat: add helper to fill missing dates in sales chart data results * feat: refactor Admin Dashboard metrics to utilize AdminDashboardStats model and streamline data retrieval * feat: enhance sales chart data retrieval with daily breakdown and optional grouping * feat: rename sales chart data methods for consistency and clarity * feat: remove deprecated sales chart data methods and enhance product type filtering in Admin Dashboard * feat: add unit tests for AdminDashboardController REST API endpoints * feat: refactor SQL query construction for improved readability in VendorOrderStatsStore * feat: update date handling in Admin Dashboard API to use dokan_current_datetime for consistency * feat: refactor Admin Dashboard API to improve structure and add new stats controller * feat: add AdminDashboardStats model and update date handling in AdminDashboardStatsController * feat: refactor SQL query construction for improved readability in AdminDashboardStatsStore * feat: improve SQL query construction in AdminDashboardStatsStore for better readability and maintainability * feat: add analytics endpoint to AdminDashboardStatsController and update related tests * test: improve readability of assertions in AdminDashboardStatsControllerTest * test: enhance readability of endpoint assertions in AdminDashboardStatsControllerTest * refactor: simplify SQL query preparation and improve code readability in AdminDashboardStatsStore * feat: enhance metrics API to include recurring customers and improve date range handling * feat: update vendor icon in AdminDashboardStatsController for consistency * feat: enhance admin dashboard metrics with position and redirect URL attributes * feat: Connect Dokan admin dashboard UI with API. (PR-4) (#2803) * feat: implement Dokan admin dashboard UI components and API integration * feat: implement UI for Dokan admin dashboard with sales chart and metrics sections * feat: update skeleton components to use concise function syntax and improve prop typing * feat: refactor dashboard menu structure and update routing for improved navigation * feat: update admin dashboard UI components and styles for improved layout and functionality * feat: update AdminNotices and Section components for improved UI and functionality * feat: add sorting utility and integrate it into dashboard sections * feat: enhance MiniCard component with clickable styling for better user interaction * feat: update DokanButton to navigate using window.location.href instead of opening a new tab * enhance: enhance MonthPicker and Section components, improve data handling in index.tsx * feat: implement vendor metrics section and update related API endpoints --------- Co-authored-by: Wasi-Ur-Rahman <[email protected]> --------- Co-authored-by: Aunshon <[email protected]> Co-authored-by: Wasi-Ur-Rahman <[email protected]>
* feat: add admin dashboard components including DashboardMenu, Card, MiniCard, MonthPicker, and Section * feat: enhance MonthPicker and Section components with improved functionality and tooltip support * enhance: Refactor dashboard menu structure and update routing for improved navigation. (PR-2) (#2805) * feat: add custom Popover component using WordPress UI * feat: integrate Popover component into WpDatePicker for enhanced date selection * feat: enhance CategorySelector with custom Popover for category selection * feat: refactor dashboard menu structure and update routing for improved navigation * Update month picker component by wp popover * feat: add minDate and maxDate props to MonthPicker for date range selection * feat: update AdminSetupBanner and integrate it into Header component * feat: enhance dashboard menu structure and add admin notices component * feat: enhance admin notices component with close action and dynamic URL handling * feat: implement legacy dashboard redirect and enhance dashboard URL handling * feat: update dashboard redirect handling and unify dashboard URL structure * feat: Implement admin dashboard api metrics. (PR-3) (#2796) * feat: add Admin Dashboard API with multiple endpoints for metrics and reports * feat: add VendorOrderStats model and data store for tracking vendor order statistics * feat: update filter name and refine withdrawal count return type in AdminDashboardController * feat: enhance customer metrics API to accept date parameter and refine data retrieval logic * feat: enhance VendorOrderStats API with sales chart data and active vendor count by date range * feat: enhance Admin Dashboard metrics with structured data and additional order statuses * feat: update VendorOrderStats API to exclude specific order statuses and enhance data retrieval with filters * update 3 files * feat: add helper to fill missing dates in sales chart data results * feat: refactor Admin Dashboard metrics to utilize AdminDashboardStats model and streamline data retrieval * feat: enhance sales chart data retrieval with daily breakdown and optional grouping * feat: rename sales chart data methods for consistency and clarity * feat: remove deprecated sales chart data methods and enhance product type filtering in Admin Dashboard * feat: add unit tests for AdminDashboardController REST API endpoints * feat: refactor SQL query construction for improved readability in VendorOrderStatsStore * feat: update date handling in Admin Dashboard API to use dokan_current_datetime for consistency * feat: refactor Admin Dashboard API to improve structure and add new stats controller * feat: add AdminDashboardStats model and update date handling in AdminDashboardStatsController * feat: refactor SQL query construction for improved readability in AdminDashboardStatsStore * feat: improve SQL query construction in AdminDashboardStatsStore for better readability and maintainability * feat: add analytics endpoint to AdminDashboardStatsController and update related tests * test: improve readability of assertions in AdminDashboardStatsControllerTest * test: enhance readability of endpoint assertions in AdminDashboardStatsControllerTest * refactor: simplify SQL query preparation and improve code readability in AdminDashboardStatsStore * feat: enhance metrics API to include recurring customers and improve date range handling * feat: update vendor icon in AdminDashboardStatsController for consistency * feat: enhance admin dashboard metrics with position and redirect URL attributes * feat: Connect Dokan admin dashboard UI with API. (PR-4) (#2803) * feat: implement Dokan admin dashboard UI components and API integration * feat: implement UI for Dokan admin dashboard with sales chart and metrics sections * feat: update skeleton components to use concise function syntax and improve prop typing * feat: refactor dashboard menu structure and update routing for improved navigation * feat: update admin dashboard UI components and styles for improved layout and functionality * feat: update AdminNotices and Section components for improved UI and functionality * feat: add sorting utility and integrate it into dashboard sections * feat: enhance MiniCard component with clickable styling for better user interaction * feat: update DokanButton to navigate using window.location.href instead of opening a new tab * enhance: enhance MonthPicker and Section components, improve data handling in index.tsx * feat: implement vendor metrics section and update related API endpoints --------- Co-authored-by: Wasi-Ur-Rahman <[email protected]> --------- Co-authored-by: Aunshon <[email protected]> Co-authored-by: Wasi-Ur-Rahman <[email protected]> * feat: enhance DateRangePicker styling and structure * refactor: simplify MonthPicker component structure and improve popover integration * feat: enhance admin dashboard components with improved notice handling and updated data fetching logic * refactor: remove comparisonPosition prop from MonthPicker in admin dashboard * feat: update Card and Section components to use DokanTooltip and enhance content rendering * feat: enhance layout of earnings and commission display in admin dashboard * feat: format sales and commissions display in admin dashboard and enhance popover styling * feat: integrate DokanTooltip for vendor and product titles in admin dashboard sections * feat: replace inline price formatting with utility function for consistency in sales data display * feat: improve text handling in admin dashboard components for better readability * feat: reduce max width of text containers in admin dashboard for improved layout * feat: reduce max width of text containers in admin dashboard for better layout consistency --------- Co-authored-by: Md. Asif Hossain Nadim <[email protected]> Co-authored-by: Wasi-Ur-Rahman <[email protected]> Co-authored-by: Md Asif Hossain Nadim <[email protected]>
All Submissions:
Changes proposed in this Pull Request:
Related Pull Request(s)
Closes
How to test the changes in this Pull Request:
Changelog entry
Title
Detailed Description of the pull request. What was previous behaviour
and what will be changed in this PR.
Before Changes
Describe the issue before changes with screenshots(s).
After Changes
Describe the issue after changes with screenshot(s).
Feature Video (optional)
Link of detailed video if this PR is for a feature.
PR Self Review Checklist:
FOR PR REVIEWER ONLY: