Giter Club home page Giter Club logo

Comments (12)

mikeabdullah avatar mikeabdullah commented on July 17, 2024

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.

terrencetalbot avatar terrencetalbot commented on July 17, 2024

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.

mikeabdullah avatar mikeabdullah commented on July 17, 2024

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.

terrencetalbot avatar terrencetalbot commented on July 17, 2024

Perhaps it’s best to think about how the user will perceive it rather than how CK2 works?

from connectionkit.

mikeabdullah avatar mikeabdullah commented on July 17, 2024

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.

terrencetalbot avatar terrencetalbot commented on July 17, 2024

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.

screen shot 2013-11-04 at 10 35 43 am

But if you disagree, I’ll move on.

from connectionkit.

mikeabdullah avatar mikeabdullah commented on July 17, 2024

To check, that progress indicator only appears one you've hit the "Create" button, right?

from connectionkit.

terrencetalbot avatar terrencetalbot commented on July 17, 2024

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.

MrNoodle avatar MrNoodle commented on July 17, 2024

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.

mikeabdullah avatar mikeabdullah commented on July 17, 2024

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.

MrNoodle avatar MrNoodle commented on July 17, 2024

Sorry for taking so long with this. For some reason I thought I'd fixed this a whiles back.

from connectionkit.

mikeabdullah avatar mikeabdullah commented on July 17, 2024

👍

from connectionkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.