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

Direct links to Google Drive/Dropbox configuration pages from external storage config #22214

Merged
merged 4 commits into from
May 13, 2016

Conversation

RobinMcCorkell
Copy link
Member

There always seemed to be a disconnect between setting up a Google Drive/Dropbox storage on ownCloud and setting it up on the hosting provider (setting up an app etc). This PR adds a button to those backends that open the relevant configuration page directly, making it easier to use. @carlaschroder You'll probably like this

However, there's a problem that the buttons appear at the beginning of the configuration section, before the authentication fields. There's probably some fancy CSS that would fix it, or maybe we need to create a div within the configuration cell that always remains at the end, but I don't have time to implement that. I wanted to get the changes as far as I got pushed here.

cc @PVince81 @icewind1991

@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @icewind1991, @jancborchardt, @Henni and @Xenopathic to be potential reviewers

@PVince81
Copy link
Contributor

PVince81 commented Feb 8, 2016

@Xenopathic great idea. It would be better if it was a link, because it's more compact and also intuitively tells you that it will redirect you to some page.

I don't like it being in the middle of the config, it's messy.
One idea would be to have an extra div above all configs which allows backends to post custom status messages. So whenever at least one GDrive storage is selected, it could add a note there.
Not sure whether it is good, but could be better.

Maybe first try making it a link, then maybe with some CSS hackery we can teleport the link to some other location

@karlitschek
Copy link
Contributor

great idea! 👍

@jancborchardt
Copy link
Member

Nice! @Xenopathic since it’s a design-related pull request, do you mind putting in a screenshot so @owncloud/designers and other designers can more easily review? Thanks!

@RobinMcCorkell
Copy link
Member Author

@PVince81 A link is the wrong item to use IMHO, since the behaviour of the button changes depending if there's an app key/client ID set or not. If not, it takes the user to the place they can configure a new Dropbox/GDrive app. Otherwise, it takes them directly to that app (at least with Dropbox). This also means it won't work just being at the top, above all storages...

How it looks at the moment:

screenshot_2016-02-08_21-34-43

How I want it to look:

screenshot_2016-02-08_21-35-19

@RobinMcCorkell
Copy link
Member Author

The printing of "Access granted" takes up a lot of space, so I changed it to using semantic colouring instead (with the ideal button layout, not the actual button layout, that still needs to be fixed):

screenshot_2016-02-08_21-46-01

@carlaschroder
Copy link

Thanks @Xenopathic, early-headsup and think of shared hosting users are always good.

@PVince81
Copy link
Contributor

PVince81 commented Feb 9, 2016

@Xenopathic in this case it could still be a link, but the text needs to change depending on the conditions you mentioned. It's like two links, but only one is displayed at a time.

@PVince81
Copy link
Contributor

We're past feature freeze, moving this to 9.1

@PVince81 PVince81 added this to the 9.1-next milestone Feb 15, 2016
@PVince81
Copy link
Contributor

@Xenopathic 9.1 is open now, can you continue this ? 😄

@RobinMcCorkell
Copy link
Member Author

Since we really want to avoid adding yet more things to the already-bloated configuration fields section, I decided to change the link to be a 'settings' icon next to the backend name, with a meaningful tooltip. Here's a screenshot:

screenshot_2016-03-31_23-21-03

@PVince81
Copy link
Contributor

PVince81 commented Apr 1, 2016

I like that better! 👍

@jancborchardt
Copy link
Member

Maybe it should rather be an icon-help instead of icon-settings, as we use that throughout settings for external doc links. :)

@RobinMcCorkell
Copy link
Member Author

@jancborchardt I considered it, but I feel that the settings icon makes more sense, since you want to configure the service-side of the storage. It's not a documentation link.

@jancborchardt
Copy link
Member

Ok, works for me.

@RobinMcCorkell
Copy link
Member Author

@DeepDiver1975 Ready to merge

@PVince81
Copy link
Contributor

PVince81 commented May 3, 2016

Conflicts ahead 😦

@PVince81
Copy link
Contributor

@Xenopathic you forgot to shout "rebased!"

@PVince81
Copy link
Contributor

Tested, works 👍

Great addition!

@PVince81 PVince81 merged commit ddea34f into master May 13, 2016
@PVince81 PVince81 deleted the ext-better-dropbox-gdrive branch May 13, 2016 15:09
@PVince81
Copy link
Contributor

@carlaschroder you might want to add a hint for this in the docs #22214 (comment)

@lock
Copy link

lock bot commented Aug 5, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants