Skip to content

Conversation

@joshuatf
Copy link
Contributor

@joshuatf joshuatf commented May 5, 2023

Submission Review Guidelines:

Changes proposed in this Pull Request:

Removes the attribute drag handles since dragging breaks the blocks inside the blocks editor.

This PR simply hides them through CSS to avoid removing them from the component itself where they can still be used in the previous iteration of the editor.

Screen Shot 2023-05-04 at 6 27 46 PM

Closes #38117 .

How to test the changes in this Pull Request:

Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:

  1. Navigate to Tools -> WCA Test Helper -> Features and enable the new product blocks editing experience
  2. Navigate to Products -> Add new
  3. Add some attributes
  4. Make sure the drag handle has been removed and there's no way to drag the attributes

@joshuatf joshuatf requested a review from a team May 5, 2023 01:28
@joshuatf joshuatf self-assigned this May 5, 2023
@github-actions
Copy link
Contributor

github-actions bot commented May 5, 2023

Hi , @woocommerce/mothra

Apart from reviewing the code changes, please make sure to review the testing instructions as well.

You can follow this guide to find out what good testing instructions should look like:
https://github.com/woocommerce/woocommerce/wiki/Writing-high-quality-testing-instructions

@github-actions
Copy link
Contributor

github-actions bot commented May 5, 2023

Test Results Summary

Commit SHA: 67108f4

Test 🧪Passed ✅Failed 🚨Broken 🚧Skipped ⏭️Unknown ❔Total 📊Duration ⏱️
API Tests26700202690m 53s
E2E Tests1870010019719m 11s

To view the full API test report, click here.
To view the full E2E test report, click here.
To view all test reports, visit the WooCommerce Test Reports Dashboard.

Copy link
Contributor

@louwie17 louwie17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work and thanks for cleaning up some of the copy pasta in the attributes css :) This tested well 🎉

@louwie17 louwie17 merged commit 4deb5b3 into trunk May 5, 2023
@louwie17 louwie17 deleted the update/38117 branch May 5, 2023 07:55
@github-actions github-actions bot added this to the 7.8.0 milestone May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Product Block Editor: Disable drag and drop of attributes

3 participants