Skip to content
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

[Product Block Editor]: relocate block actions in the sections area #43555

Merged

Conversation

retrofox
Copy link
Contributor

@retrofox retrofox commented Jan 12, 2024

Submission Review Guidelines:

Changes proposed in this Pull Request:

This PR is a follow-up of #43540, which updates section actions for the following blocks:

  • General / Images
  • General / Downloads
  • Organization / Attributes
  • Variations / Options
  • Linked products

Closes # .

How to test the changes in this Pull Request:

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

  1. Enable the new Product Editor
  2. Check the action buttons of the following blocks
  • General / Images
  • General / Downloads
  • Organization / Attributes
  • Variations / Options
  • Linked products
  1. Confirm the buttons work as expected
  2. Confirm the buttons are properly aligned with the section header
image

Changelog entry

  • Automatically create a changelog entry from the details below.

Significance

  • Patch
  • Minor
  • Major

Type

  • Fix - Fixes an existing bug
  • Add - Adds functionality
  • Update - Update existing functionality
  • Dev - Development related task
  • Tweak - A minor adjustment to the codebase
  • Performance - Address performance issues
  • Enhancement - Improvement to existing functionality

Message

Comment

Copy link
Contributor

github-actions bot commented Jan 12, 2024

Test Results Summary

Commit SHA: d217c4e

Test 🧪Passed ✅Failed 🚨Broken 🚧Skipped ⏭️Unknown ❔Total 📊Duration ⏱️
API Tests25900202610m 37s
E2E Tests1280015102792m 53s

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.

@retrofox retrofox force-pushed the update/product-editor-download-button-to-sections-actions branch from cfbc1ed to fa5110e Compare January 12, 2024 13:45
@retrofox retrofox self-assigned this Jan 12, 2024
@retrofox retrofox added focus: new product ux revamped product management experience team: Mothra WC Merchants activation and store management labels Jan 12, 2024
@retrofox retrofox requested a review from a team January 12, 2024 13:50
Copy link
Contributor

github-actions bot commented Jan 12, 2024

Hi @nathanss, @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

@retrofox retrofox changed the title [Product Block Editor]: tweak section actions of some blocks [Product Block Editor]: tweak action sections of a few blocks Jan 12, 2024
@retrofox retrofox force-pushed the update/product-editor-download-button-to-sections-actions branch from 53a94b3 to 2d8a14f Compare January 12, 2024 15:24
Comment on lines -118 to -126
describe( 'empty state', () => {
it( 'should show subtitle and "Add new" button', () => {
const { queryByText } = render(
<AttributeControl value={ [] } onChange={ () => {} } />
);
expect( queryByText( 'Add new' ) ).toBeInTheDocument();
} );
} );

Copy link
Contributor Author

@retrofox retrofox Jan 12, 2024

Choose a reason for hiding this comment

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

I've removed this test since the button is now transported via a portal to another DOM location. We can try to add a test straight in the SlotFill implementation

@retrofox retrofox changed the title [Product Block Editor]: tweak action sections of a few blocks [Product Block Editor]: relocate block actions in the sections area Jan 15, 2024
@nathanss nathanss self-requested a review January 15, 2024 12:57
Copy link
Contributor

@nathanss nathanss left a comment

Choose a reason for hiding this comment

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

The code is looking good and the changes are all testing as expected! Nice job :)

@retrofox retrofox force-pushed the update/product-editor-download-button-to-sections-actions branch from 2d8a14f to d217c4e Compare January 15, 2024 13:50
@retrofox retrofox merged commit 8974b86 into trunk Jan 15, 2024
36 checks passed
@retrofox retrofox deleted the update/product-editor-download-button-to-sections-actions branch January 15, 2024 14:02
@github-actions github-actions bot added this to the 8.6.0 milestone Jan 15, 2024
@github-actions github-actions bot added the needs: analysis Indicates if the PR requires a PR testing scrub session. label Jan 15, 2024
@nigeljamesstevenson nigeljamesstevenson added needs: external testing Indicates if the PR requires further testing conducted by testers external to the development team. and removed needs: analysis Indicates if the PR requires a PR testing scrub session. labels Jan 15, 2024
@nigeljamesstevenson nigeljamesstevenson added the status: analysis complete Indicates if a PR has been analysed by Solaris label Jan 15, 2024
samueljseay pushed a commit that referenced this pull request Jan 16, 2024
…43555)

* handle section actions styles from section block

* rename DownloadBlockEdit

* remove unneeded wrap el from linked product list

* put Choose an Image button in the actions section

* move attribute control to block actions section

* changelog

* remove unused clientId prop

* tweak Image button

* remove `should show subtitle and "Add new" button` test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus: new product ux revamped product management experience needs: external testing Indicates if the PR requires further testing conducted by testers external to the development team. status: analysis complete Indicates if a PR has been analysed by Solaris team: Mothra WC Merchants activation and store management
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants