Skip to content

[RNMobile] Tiled Gallery: Hide inner block settings - #21694

Merged
SiobhyB merged 2 commits into
rnmobile/add/tiled-gallery-blockfrom
rnmobile/try/hide-child-block-controls
Nov 16, 2021
Merged

SiobhyB merged 2 commits into
rnmobile/add/tiled-gallery-blockfrom
rnmobile/try/hide-child-block-controls

Conversation

@SiobhyB

@SiobhyB SiobhyB commented Nov 10, 2021 •

Copy link
Copy Markdown

Partial fix for wordpress-mobile/gutenberg-mobile#4190 (note, this PR won't hide the image's caption, only the settings toggle)

Changes proposed in this Pull Request:

Jetpack product discussion

p9ugOq-1Tb-p2

Does this pull request change what data or activity we track or use?

No, it doesn't.

Testing instructions:

Prerequisite: The following testing instructions rely on the code in WordPress/gutenberg#36371, which hasn't been merged into Gutenberg's trunk at the time of writing. Please make sure to check out the branch that the code is on if it's not merged into trunk.

  • With these branches checked out and the Gutenberg Mobile demo app running, add the Tiled Gallery block then upload a few images to it.
  • Select an image and verify that the settings control no longer displays alongside it.
Before After

With this commit, '__experimentalExposeControlsToChildren' is set to 'false', so that the gallery's inner blocks don't display settings.
@matticbot

Copy link
Copy Markdown
Contributor

Caution: This PR has changes that must be merged to WordPress.com
Hello SiobhyB! These changes need to be synced to WordPress.com - If you 're an a11n, please commandeer and confirm D69871-code works as expected before merging this PR. Once this PR is merged, please commit the changes to WP.com. Thank you!
This revision will be updated with each commit to this PR

@SiobhyB
SiobhyB changed the base branch from master to rnmobile/add/tiled-gallery-block November 10, 2021 15:19
@github-actions github-actions Bot added the [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ label Nov 10, 2021
@github-actions

github-actions Bot commented Nov 10, 2021 •

Copy link
Copy Markdown
Contributor

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ All commits were linted before commit.
  • ✅ Add a "[Status]" label (In Progress, Needs Team Review, ...).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • 🔴 Add changelog entries to affected projects

This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖


The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available.


🔴 Action required: Please add missing changelog entries for the following projects: projects/plugins/jetpack

Use the Jetpack CLI tool to generate changelog entries by running the following command: jetpack changelog add.
Guidelines: /docs/writing-a-good-changelog-entry.md


Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped.
Then, add the "[Status] Needs Team review" label and ask someone from your team review the code.
Once you’ve done so, switch to the "[Status] Needs Review" label; someone from Jetpack Crew will then review this PR and merge it to be included in the next Jetpack release.


Jetpack plugin:

  • Next scheduled release: December 7, 2021.
  • Scheduled code freeze: November 30, 2021.

@github-actions github-actions Bot added the [Status] Needs Author Reply We need more details from you. This label will be auto-added until the PR meets all requirements. label Nov 10, 2021
align: [ 'center', 'wide', 'full' ],
customClassName: false,
html: false,
__experimentalExposeControlsToChildren: false,

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This will only impact mobile, given that inner blocks aren't being used by the web version of the block.

@SiobhyB SiobhyB changed the title [RNMobile] [RNMobile] Tiled Gallery: Hide inner block settings Nov 10, 2021
@SiobhyB SiobhyB changed the title [RNMobile] Tiled Gallery: Hide inner block settings [RNMobile] [WIP] Tiled Gallery: Hide inner block settings Nov 10, 2021
@guarani
guarani self-requested a review November 11, 2021 18:52

@guarani guarani left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I tested this by checking out add/tiled-gallery-block in Gutenberg Mobile and checking out this Jetpack branch and WordPress/gutenberg#36371 branch in Gutenberg. Then I changed __experimentalExposeControlsToChildren to __experimentalDisplayChildBlockControls and the inner image blocks didn't display their settings button (as expected).

I'm approving now on the assumption that the above is all that's needed to make this PR ready.

As discussed in WordPress/gutenberg#36371, '__experimentalExposeControlsToChildren' doesn't accurately reflect what we're trying to achieve. Instead, a new block supports, '__experimentalHideChildBlockControls', as been created for accuracy and clarity.
@SiobhyB
SiobhyB marked this pull request as ready for review November 16, 2021 12:16
@SiobhyB
SiobhyB merged commit 017ee69 into rnmobile/add/tiled-gallery-block Nov 16, 2021
@SiobhyB
SiobhyB deleted the rnmobile/try/hide-child-block-controls branch November 16, 2021 12:18
@github-actions github-actions Bot removed [Status] Needs Author Reply We need more details from you. This label will be auto-added until the PR meets all requirements. [Status] In Progress labels Nov 16, 2021
@SiobhyB SiobhyB changed the title [RNMobile] [WIP] Tiled Gallery: Hide inner block settings [RNMobile] Tiled Gallery: Hide inner block settings Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Block] Tiled Gallery [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ Touches WP.com Files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants