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

[Mobile] Video block ui/ux enhancements #15551

Merged
merged 72 commits into from
May 21, 2019

Conversation

marecar3
Copy link
Contributor

@marecar3 marecar3 commented May 10, 2019

This PR improves UI/UX of video and image blocks based on comments from this issue: wordpress-mobile/gutenberg-mobile#966

ezgif com-video-to-gif (14)

NOTE

I have implemented all states except one, which is shown in the attached image. I think that we don’t need this state as on Android we have video control which isn’t just Play button, but full video control. So in case of Android, suggested popup would block video control bar + remove block options is presented with trash icon, so we are just doubling action.

Screen Shot 2019-05-10 at 2 05 09 AM

TEST
To test from Gutenberg mobile :

Point to branch wordpress-mobile/gutenberg-mobile#979 from WPAndroid or WPiOS application.

pinarol and others added 30 commits April 3, 2019 18:34
# Conflicts:
#	packages/block-library/src/index.native.js
# Conflicts:
#	packages/block-library/src/index.native.js
# Conflicts:
#	packages/block-editor/src/components/media-placeholder/index.native.js
#	packages/block-library/src/image/edit.native.js
return <SvgIconRetry fill={ styles.iconRetry.fill } />;
}

return <SvgIcon fill={ styles.icon.fill } />;
Copy link
Contributor

Choose a reason for hiding this comment

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

Hey @Tug 👋 I updated icon js files to allow injecting props. Tested with web also, don't seem to have a side effect. How does this solution look to you?

Copy link
Contributor

Choose a reason for hiding this comment

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

I did a quick test to show what it would look like and pushed here. But after discussing it with you on another channel we agreed that it would be best to handle this separately.

@pinarol
Copy link
Contributor

pinarol commented May 21, 2019

@Tug and I needed to revert the last commit since we had issues on icon sizes.

Copy link
Contributor

@pinarol pinarol left a comment

Choose a reason for hiding this comment

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

Tested with WPAndroid, WPiOS and example apps, looks good 👍
we'll handle the icon issue under separate PR wordpress-mobile/gutenberg-mobile#1004

@pinarol pinarol merged commit 0773762 into master May 21, 2019
@pinarol pinarol deleted the rnmobile/video-block-ui-ux-enhancements branch May 21, 2019 08:12
@youknowriad youknowriad added this to the 5.8 (Gutenberg) milestone May 24, 2019
koke added a commit that referenced this pull request May 28, 2019
In #15551, these were changed to support passing props, but that also means
that when you pass the video icon to the `Icon` component, it won't inject the
right size, since it's not a SVG component.

Instead, we can export the new function to allow for a customizable icon, while
exporting the SVG component by default.
hypest pushed a commit that referenced this pull request May 30, 2019
In #15551, these were changed to support passing props, but that also means
that when you pass the video icon to the `Icon` component, it won't inject the
right size, since it's not a SVG component.

Instead, we can export the new function to allow for a customizable icon, while
exporting the SVG component by default.
@gziolo gziolo removed the Mobile Web Viewport sizes for mobile and tablet devices label Oct 10, 2019
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)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants