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

[Gutenberg] Hide help button from UBE #17644

Merged
merged 14 commits into from
Jan 14, 2022

Conversation

SiobhyB
Copy link
Contributor

@SiobhyB SiobhyB commented Dec 8, 2021

Addresses wordpress-mobile/gutenberg-mobile#4339

Related PRs and Installable Builds

Description

As described in wordpress-mobile/gutenberg-mobile#4339, a help button is currently displaying in the bottom right-hand corner of the unsupported block editor (UBE) in both the Android and iOS apps. The button can be seen while logged into WordPress.com. When tapped on, the button has no impact on iOS.

With this PR, the button is hidden from view in order to avoid confusion and potential loss of edits. A high-level overview of the code changes can be found in the Types of changes section of the Gutenberg PR.

Testing

Please refer to the Gutenberg PR as the "central PR" with the most up-to-date testing instructions.


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.

@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Dec 8, 2021

You can trigger an installable build for these changes by visiting CircleCI here.

@SiobhyB SiobhyB added [Status] DO NOT MERGE Gutenberg Editing and display of Gutenberg blocks. labels Dec 8, 2021
@SiobhyB SiobhyB changed the title Hide help button from UBE [DO NOT MERGE] Hide help button from UBE Dec 8, 2021
@SiobhyB SiobhyB self-assigned this Dec 8, 2021
@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Dec 8, 2021

You can trigger optional UI/connected tests for these changes by visiting CircleCI here.

Siobhan added 5 commits December 14, 2021 12:13
In order to allow custom, external CSS styles, the pattern set for allowing custom JS scripts has been followed i.e. a function similar to 'onGutenbergReadyScripts()' has been created, 'onGutenbergReadyStyles()', along with a function for processing the styles, 'loadCustomStyles()'.
@SiobhyB SiobhyB marked this pull request as ready for review December 14, 2021 17:59
@SiobhyB SiobhyB changed the title [DO NOT MERGE] Hide help button from UBE [Gutenberg] Hide help button from UBE Dec 14, 2021
@SiobhyB SiobhyB requested a review from twstokes December 14, 2021 21:11
@@ -82,6 +82,12 @@ class GutenbergWebViewController: GutenbergWebSingleBlockViewController, WebKitA
].compactMap { $0 }
}

override func onGutenbergReadyStyles() -> [WKUserScript] {
Copy link
Contributor

Choose a reason for hiding this comment

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

Just wanted to flag this comment from the Gutenberg PR about the function name.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you, changed in 9a2cf3b. Let me know if you have further thoughts on the naming, though!

Siobhan added 4 commits December 17, 2021 14:38
Following the refactoring of the SourceFile function (as outlined here:
WordPress/gutenberg@0cda8b3), the loadCustomStyles function can now be simplified to just call SourceFile() directly.
Copy link
Contributor

@twstokes twstokes left a comment

Choose a reason for hiding this comment

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

LGTM @SiobhyB to merge after pointing to the appropriate tag. 👍

@SiobhyB SiobhyB added this to the 19.1 milestone Jan 14, 2022
@SiobhyB SiobhyB merged commit 5fe26cf into develop Jan 14, 2022
@SiobhyB SiobhyB deleted the gutenberg/update/hide-help-button-from-ube branch January 14, 2022 15:31
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. Posting/Editing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants