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

Sharing: Update to FoldableCard Pattern #1474

Merged
merged 8 commits into from
Feb 2, 2016
Merged

Conversation

alternatekev
Copy link
Contributor

This PR updates Sharing to the FoldableCard components. Currently in production, Sharing looks like this:
screen shot 2016-01-14 at 3 03 17 pm

When updating to FoldableCards, this PR looks like this:

screen shot 2016-01-26 at 4 35 29 pm

This also makes use of the new SocialLogo component introduced by @enejb. Since Twitter doesn't have a box-surrounded version of the icon, I went with mostly non-boxed icons here. We can easily change this to include boxed icons for every logo, but it'd require adding one for Twitter to the SocialLogo component.

Pinging @johnHackworth, @rickybanister and @mtias for reviews.

@alternatekev alternatekev added [Feature] Sharing Features and settings for sharing posts across different platforms, including sharing buttons. [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Dec 10, 2015
@alternatekev alternatekev changed the title Sharing: Update Connect buttons to borderless Button Sharing: Update Disconnect buttons to borderless Button Dec 10, 2015
@rickybanister
Copy link

The borderless buttons look just fine to me.

Do you think it would be possible (later on, different PR) to switch to foldable card for these?

@alternatekev
Copy link
Contributor Author

@rickybanister Yep, that was going to be my next step. Do we even need them foldable if there's no connection? The preview screenshots don't seem to add much.

@kellychoffman
Copy link
Member

What is the reasoning behind the change?

@kellychoffman
Copy link
Member

switch to foldable card

Do we even need them foldable if there's no connection? The preview screenshots don't seem to add much.

We are planning on updating the page to use more components, such as the foldable card. The preview screenshots are important in that they tell a new user what they can get out of connecting without sending them to a support doc.

@alternatekev
Copy link
Contributor Author

@kellychoffman Updated to remove the icon:

screen shot 2015-12-11 at 4 04 40 pm

@kellychoffman
Copy link
Member

It looks a bit off when mixed with services that aren't connected. Maybe because it isn't aligned.
screen shot 2015-12-13 at 10 06 27 am

Do you think Disconnect looks like a link?

@rickybanister
Copy link

@kellychoffman would it be inappropriate for it to be red? Is disconnecting a sharing service a 'scary' thing? It would then be inline with many other 'remove' and 'delete' items.

@@ -1,12 +1,15 @@
/**
* External dependencies
*/
var React = require( 'react' );
import React from "react";
Copy link
Contributor

Choose a reason for hiding this comment

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

Single quotes please. :)

@gwwar
Copy link
Contributor

gwwar commented Dec 16, 2015

Besides some minor changes the code looks good 👍 This branch needs to rebased.

Do you think Disconnect looks like a link?

It does. Having this large of a click target for something that looks like a link, is a bit odd to me.

clickable

@alternatekev alternatekev force-pushed the update/sharing-buttons branch from 3bf37e3 to df52009 Compare December 16, 2015 21:10
@alternatekev
Copy link
Contributor Author

So.. I sort of revamped the whole thing and came up with this, which should solve most people's issues with this page for a while. We could probably get rid of the icons though:

screen shot 2015-12-16 at 2 30 04 pm

@alternatekev
Copy link
Contributor Author

Here's how it looks icon-less:

screen shot 2015-12-16 at 2 42 07 pm

@alternatekev
Copy link
Contributor Author

The above changes would work well also on #1477

@alternatekev alternatekev added the [Status] Needs Design Review Add this when you'd like to get a review / feedback from the Design team on your PR label Dec 16, 2015
@rickybanister
Copy link

This isn't my game, but icon-less is better. Ironically we're nearly back to what it was before. Just with the new foldable card style.

@rralian
Copy link
Contributor

rralian commented Dec 16, 2015

@alternatekev is the mock here just a visual mockup or was it a screenshot? The alignment of the icons is inconsistent. Otherwise I don't have a dog in the icon/iconless fight.

@mtias
Copy link
Member

mtias commented Dec 17, 2015

I like the compact buttons since they weight less in a page otherwise full of buttons.

@alternatekev
Copy link
Contributor Author

@rralian This was a screenshot, and you're right about the icon alignment. It was looking super weird to me too, which should probably be its own PR/issue.

@alternatekev
Copy link
Contributor Author

This isn't my game, but icon-less is better. Ironically we're nearly back to what it was before. Just with the new foldable card style.

Yeah, I got myself to a place where I didn't think the borderless was working here in practice. To be fair, we're using the compact buttons which I think make a ton of difference, especially when taking into account the foldable card updates. It feels correct to me, which isn't to say it 100% is.

@alternatekev
Copy link
Contributor Author

@kellychoffman what do you think about moving eventbrite up to the main area and treating it the same? does it need to be in its own group down there:

screen shot 2015-12-17 at 11 24 07 am

@kellychoffman
Copy link
Member

I was out for the past two days... Catching up.

icon-less is better. Ironically we're nearly back to what it was before.

I like that we are back to the buttons, but I'm not convinced compact is better than the original buttons. For a new user, Connecting is the primary (only) action for this page. Also, I agree about the icons - I'm not sure they are adding anything here.

what do you think about moving eventbrite up to the main area and treating it the same? does it need to be in its own group down there:

There's going to be other services down there. Also Eventbrite isn't publicizing, so I'd rather not group it up with those services.

@jkudish
Copy link
Contributor

jkudish commented Dec 17, 2015

I agree with @kellychoffman -- grouping the services would be pretty confusing for users. There will eventually be other services there too... What Eventbrite does, and how it works is very different from Publicize. I've even advocated for a different tab for it in the past, though I understand why we didn't do that (at least for now).

@alternatekev alternatekev changed the title Sharing: Update Disconnect buttons to borderless Button Sharing: Update to FoldableCard Pattern Dec 18, 2015
@alternatekev alternatekev force-pushed the update/sharing-buttons branch from 4ea5f89 to 2f1ae98 Compare January 7, 2016 19:41
@kellychoffman
Copy link
Member

I think we should keep the white icons with the colored background. The updated colored icons looks too messy.

@MichaelArestad
Copy link
Contributor

Just out of curiosity, why were the icons taken out of the colored backgrounds? It looked more uniform before.

@alternatekev
Copy link
Contributor Author

The icons were changed because there's a new SocialLogo component that includes all of the icons within a roundrect except for Twitter. We could go with all roundrect backgrounds but I need one for Twitter added to the component.

@kellychoffman
Copy link
Member

Could we use the non roundrect versions of all the logos instead? (I think Facebook is the only one without one) For Facebook, we could use the roundrect version and just make sure it matches the border radius of the others.

@alternatekev
Copy link
Contributor Author

I really wanted to avoid doing custom CSS for all of the logos except one. If almost all have roundrect versions, it shouldn't be too hard to add just one. Also it makes the alignment of the logo easier because it's being done in SVG vs aligning it around in CSS.

@kellychoffman
Copy link
Member

Fair. I think we should avoid making updates to the social icons until we have either all roundrect or all standalone.

@alternatekev
Copy link
Contributor Author

By adding a roundrect version of Twitter (which I'm just about done with), then this page will have all roundrect. Except Google+ which will be a circle and Eventbrite which will have its off-kilter rectangle. Would that work?

@davewhitley
Copy link
Contributor

By adding a roundrect version of Twitter (which I'm just about done with), then this page will have all roundrect. Except Google+ which will be a circle and Eventbrite which will have its off-kilter rectangle. Would that work?

That works for me. I'm not opposed to including a version of the Twitter logo with a rectangle in Social Logos.

@alternatekev
Copy link
Contributor Author

Could we use the non roundrect versions of all the logos instead? (I think Facebook is the only one without one) For Facebook, we could use the roundrect version and just make sure it matches the border radius of the others.

@kellychoffman I totally misread this as you wanting to use ALL roundrects. This is currently what this PR does, except for LinkedIn, which also is only in a roundrect format.

Using all non-roundrect except for LinkedIn and Facebook is what this PR does now.

I've already got the SocialLogos component updated with a pending PR to add the Twitter roundrect... we could see how that version stacks up against what's in the screenshot at the top and go from there.

I always forget about Eventbrite I guess. It seems rounrect-enough to me?

@kellychoffman
Copy link
Member

Using all non-roundrect except for LinkedIn and Facebook is what this PR does now.

Right, but not with colored backgrounds as it was before.

I always forget about Eventbrite I guess. It seems rounrect-enough to me?

Yeah I think its fine on its own.

@alternatekev alternatekev force-pushed the update/sharing-buttons branch 2 times, most recently from a11998d to e142967 Compare February 2, 2016 19:01
moved sharing.scss to my-sites/sharing/style and updated imports

removing icon

made buttons small and added icons

cleaned up page w/r/t foldable-card pattern

fixed padding for proper hover fx on cards

removed the icons again

replacing RemoveButton with Button borderless

moved sharing.scss to my-sites/sharing/style and updated imports

removing icon

made buttons small and added icons

fixed padding for proper hover fx on cards

removed the icons again
working foldablecard into sharing connections

working foldablecard into sharing connections

working foldablecard into sharing connections

removed extraneous service-logo component i'd started
removed extraneous service logo svgs

working foldablecard into sharing connections

working foldablecard into sharing connections

working foldablecard into sharing connections

working foldablecard into sharing connections

removed extraneous service-logo component i'd started

css updates to clarify interface + removal of subheader

updated placeholder/loaders

removed extraneous service logo svgs

slides action button to the left 8px in response to the new foldable card that's been merged

removed conflicting CSS classes

formatting fixes
… foldable-card

fixed service names on small mobile sizes
…elped mobile issues

fixed linting errors

replacing RemoveButton with Button borderless

moved sharing.scss to my-sites/sharing/style and updated imports

removing icon

made buttons small and added icons

cleaned up page w/r/t foldable-card pattern

fixed padding for proper hover fx on cards

removed the icons again

replacing RemoveButton with Button borderless

moved sharing.scss to my-sites/sharing/style and updated imports

removing icon

made buttons small and added icons

fixed padding for proper hover fx on cards

removed the icons again

working foldablecard into sharing connections

working foldablecard into sharing connections

working foldablecard into sharing connections

working foldablecard into sharing connections

removed extraneous service-logo component i'd started

css updates to clarify interface + removal of subheader

updated placeholder/loaders

removed extraneous service logo svgs

working foldablecard into sharing connections

working foldablecard into sharing connections

working foldablecard into sharing connections

working foldablecard into sharing connections

removed extraneous service-logo component i'd started

css updates to clarify interface + removal of subheader

updated placeholder/loaders

removed extraneous service logo svgs

slides action button to the left 8px in response to the new foldable card that's been merged

fixed mobile issues, mostly by removing CSS and using compact prop on foldable-card

fixed service names on small mobile sizes

fixed linting errors
…te retains its off-filter container

replacing RemoveButton with Button borderless

moved sharing.scss to my-sites/sharing/style and updated imports

removing icon

made buttons small and added icons

cleaned up page w/r/t foldable-card pattern

fixed padding for proper hover fx on cards

removed the icons again

replacing RemoveButton with Button borderless

moved sharing.scss to my-sites/sharing/style and updated imports

removing icon

made buttons small and added icons

fixed padding for proper hover fx on cards

removed the icons again

working foldablecard into sharing connections

working foldablecard into sharing connections

working foldablecard into sharing connections

working foldablecard into sharing connections

removed extraneous service-logo component i'd started

css updates to clarify interface + removal of subheader

removed extraneous service logo svgs

working foldablecard into sharing connections

working foldablecard into sharing connections

working foldablecard into sharing connections

working foldablecard into sharing connections

removed extraneous service-logo component i'd started

css updates to clarify interface + removal of subheader

updated placeholder/loaders

removed extraneous service logo svgs

slides action button to the left 8px in response to the new foldable card that's been merged

formatting fixes

fixed mobile issues, mostly by removing CSS and using compact prop on foldable-card

fixed service names on small mobile sizes

fixed linting errors

replacing RemoveButton with Button borderless

moved sharing.scss to my-sites/sharing/style and updated imports

removing icon

made buttons small and added icons

cleaned up page w/r/t foldable-card pattern

fixed padding for proper hover fx on cards

removed the icons again

replacing RemoveButton with Button borderless

moved sharing.scss to my-sites/sharing/style and updated imports

removing icon

made buttons small and added icons

fixed padding for proper hover fx on cards

removed the icons again

working foldablecard into sharing connections

working foldablecard into sharing connections

working foldablecard into sharing connections

working foldablecard into sharing connections

removed extraneous service-logo component i'd started

css updates to clarify interface + removal of subheader

updated placeholder/loaders

removed extraneous service logo svgs

working foldablecard into sharing connections

working foldablecard into sharing connections

working foldablecard into sharing connections

working foldablecard into sharing connections

removed extraneous service-logo component i'd started

css updates to clarify interface + removal of subheader

updated placeholder/loaders

removed extraneous service logo svgs

slides action button to the left 8px in response to the new foldable card that's been merged

fixed mobile issues, mostly by removing CSS and using compact prop on foldable-card

fixed service names on small mobile sizes

fixed linting errors

updated logos to roundrect versions, google+ is a circle and eventbrite retains its off-filter container
@alternatekev alternatekev force-pushed the update/sharing-buttons branch from e142967 to 437a2d1 Compare February 2, 2016 19:56
@enejb enejb added [Status] Ready to Merge and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Feb 2, 2016
alternatekev added a commit that referenced this pull request Feb 2, 2016
Sharing: Update to FoldableCard Pattern
@alternatekev alternatekev merged commit 7b3ea56 into master Feb 2, 2016
@enejb enejb deleted the update/sharing-buttons branch February 3, 2016 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Sharing Features and settings for sharing posts across different platforms, including sharing buttons.
Projects
None yet
Development

Successfully merging this pull request may close these issues.