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

Editor - Move Undo/Redo to the header #20930

Merged
merged 21 commits into from
Jul 11, 2023
Merged

Conversation

geriux
Copy link
Contributor

@geriux geriux commented Jun 21, 2023

Related PRs:

This PR adds new undo/redo buttons in the navigation bar when the editor is opened, it also updates the existing menu icon.

Screenshots

iPhone Light mode iPhone Dark mode
iPhone Landscape Light mode iPhone Landscape Dark mode
iPhone RTL
iPad Light mode iPad Dark mode
iPad Landscape Light mode iPad Landscape Dark mode

To test

  • Install the build
  • Create a new post
  • Add a few blocks/text
  • Tap on the new undo/redo buttons in the navigation bar
  • Expect the content to change accordingly depending on the button you've tapped

Bonus testing: follow these test cases.

Regression Notes

  1. Potential unintended areas of impact
    Post publishing

  2. What I did to test those areas of impact (or what existing automated tests I relied on)
    Rely on current tests and manual testing

  3. What automated tests I added (or what prevented me from doing so)
    Added new tests for testing the new undo/redo buttons in the navigation bar.

PR submission checklist:

  • I have completed the Regression Notes.
  • I have considered adding unit tests for my changes.
  • I have considered adding accessibility improvements for my changes.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

UI Changes testing checklist:

  • Portrait and landscape orientations.
  • Light and dark modes.
  • Fonts: Larger, smaller and bold text.
  • High contrast.
  • VoiceOver.
  • Languages with large words or with letters/accents not frequently used in English.
  • Right-to-left languages. (Even if translation isn’t complete, formatting should still respect the right-to-left layout)
  • iPhone and iPad.
  • Multi-tasking: Split view and Slide over. (iPad)

@geriux geriux added [Status] In Progress Gutenberg Editing and display of Gutenberg blocks. labels Jun 21, 2023
@wpmobilebot
Copy link
Contributor

wpmobilebot commented Jun 21, 2023

WordPress Alpha📲 You can test the changes from this Pull Request in WordPress Alpha by scanning the QR code below to install the corresponding build.
App NameWordPress Alpha WordPress Alpha
ConfigurationRelease-Alpha
Build Numberpr20930-cd4bc84
Version22.8
Bundle IDorg.wordpress.alpha
Commitcd4bc84
App Center BuildWPiOS - One-Offs #6299
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Jun 21, 2023

Jetpack Alpha📲 You can test the changes from this Pull Request in Jetpack Alpha by scanning the QR code below to install the corresponding build.
App NameJetpack Alpha Jetpack Alpha
ConfigurationRelease-Alpha
Build Numberpr20930-cd4bc84
Version22.8
Bundle IDcom.jetpack.alpha
Commitcd4bc84
App Center Buildjetpack-installable-builds #5324
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.

@geriux geriux force-pushed the gutenberg/move-undo-redo-buttons branch from bcc1f6a to 1777067 Compare June 29, 2023 16:31
@geriux geriux added this to the 22.8 milestone Jun 29, 2023
@geriux geriux force-pushed the gutenberg/move-undo-redo-buttons branch from a0772b4 to 9221a3e Compare June 30, 2023 10:24
@geriux geriux marked this pull request as ready for review July 3, 2023 14:41
@geriux geriux requested a review from a team as a code owner July 3, 2023 14:41
Copy link
Contributor

@tiagomar tiagomar left a comment

Choose a reason for hiding this comment

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

Hey @geriux, let me start by saying that I only reviewed the UI Tests related changes, so a review from other engineer is still needed.

I've left a few comments and suggestions, being the one around avoiding duplication, and the naming convention for assertion steps, the ones that require changes. [Don't simply trust the suggestions, I haven't tested them and some do impact others. 😬 ]

Thanks for adding the UI Tests! 🙇‍♂️

Copy link
Contributor

@momo-ozawa momo-ozawa left a comment

Choose a reason for hiding this comment

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

Works as described! Left one q

@geriux geriux modified the milestones: 22.8, 22.9 Jul 6, 2023
…or both Aztec and Gutenberg, for Gutenberg it will include new undo/redo buttons, for Aztec it will keep the current ones.

It also updates the "Generating preview" text that used to be shown in the header title, now it will show in a SVProgressHUD.

Removes the reloadBlogTitleView code since it is no longer needed.
@geriux geriux requested review from tiagomar and momo-ozawa July 6, 2023 08:57
Copy link
Contributor

@momo-ozawa momo-ozawa left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@tiagomar tiagomar left a comment

Choose a reason for hiding this comment

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

Thanks for considering the suggestions! 🙇
Everything looks good from a UI Tests perspective.

@geriux geriux self-assigned this Jul 6, 2023
@geriux geriux merged commit 48b8a39 into trunk Jul 11, 2023
@geriux geriux deleted the gutenberg/move-undo-redo-buttons branch July 11, 2023 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gutenberg Editing and display of Gutenberg blocks.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants