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: Add Jetpack colophon to Jetpack blocks #27901

Closed
wants to merge 5 commits into from

Conversation

tyxla
Copy link
Member

@tyxla tyxla commented Oct 17, 2018

Changes proposed in this Pull Request

  • Introduce a new /components directory in /gutenberg that we can use for reusable components that make sense only in Gutenberg context.
  • Introduce a new JetpackBranding component that renders a JetpackLogo with an <hr /> above, using InspectorControls.
  • Add an ESLint ignore rule for the new directory we store this component in.
  • Add Jetpack branding to Markdown block
  • Add Jetpack branding to Related Posts block
  • Add Jetpack branding to Tiled Gallery block

Screenshots

Markdown:

Related Posts:

Tiled Gallery:

Testing instructions

Fixes #27773

@tyxla tyxla added Jetpack [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. [Status] Needs Design Review Add this when you'd like to get a review / feedback from the Design team on your PR [Goal] Gutenberg Working towards full integration with Gutenberg labels Oct 17, 2018
@tyxla tyxla self-assigned this Oct 17, 2018
@tyxla tyxla requested review from mapk, MichaelArestad and a team October 17, 2018 13:28
@matticbot
Copy link
Contributor

@ghost
Copy link

ghost commented Oct 17, 2018

That's a great PR description, thank you so much for your effort!

Generated by 🚫 dangerJS

Copy link
Member

@sirreal sirreal left a comment

Choose a reason for hiding this comment

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

Works good, looks good, code is good!

I left a couple of small questions.


const JetpackBranding = () => (
<InspectorControls>
<div className="jetpack-branding">
Copy link
Member

Choose a reason for hiding this comment

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

Can we set the className directly on InspectorControls?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, we can't - which is why I did it that way.

@@ -0,0 +1,23 @@
/** @format */
Copy link
Member

Choose a reason for hiding this comment

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

This is specific to the editor, should the file/Component name reflect that?

Copy link
Member Author

Choose a reason for hiding this comment

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

Well, it's also specific to the sidebar in the editor - how specific should we get in the naming? I think it's good as-is, considering that there isn't a bunch of other components at this point 😉

@sirreal sirreal added [Status] Needs Author Reply and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Oct 17, 2018
@davewhitley
Copy link
Contributor

davewhitley commented Oct 17, 2018

I believe a lot of design discussion around this has already happened, but the branding just seems way too obtrusive. It feels like an ad to me. The color, the size... it all seems like too much. And I think it sets a bad example for plugin developers.

Copy link
Member

@sirreal sirreal left a comment

Choose a reason for hiding this comment

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

Code's good.

@MichaelArestad
Copy link
Contributor

I think we have to site on this for the time being sadly. Thanks for putting this together.

@tyxla
Copy link
Member Author

tyxla commented Oct 18, 2018

No worries - it was a good experiment, as we saw a use case for reusable components that make sense only in gutenberg context in Calypso.

Should we close it for the time being @MichaelArestad?

@MichaelArestad
Copy link
Contributor

Yes. Just read an update around that. Let's close this for now. Thanks Marin!

@matticbot matticbot removed the [Status] Needs Design Review Add this when you'd like to get a review / feedback from the Design team on your PR label Oct 18, 2018
@tyxla tyxla deleted the add/gutenberg-jetpack-branding branch October 18, 2018 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Goal] Gutenberg Working towards full integration with Gutenberg Jetpack
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants