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

Move the Save draft and Preview buttons to the product block header #37249

Closed
3 tasks done
joshuatf opened this issue Mar 15, 2023 · 0 comments · Fixed by #37461 or #37577
Closed
3 tasks done

Move the Save draft and Preview buttons to the product block header #37249

joshuatf opened this issue Mar 15, 2023 · 0 comments · Fixed by #37461 or #37577
Assignees
Labels
focus: product Issues related to product or product page.

Comments

@joshuatf
Copy link
Contributor

joshuatf commented Mar 15, 2023

The "Save draft" and "Preview" buttons should be moved over to the new product blocks header.

Precursor #37152.

Note that the above PR introduces the save button, but this may need to be tweaked to include the correct button labels.

The primary add/save button should publish the product (save the published product), similar to the post editor just with different labels.

Screenshots

Image

Note that in the two pics below the Publish buttons has different labels as these are from GB, we should follow the labels from our design otherwise (this is mostly for the save draft design)
Image
Image

Acceptance criteria

  • The preview button should open a new tab with the frontend preview (prior art exists in the previous iteration of the product editor)
  • The "Save" button should say "Save" for existing products and "Add" for new products (auto-drafts), but should publish the product
  • The "Save draft" should follow the Gutenberg post format (see above screenshots), say Save draft if edited and draft status, show Switch to draft if published, show Saved if draft and saved (no edits).
@github-actions github-actions bot added the status: awaiting triage This is a newly created issue waiting for triage. label Mar 15, 2023
@psealock psealock added focus: product Issues related to product or product page. and removed status: awaiting triage This is a newly created issue waiting for triage. labels Mar 16, 2023
@louwie17 louwie17 changed the title Move the Publish and Preview buttons to the product block header Move the Save draft and Preview buttons to the product block header Mar 23, 2023
@mdperez86 mdperez86 self-assigned this Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus: product Issues related to product or product page.
Projects
None yet
3 participants