-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[Mobile] - Media & Text: Allow media to be selected and render focal point #22788
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
geriux
added
[Status] In Progress
Tracking issues with work in progress
Mobile App - i.e. Android or iOS
Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)
labels
Jun 1, 2020
Size Change: 0 B Total Size: 1.14 MB ℹ️ View Unchanged
|
geriux
changed the title
[RNMobile] - Allow media within media & text block to be selected
[RNMobile] - Media & Text: Allow media to be selected and render focal point
Jun 2, 2020
This was referenced Jun 2, 2020
dratwas
reviewed
Jun 8, 2020
dratwas
reviewed
Jun 8, 2020
dratwas
reviewed
Jun 8, 2020
Hey @dratwas 👋 thank you so much for your review! Really good suggestions =) I updated the code, can you please give it another review whenever you have time? Thanks! |
dratwas
reviewed
Jun 17, 2020
packages/block-editor/src/components/media-upload-progress/index.native.js
Outdated
Show resolved
Hide resolved
dratwas
reviewed
Jun 17, 2020
dratwas
reviewed
Jun 17, 2020
dratwas
reviewed
Jun 17, 2020
Hey @geriux awesome work!! 🎉 I left some comments, however they are not a blocker to merge this :) |
This was referenced Jun 18, 2020
dratwas
approved these changes
Jun 22, 2020
# Conflicts: # packages/block-library/src/image/edit.native.js # packages/block-library/src/media-text/media-container.native.js # packages/components/src/index.native.js
geriux
changed the title
[RNMobile] - Media & Text: Allow media to be selected and render focal point
[Mobile] - Media & Text: Allow media to be selected and render focal point
Jun 24, 2020
2 tasks
This was referenced Jun 30, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Mobile App - i.e. Android or iOS
Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Gutenberg Mobile PR
-> wordpress-mobile/gutenberg-mobile#2426WordPress iOS PR
-> wordpress-mobile/WordPress-iOS#14231WordPress Android PR
-> wordpress-mobile/WordPress-Android#12072Description
This PR addresses two issues, allowing the media within the
Media & Text
block to be selected and rendering the focal point including the option to toggle theCrop image to fill
option.To avoid duplicating code I added a new
Image
component that will handle:Media Edit
button to edit/replace the image.It contains quite a bit code from the
Image
block so it can be reused for theMedia & Text
block. Later on, it could also be used by theCover
block as well.By creating this new
Image
component that handles sizing and much more, I removed theimage-size
component and removed it from theMediaUploadProgress
component.How has this been tested?
Steps to test the Media & Text block
Allow selecting the image
Image fullscreen preview
Media editing
Focal point
Crop image to fill entire column setting
Steps to test the Image block
These tests are to double check all is working as it was for the Image block.
Allow selecting the image
Image fullscreen preview
Media editing
Screenshots
UX Interaction
Types of changes
New feature and code refactor.
Checklist: