Comments (12)
I'm in two minds about this. Say you are on a slow connection and know you definitely do want to create a new folder. It seems frustrating to have to wait until the folder loads before being able to do that.
If there is a problem like the username or password being wrong, the sheet should be dismissed, rather than hanging. I believe I've now fixed bugs that were causing it to hang around too long.
from connectionkit.
I don’t really understand your point. If you haven’t connected yet, then you haven’t filled in the file browser with any useable information. Without seeing where you are, how/where can you create a new folder? What if your assumptions about the “root” directory are wrong? It makes no sense to me to show two empty windows with an action to perform which can’t (yet) be performed.
from connectionkit.
Perhaps it's best to avoid thinking in terms of "connections" as that's not how CK2 works. Instead, the panel is loading a "request" for a particular folder.
While loading the panel may not know the 'absolute' path, but it does always know the path relative to the home directory at the very least. The location for the new folder to go into matches that.
Maybe I'm not even arguing what we have now is all that much 'better' (I don't feel like you alternative is better either), but it seems perfectly decent, and avoids adding extra state logic to manage.
from connectionkit.
Perhaps it’s best to think about how the user will perceive it rather than how CK2 works?
from connectionkit.
While loading, the user sees a blank file browser, with a spinning progress indicator in the upper right hand corner. I think that's moderately clear "something is happening".
Are you concerned people will click the "New Folder" button in an attempt to speed things up? Or that they might think it's what they're "supposed" to do while it loads?
from connectionkit.
No, I’m saying it seems dumb to have an active New Folder button while the thing is empty but spinning which then brings up a modal window that is also empty but spinning. It seems odd to me to have a button enabled to perform an action than cannot yet be performed and which also provides no context for the action. I understand that the action would theoretically occur at the “root” for the login, but a blank window is a blank window is a blank window. Poor UI in my opinion.
But if you disagree, I’ll move on.
from connectionkit.
To check, that progress indicator only appears one you've hit the "Create" button, right?
from connectionkit.
No, I never said that. You always get two spinning indicators as soon as the window appears on screen. I’ve never clicked on Create. It makes no conceptual sense to do so (is my point).
from connectionkit.
I agree with Terrence on this one. Until the panel is showing something, I think that button should be disabled. It's an easy fix. In -validateNewFolderButton, check if _currentLoadingOperation is nil (meaning that it's not currently in the middle of a loading operation) and enable it then. If you want, I can do the modification though it's going to take me a bit to untangle the forks/branch/repos on my end.
from connectionkit.
See, I definitely think having a progress indicator appear in the New Folder panel before hitting the "Create" button is a bug.
If you favour disabling the "New Folder" button, @MrNoodle, then I'm happy to go along with that. I'd appreciate it if you made that change; no particular rush.
Additionally, it seems to me the path control should get populated with something while the initial load happens.
from connectionkit.
Sorry for taking so long with this. For some reason I thought I'd fixed this a whiles back.
from connectionkit.
👍
from connectionkit.
Related Issues (20)
- Updating look of CK2OpenPanel for 10.10+
- Support file download HOT 1
- Open Panel error-handling HOT 2
- Authentication HOT 3
- Support uploading of directories using CK2FileManager
- Optimise dequeuing FTP operations
- private ssh key authentication on sftp HOT 2
- Down/Upload and a Crash in Release Build HOT 3
- Add cocoapod HOT 2
- -[CK2OpenPanelController pathControlItemSelected:] exception HOT 4
- CK2FileManager's -enumerateContentsOfURL... sometimes doles out URLs without the username
- -createFileAtURL:... with intermediate directories set to YES doesn't seem to work? HOT 13
- Open panel kicks off a directory listing when being cancelled HOT 6
- Is anyone using -[CK2FileManager setAttributes:…] in their code? HOT 2
- Receiving URL of form https://@dav.box.com/dav HOT 17
- Support for FTP using SSL in Swift 3? HOT 5
- NSURLErrorDomain error -1012 on Sierra? HOT 1
- Incorporate CurlHandle fix 82d036fa7e453b71a01a8a6ba2d7e31560490009
- libcurl broken on 10.12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from connectionkit.