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

Connected Applications: Update to FoldableCard Pattern #1477

Merged
merged 6 commits into from
Jan 27, 2016

Conversation

alternatekev
Copy link
Contributor

As part of my attempt to replace custom foldable-card style components with the standard global FoldableCard component, this PR takes the Connected Applications screen, which looks like this and is built with a custom set of set of components and SCSS...
screen shot 2016-01-25 at 4 24 43 pm

...and turns it into this, which uses the standard FoldableCard component:
screen shot 2016-01-26 at 10 02 27 am

This PR brings Connected Applications into parity with the new Sharing page, PR #1474.

To test: check out the branch and head on over to /me/security/connected-applications and you should see the updated layout.

@alternatekev alternatekev added [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 [Feature] User & Account Settings (/me) Settings and tools for managing your WordPress.com user account. Security labels Dec 10, 2015
@kellychoffman
Copy link
Member

I'm not sure it should have the 'remove link' icon there. The "Disconnect" text on its own says it all.

@alternatekev
Copy link
Contributor Author

@kellychoffman Do you think that's true of the screenshots in #1214 as well? I'd rather these two instances share the same treatment, although one is scary and one isn't.

@kellychoffman
Copy link
Member

I missed the sharing PR. I'm not sure its necessary there. Why change it?

@alternatekev
Copy link
Contributor Author

@kellychoffman The goal is just to keep them in sync because they say and more or less do the same thing. The difference in their "undo-ability" is indicated by the red color of the button in this PR. My goal is for anything that says "Disconnect" to work/look the same way. If I changed it here per your recommendation I'd be changing the Disconnect pattern.

Also, these two screens both use a wonky faux FoldableCard pattern that should also be synced up in a future PR, so I'd rather keep everything about these screens working/looking the same.

@kellychoffman
Copy link
Member

My goal is for anything that says "Disconnect" to work/look the same way

I think there can be different degrees of severity. Disconnect that could break something and disconnect that will turn something off. Sharing is an example of the latter. You disconnect Facebook, and nothing breaks, it just prevents you from Publicizing to Facebook automatically in the future. I don't think this warrants a scary style. What I could see happening here, however is a confirmation dialog.

Also, these two screens both use a wonky faux FoldableCard pattern that should also be synced up in a future PR

👍 Totally agree.

@MichaelArestad
Copy link
Contributor

If the icon isn't clarifying anything, we should drop it. In this case, I don't think it's accurate or particularly helpful. I also would suggest removing the scary styles as these are non-destructive changes like Kelly mentioned.

Can you add a screenshot showing both the connect and disconnect buttons at once? How well do they work together?

@alternatekev
Copy link
Contributor Author

@MichaelArestad These are totally destructive changes. Revoking a connected application means you can't log in to that app with WordPress.com without re-signing in. The sharing connections are pretty non-destructive, though.

@alternatekev
Copy link
Contributor Author

@kellychoffman @MichaelArestad They look like this now:

screen shot 2015-12-11 at 3 53 45 pm

@kellychoffman
Copy link
Member

👍

@alternatekev
Copy link
Contributor Author

I've updated this PR to look more like #1474:

screen shot 2015-12-17 at 12 04 36 pm

@kellychoffman
Copy link
Member

The only issue I have is with the expand icon so close to the disconnect button. This will especially be an issue on smaller screens. I designed the original Sharing "cards" with this in mind, placing the open icon on the left.

@alternatekev
Copy link
Contributor Author

@kellychoffman Why does the button being important mean it can't be next to expand/collapse? Would it be too easy to click the button on accident?

FoldableCard looks like a SectionHeader when opened, so I feel like we should be using the compact buttons there, fwiw.

Is something like this out of the question, do you think?

untitled-3

@alternatekev alternatekev changed the title Connected Applications: Update Disconnect buttons to borderless Button Connected Applications: Update to FoldableCard Pattern Dec 18, 2015
@kellychoffman
Copy link
Member

Why does the button being important mean it can't be next to expand/collapse? Would it be too easy to click the button on accident?

Yep, thats all I meant.

I think the design above is quite nice. I like the visual separation between the button and the expand/collapse icons.

@folletto
Copy link
Contributor

folletto commented Jan 8, 2016

👍

@kellychoffman
Copy link
Member

+1 to non scary disconnect buttons with a separator between it and the expand/collapse icon.

@apeatling apeatling 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 Jan 11, 2016
@alternatekev alternatekev added [Status] In Progress and removed [Status] Needs Author Reply [Status] Needs Design Review Add this when you'd like to get a review / feedback from the Design team on your PR labels Jan 13, 2016
@dmsnell
Copy link
Member

dmsnell commented Jan 26, 2016

@alternatekev one observation (that kind of seems a bit late here) is that your screenshots looked like they were essentially making an accordion, of which we already have a component (albeit without the header buttons). Have we considered using the <Accordion />, updating the <Accordion />, or switching other old code from the <Accordion /> to get rid of it?

Are these altogether different use cases? (it appeared like we'd only want a single <FoldableCard /> open any given time…)

@dmsnell dmsnell 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 Jan 26, 2016
@alternatekev
Copy link
Contributor Author

Have we considered using the , updating the , or switching other old code from the to get rid of it?

Accordion seems designed for use specifically in the Sidebar, and defaults to a single module open at a time. These screens never included a single-module limitation, and it doesn't seem like FoldableCard comes with one either. I still think FoldableCard is the right component here. Having more than one open at a time is fine on Sharing and Connected Applications.

@folletto
Copy link
Contributor

What @alternatekev said. ;)

And:

I still think FoldableCard is the right component here. Having more than one open at a time is fine on Sharing and Connected Applications.

Having more than one open is most of the time the right thing, overall. ;)

@dmsnell
Copy link
Member

dmsnell commented Jan 26, 2016

cool. just making sure 😄

@alternatekev
Copy link
Contributor Author

@dmsnell I've gone and made those updates :)

@alternatekev alternatekev added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. and removed [Status] Needs Author Reply labels Jan 26, 2016
import safeProtocolUrl from 'lib/safe-protocol-url';
import analytics from 'analytics';
import Button from 'components/button';
import FoldableCard from 'components/foldable-card';

module.exports = React.createClass( {
Copy link
Member

Choose a reason for hiding this comment

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

Since we are already rewriting the import statements, we could/should go ahead and rewrite the export too methinks

export default React.createClass( {} )

@dmsnell
Copy link
Member

dmsnell commented Jan 27, 2016

@alternatekev another few comments. Thanks for the updates. I absolutely ❤️ all the 🔻 removed lines of code in this PR 😄

@dmsnell dmsnell 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 Jan 27, 2016
@alternatekev
Copy link
Contributor Author

@dmsnell done and done

@dmsnell
Copy link
Member

dmsnell commented Jan 27, 2016

Code looks good @alternatekev!

@alternatekev alternatekev added [Status] Ready to Merge and removed [Status] Needs Design Review Add this when you'd like to get a review / feedback from the Design team on your PR labels Jan 27, 2016
alternatekev added a commit that referenced this pull request Jan 27, 2016
Connected Applications: Update to FoldableCard Pattern
@alternatekev alternatekev merged commit 12bd128 into master Jan 27, 2016
@alternatekev alternatekev deleted the update/connected-apps-buttons branch January 27, 2016 16:00
@kellychoffman
Copy link
Member

Late to the party, but I 👍 this merge :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] User & Account Settings (/me) Settings and tools for managing your WordPress.com user account. Security
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants