Skip to content

feat: React Skeleton and Vendor withdraw#2403

Merged
mrabbani merged 74 commits intorelease/v4.0from
update/vendor-dashboard-structure
Mar 3, 2025
Merged

feat: React Skeleton and Vendor withdraw#2403
mrabbani merged 74 commits intorelease/v4.0from
update/vendor-dashboard-structure

Conversation

@shohag121
Copy link
Member

@shohag121 shohag121 commented Oct 17, 2024

All Submissions:

  • My code follow the WordPress' coding standards
  • My code satisfies feature requirements
  • My code is tested
  • My code passes the PHPCS tests
  • My code has proper inline documentation
  • I've included related pull request(s) (optional)
  • I've included developer documentation (optional)
  • I've added proper labels to this pull request

Changes proposed in this Pull Request:

Related Pull Request(s)

Closes

How to test the changes in this Pull Request:

  • Please check if flash rewrite rules need to be updated or not just after switching into this branch.

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:

  • Code is not following code style guidelines
  • Bad naming: make sure you would understand your code if you read it a few months from now.
  • KISS: Keep it simple, Sweetie (not stupid!).
  • DRY: Don't Repeat Yourself.
  • Code that is not readable: too many nested 'if's are a bad sign.
  • Performance issues
  • Complicated constructions that need refactoring or comments: code should almost always be self-explanatory.
  • Grammar errors.

FOR PR REVIEWER ONLY:

As a reviewer, your feedback should be focused on the idea, not the person. Seek to understand, be respectful, and focus on constructive dialog.

As a contributor, your responsibility is to learn from suggestions and iterate your pull request should it be needed based on feedback. Seek to collaborate and produce the best possible contribution to the greater whole.

  • Correct — Does the change do what it’s supposed to? ie: code 100% fulfilling the requirements?
  • Secure — Would a nefarious party find some way to exploit this change? ie: everything is sanitized/escaped appropriately for any SQL or XSS injection possibilities?
  • Readable — Will your future self be able to understand this change months down the road?
  • Elegant — Does the change fit aesthetically within the overall style and architecture?

Summary by CodeRabbit

Based on the comprehensive summary, here are the updated release notes:

  • New Features

    • Added a new Status page in the admin dashboard with dynamic content rendering.
    • Introduced DataView Table component for flexible data management.
    • Implemented a Sortable List component with drag-and-drop functionality.
    • Enhanced dashboard navigation with React routing capabilities.
    • Added new REST API endpoints for managing continents and countries.
    • Introduced new components for status elements, including Button, Heading, Link, and more.
    • Added new useWindowDimensions hook for tracking viewport dimensions.
    • Introduced VendorNavMenuChecker for managing vendor dashboard navigation.
    • Added NewDashboard class for custom dashboard templates.
    • Enhanced withdrawal management with new components and hooks for handling requests and balances.
    • Added a new Filter component for standardized filtering operations.
    • Introduced DokanModal for customizable modal dialogs.
  • Improvements

    • Updated REST API endpoints for customers, continents, and countries.
    • Enhanced the integration of React components and styles into the asset management system.
    • Improved error handling and loading states across various components.
  • Technical Updates

    • Upgraded Tailwind CSS configuration.
    • Updated webpack entry points and configuration.
    • Added new dependencies for improved functionality.
    • Extended the global Window interface for better type safety in TypeScript.
  • Documentation

    • Added comprehensive documentation for components, hooks, and utilities.
    • Provided implementation guides for new features.
    • Enhanced documentation for the DataView Table and Sortable List components.
    • Updated documentation for defining menus and managing PHP overrides in React applications.
    • Introduced guidelines for creating filter and slot documentation.

@coderabbitai

This comment was marked as off-topic.

coderabbitai[bot]

This comment was marked as off-topic.

coderabbitai[bot]

This comment was marked as off-topic.

mralaminahamed and others added 2 commits October 21, 2024 13:47
This commit introduces a new REST API endpoint for searching customers
specific to a vendor's orders. Key changes include:

- Add new route `/dokan/v1/customers/search` in CustomersController
- Implement `search_customers` method with the following features:
  * Search customers by ID or term (name/email)
  * Limit results to customers who have ordered from the current vendor
  * Support excluding specific customer IDs
  * Limit results to 20 when search term is less than 3 characters
  * Apply `dokan_json_search_found_customers` filter for extensibility
- Add permission check to ensure only users with 'edit_shop_orders' capability can access
- Include detailed PHPDoc for the new filter

This feature allows vendors to efficiently search their customer base
through the REST API, mirroring the functionality of the existing AJAX action
while providing a standardized API interface.
coderabbitai[bot]

This comment was marked as off-topic.

coderabbitai[bot]

This comment was marked as off-topic.

coderabbitai[bot]

This comment was marked as off-topic.

coderabbitai[bot]

This comment was marked as off-topic.

coderabbitai[bot]

This comment was marked as off-topic.

…er-api' into update/vendor-dashboard-structure

# Conflicts:
#	includes/REST/Manager.php
coderabbitai[bot]

This comment was marked as off-topic.

coderabbitai[bot]

This comment was marked as off-topic.

@mrabbani mrabbani added Dev Review Done and removed Needs: Dev Review It requires a developer review and approval labels Feb 13, 2025
coderabbitai[bot]

This comment was marked as off-topic.

@shashwatahalder01
Copy link
Contributor

shashwatahalder01 commented Feb 14, 2025

Scenario:
Loader Icon Appears on Both Buttons in Withdrawal Request Cancel Modal

Screenshot:
Screenshot at Feb 14 11-13-04

@shashwatahalder01
Copy link
Contributor

Scenario:
Request Withdraw Button Displays Insufficient Balance Warning Despite Sufficient Funds.

On the "View Payments" page, clicking the Request Withdraw button triggers an "Insufficient Balance" warning message, even when the vendor's account balance exceeds the minimum withdrawal restriction.

Steps to reproduce:

  1. Navigate to vendor > withdraw > view payments page
  2. Click withdraw button on the "View Payments" page.

Screencast

@shashwatahalder01
Copy link
Contributor

shashwatahalder01 commented Feb 14, 2025

Scenario:
console error on the withdraw page

Screenshot:
Screenshot at Feb 14 15-17-32

@shashwatahalder01
Copy link
Contributor

Scenario:
Console Error When Submitting Withdrawal Request Below Minimum Amount on First Attempt

When a user attempts to submit a withdrawal request for an amount below the minimum required amount, a console error occurs on the first attempt.

Steps to Reproduce:

  1. Navigate to Withdraw Page
  2. Enter an amount below the minimum withdrawal limit (e.g., enter $50 when the minimum is $100).
  3. Click the Submit or Request Withdraw button.
  4. Observe Console
  5. Navigate away from the withdrawal page (e.g., go to the Dashboard or another section). and then return back to the withdrawal page.
  6. Repeat steps 2 to 4 to observe if the error persists.

Screenshot:
Screenshot at Feb 14 15-25-06

@shashwatahalder01
Copy link
Contributor

Scenario:
There is no close button on the withdraw disbursement modal window

Screenshot:
Screenshot at Feb 14 16-58-34
Screenshot at Feb 14 16-58-45

@shashwatahalder01 shashwatahalder01 added Needs: Testing This requires further testing and removed QA In Progress labels Feb 20, 2025
@Aunshon
Copy link
Collaborator

Aunshon commented Feb 26, 2025

Scenario: Console Error When Submitting Withdrawal Request Below Minimum Amount on First Attempt

When a user attempts to submit a withdrawal request for an amount below the minimum required amount, a console error occurs on the first attempt.

Steps to Reproduce:

  1. Navigate to Withdraw Page
  2. Enter an amount below the minimum withdrawal limit (e.g., enter $50 when the minimum is $100).
  3. Click the Submit or Request Withdraw button.
  4. Observe Console
  5. Navigate away from the withdrawal page (e.g., go to the Dashboard or another section). and then return back to the withdrawal page.
  6. Repeat steps 2 to 4 to observe if the error persists.

Screenshot: Screenshot at Feb 14 15-25-06

@shashwatahalder01 vai we will ignore this error for now, this issue occered for Dokan UI i have discussed with @mrabbani vai about it.

coderabbitai[bot]

This comment was marked as off-topic.

Fix loader when cancel withdraw request.
coderabbitai[bot]

This comment was marked as off-topic.

…le contents. (#2546)

* enhance: Introduce DokanModal component.

* enhance: Update dokan src package root name.

* fix: remove unused code.

* enhance: Expand sortable list feature, handle pointer & elements.

* fix: remove dokan modal & add params with header slot.
coderabbitai[bot]

This comment was marked as off-topic.

@mrabbani mrabbani changed the title feat: React Skeleton feat: React Skeleton and Vendor withdraw Mar 3, 2025
@mrabbani mrabbani changed the base branch from develop to release/v4.0 March 3, 2025 06:34
@mrabbani mrabbani merged commit e4d8aa7 into release/v4.0 Mar 3, 2025
0 of 6 checks passed
@mrabbani mrabbani deleted the update/vendor-dashboard-structure branch March 3, 2025 06:35
@mrabbani mrabbani added the Bump Version Select for the next major version release label Mar 3, 2025
@Aunshon Aunshon restored the update/vendor-dashboard-structure branch March 5, 2025 04:35
@coderabbitai coderabbitai bot mentioned this pull request Apr 9, 2025
12 tasks
@mrabbani mrabbani deleted the update/vendor-dashboard-structure branch September 12, 2025 04:07
@coderabbitai coderabbitai bot mentioned this pull request Sep 16, 2025
12 tasks
@coderabbitai coderabbitai bot mentioned this pull request Sep 24, 2025
12 tasks
@coderabbitai coderabbitai bot mentioned this pull request Dec 29, 2025
12 tasks
@coderabbitai coderabbitai bot mentioned this pull request Jan 26, 2026
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bump Version Select for the next major version release Dev Review Done Needs: Testing This requires further testing Type: Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants