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

Add common options to the variations options empty state #44001

Merged
merged 9 commits into from Feb 1, 2024

Conversation

mdperez86
Copy link
Contributor

@mdperez86 mdperez86 commented Jan 23, 2024

Submission Review Guidelines:

Changes proposed in this Pull Request:

Closes #43808

How to test the changes in this Pull Request:

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

  1. Make sure feature New product editor is enabled under /wp-admin/admin.php?page=wc-settings&tab=advanced&section=features
  2. Make sure feature product-variation-management is enabled under Features tab from /wp-admin/tools.php?page=woocommerce-admin-test-helper (WooCommerce Beta Tester plugin) is required
  3. Go to /wp-admin/admin.php?page=wc-admin&path=/add-product
  4. Under the Variations tab a new empty state should be shown in the Variation options section
image
  1. When a user clicks on the secondary buttons of Add sizes or Add colors, then those attributes will be automatically populated into the input field.
image
  1. If the attribute (Size / Color) has already been added to the store, then it should appear in the dropdown menu below.
  2. If the attribute (Size / Color) has not already been added to the store, then it can be created from the dropdown menu below.

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

@mdperez86 mdperez86 added focus: new product ux revamped product management experience team: Mothra labels Jan 23, 2024
@mdperez86 mdperez86 requested a review from a team January 23, 2024 14:39
@mdperez86 mdperez86 self-assigned this Jan 23, 2024
@github-actions github-actions bot added the plugin: woocommerce Issues related to the WooCommerce Core plugin. label Jan 23, 2024
Copy link
Contributor

github-actions bot commented Jan 23, 2024

Hi @octaedro,

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

Copy link
Contributor

github-actions bot commented Jan 23, 2024

Test Results Summary

Commit SHA: 3d0e9ef

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

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.

@octaedro octaedro requested review from octaedro and removed request for a team January 31, 2024 12:53
Copy link
Contributor

@octaedro octaedro left a comment

Choose a reason for hiding this comment

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

Good job @mdperez86! The code is testing well here and looks good too.

From what I saw in the designs (AkVNGImLgSqCObTQ3idVn7-fi-3301%3A321179), it seems like we should remove the Add new button as well.

Screenshot 2024-01-31 at 18 51 50

I'll approve this PR and maybe we can tackle that in a follow-up PR.

@mdperez86 mdperez86 merged commit 861cc7c into trunk Feb 1, 2024
39 checks passed
@mdperez86 mdperez86 deleted the add/43808-common-options branch February 1, 2024 14:18
@github-actions github-actions bot added this to the 8.7.0 milestone Feb 1, 2024
@github-actions github-actions bot added the needs: analysis Indicates if the PR requires a PR testing scrub session. label Feb 1, 2024
thealexandrelara pushed a commit that referenced this pull request Feb 1, 2024
* Always show Variation options and Variations sections within the Variations tab

* Remove woocommerce/product-variations-fields block since it's not needed anymore

* Create ProductTShirt image for variation options empty state

* Add renderCustomEmptyState to the attribute control component to be able to set a not default empty state

* Render a custom empty state for variation options

* Adds defaultSearch prop to NewAttributeModal so it can be used to start searching right after the modal is shown

* Let the empty state adds an attribute that matches a given text

* Add changelog files

* Fix linter errors
@veljkho veljkho added needs: internal testing Indicates if the PR requires further testing conducted by Solaris status: analysis complete Indicates if a PR has been analysed by Solaris and removed needs: analysis Indicates if the PR requires a PR testing scrub session. labels Feb 2, 2024
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: internal testing Indicates if the PR requires further testing conducted by Solaris plugin: woocommerce Issues related to the WooCommerce Core plugin. status: analysis complete Indicates if a PR has been analysed by Solaris team: Mothra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refinement on Variations tab
3 participants