-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
External Storage UI Improvements #1031
Conversation
I don't the constructor is the best place to put the configuration test, adding additional "cost" to the constructor will slow down every request that the store backend is used. I think it's better to add a new function for that to the backends |
It shouldn't be every call to the backend. Just when it is created in createStorage, after that it is cached in the $storages variable. |
Yes, but that is still an additional request over the network each time the page is loaded |
Well it should only be an additional request when that storage is needed. I don't know. I think it's better to be safe and make sure that the storage is working. |
The storage backend is used every page load though for checking if the storage has been updated, if the storage backend is broken it should throw the exception when the request already being made fails. For the configuration feedback a simple test() function is enough, no need to add a potentially large delay every time a storage backend is created. |
Okay, I wasn't thinking of that. I'll move them out. Do you still agree that there should be an exception thrown in the constructor if the correct parameters are not found? |
Yes, if we can detect an incorrect configuration without any overhead there is no reason not to throw an exception there Michael Gapczynski notifications@github.com wrote:
|
…CIFS, ownCloud / WebDAV
…oogle and Dropbox 'Grant Access' buttons
…prevent multiple scripts being added
I think this is ready. Could some people start testing in both the personal and admin settings? @jancborchardt I could still use some UI feedback. |
@MTGap which status icons do you exactly need? Maybe it’s better if Achim makes them, as he also did the status icons for the desktop client. Regarding the UI feedback, a screenshot would help a lot as I’m a bit busy with the new design. :) |
the icon looks good but sometimes its slow change from red to green even already in storage settings and status its granted, so it looks takes 5-10 secs before changed from red to green |
@jancborchardt It would be helpful to understand by trying out yourself. I didn't realize there was secret design stuff. Here's some screenshots: I don't know Achim. How do I contact him. @JFOC Not much I can do because it depends on your server and the external storage to respond. I'm not causing it to have any delay. |
@MTGap because the external storage might take some time to react, it's probably best to change the status to gray while waiting for the storage |
I dont know how the icons state are changed based on access granted or other things. |
@icewind1991 Yeah I'll probably do that for Dropbox and Google Drive. |
I'd strongly advise to do so - it's a great enhancement to the ui and will save the user and use trouble |
Agree with @DeepDiver1975 on everything: adding a spinner, icon reset back On Tue, Feb 12, 2013 at 4:14 PM, Thomas Müller notifications@github.comwrote:
|
Yes. Let's merge it. But as soon as possible. |
I don't have time to do the spinner changes, but the string changes are already in here. |
I can add the spinner later - give me time until 00:00 or we close it now. |
@MTGap @jancborchardt @karlitschek spinner in place |
Nice. 👍 |
Holding off on merge until issues are resolved. |
So ready for merge? ;-) |
No - we detected some issue last night. I'd vote for shipping OC5 Alpha without this. |
In IE8 the field labels aren’t visible because the placeholder attribute is unsupported. Should use infield labels, like the log in form for instance. |
Conflicts: apps/files_external/js/settings.js apps/files_external/lib/smb.php apps/files_external/templates/settings.php lib/files/storage/common.php
@butonic The switch from jQuery live to on broke the UI in this pull request. Could you investigate, I'm not sure how to resolve the problems. |
… will always bubble up here
UI fixed with 05a8766, please review. @MTGap I just tried to test this by adding my production oc as an external mount point. @jancborchardt The following is a documentation of what I did. Maybe it helps find usability issues: I used After installing php5-curl the fatal error vanishes but now I am mocked by a white page when navigation into the folder. 😡 Going back to the personal settings shows a green bulb. Navigating back to Let's try mounting the owncloud demo to Nothing in the log files. @icewind1991 With DEBUG defined I get notifications:
.... hm not sure If PEBKAC or real issue ... |
@icewind1991 Can you take a look at the WebDAV errors? I think this is ready for merge. |
👍 |
So ready for merge now? Today is really the absolute deadline and I would love to have this in. Finally ;-) |
External Storage UI Improvements
Multiple improvements for the external storage UI
@jancborchardt Could you provide some pretty status icons and some UI feedback?
@icewind1991 I can't figure out how to test if the configuration for SMB is good or not, it seems to return something strange for stat()
Please review @karlitschek @MTRichards