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

Custom Fields for New Product Editor #44169

Closed
7 tasks done
j111q opened this issue Jan 30, 2024 · 0 comments · Fixed by #45291, #45360, #45396, #45484 or #45493
Closed
7 tasks done

Custom Fields for New Product Editor #44169

j111q opened this issue Jan 30, 2024 · 0 comments · Fixed by #45291, #45360, #45396, #45484 or #45493
Assignees
Labels
focus: new product ux revamped product management experience focus: product management Related to product creation and editing. team: Mothra

Comments

@j111q
Copy link

j111q commented Jan 30, 2024

Description

A custom fields section, similar in functionality to the "Custom Fields" metabox in the classic experience, will be implemented:

Screenshot 2024-02-01 at 08 46 55

Design
Figma: vhp1LFki2xHqjck6UegZJT-fi-86_55852
P2 post: peCask-DS-p2

image

Implementation Notes

  • post_custom_meta_box() - This is how the classic editor "Custom Fields" metabox is implemented. A great reference.
  • We will need to likely create a REST endpoint to get the possible meta field keys to display in the dropdown, as I don't think this is exposed in any way in the core WP REST API.

Acceptance Criteria

  • Use custom fields toggle appears under Attributes
  • When toggled on, the Custom fields section appears
  • User is able to click on the help icon to read helper text, next to the Custom fields header
  • Any non-protected meta fields should be shown
  • When there are no Custom fields, the empty state should be the same as the one used in Attributes
  • When adding or editing custom fields, the modal and interactions should be the same as the one used in Attributes
  • If the Use custom fields toggle is on > Custom fields are added > Product is saved > Then Use custom fields is toggled off > Product is saved > Then toggle is switched on again > The previously added fields should re-appear. This would match how it works currently in the legacy editor.
@j111q j111q added focus: product management Related to product creation and editing. focus: new product ux revamped product management experience team: Mothra labels Jan 30, 2024
@mdperez86 mdperez86 self-assigned this Mar 4, 2024
@mdperez86 mdperez86 reopened this Mar 11, 2024
@mdperez86 mdperez86 reopened this Mar 11, 2024
@mdperez86 mdperez86 reopened this Mar 11, 2024
@mdperez86 mdperez86 reopened this Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment