GithubHelp home page GithubHelp logo

Comments (14)

kirillt avatar kirillt commented on September 17, 2024 1

@tuancoltech yeah, correct about roots file. Sorry for the outdated info.

About switching on first root — good question. I think we can let the user discover ARK-mode themselves :)

from ark-android.

kirillt avatar kirillt commented on September 17, 2024 1

Not exactly. It was about [1] as a whole, the view would be more minimalistic at first, so users won't be overwhelmed. When they pin something, they notice that new tab appears, that's what I mean by self-discovery. This could be more delicate then having a confusing redundant tab from the very start.

After pinning, user should be able to see the effect immediately in any case. Necessety to re-open the picker would be clumsy in my opinion.

from ark-android.

kirillt avatar kirillt commented on September 17, 2024

We only need to finish these 3 details:

General points:

  • Switch-off ARK view when there is no .ark-roots file
  • Remember the active tab, start with the tab which was active last time

File-picking mode:

  • Enable ARK view in file-picking mode
    For this we need to implement one of these:
    • Embed Resource Grid from Navigator
    • Allow selecting a folder and switch back to classical view.

from ark-android.

tuancoltech avatar tuancoltech commented on September 17, 2024

An ARK-enabled folder is either:

  • a root folder—any folder containing .ark subfolder
  • a favorite folder—subfolder of a root mentioned in .ark/favorites file

Since we use content-addressing, we have special file called index. It is stored in .ark subfolder of each root folder. Favorite folders are children of root folders and don't have their own index, they use their root's index file.

Normally, roots are listed in .ark-roots file in the disk root. If it doesn't exist then we should scan the whole filesystem (Navigator does this on first launch). Each root folder contains list of its favorite folders in .ark/favorites file.

The "Roots" tab lists all ARK-enabled folder: both roots, and favorites. It was implemented in scope of this issue:

I just want to correct this a bit: roots are listed in .ark-global/roots file, not .ark-roots :)

from ark-android.

tuancoltech avatar tuancoltech commented on September 17, 2024

We only need to finish these 3 details:

General points:

  • Switch-off ARK view when there is no .ark-roots file
    ...

@kirillt And, do we switch-on ARK view when the first root folder is created?

from ark-android.

tuancoltech avatar tuancoltech commented on September 17, 2024

We only need to finish these 3 details:

General points:

...
File-picking mode:

  • Enable ARK view in file-picking mode
    For this we need to implement one of these:

...

  • Allow selecting a folder and switch back to classical view.

Regarding this, at the moment Roots tab (ARK view) is already visible when open the file picker in FILE mode as per below video. Please correct me if I mis-understood something here.

https://recordit.co/bHtZCodxlW

from ark-android.

tuancoltech avatar tuancoltech commented on September 17, 2024

@tuancoltech yeah, correct about roots file. Sorry for the outdated info.

About switching on first root — good question. I think we can let the user discover ARK-mode themselves :)

Yeah, so I'll not switch-on on first root then.

from ark-android.

tuancoltech avatar tuancoltech commented on September 17, 2024

We only need to finish these 3 details:
General points:
...
File-picking mode:

  • Enable ARK view in file-picking mode
    For this we need to implement one of these:

...

  • Allow selecting a folder and switch back to classical view.

Regarding this, at the moment Roots tab (ARK view) is already visible when open the file picker in FILE mode as per below video. Please correct me if I mis-understood something here.

https://recordit.co/bHtZCodxlW

@kirillt And what do you think about this please?

from ark-android.

kirillt avatar kirillt commented on September 17, 2024

@tuancoltech it's ok when user already has ARK-enabled folders in the system. If he/she hasn't such folders yet, we can either:

  • hide "Roots" tab and wait until they pin something
  • show "Roots" tab with some explanation in it as a placeholder

What is better in your opinion?

from ark-android.

tuancoltech avatar tuancoltech commented on September 17, 2024

@tuancoltech it's ok when user already has ARK-enabled folders in the system. If he/she hasn't such folders yet, we can either:

  • hide "Roots" tab and wait until they pin something [1]
  • show "Roots" tab with some explanation in it as a placeholder [2]

What is better in your opinion?

@kirillt Currently my local implementation is already working as in [1] for File picking mode.
However, since you mentioned 2 options as above, personally I would prefer option [2] as by that, users won't have to dismiss and re-open the picker dialog for the Roots tab to appear, after user pins a folder.

Please let me know if I should update the implementation if we want to make it work as in way [2].

from ark-android.

kirillt avatar kirillt commented on September 17, 2024

@tuancoltech with [1] Roots tab should appear automatically after 1st pin, without re-opening the dialogue. But overall interaction is a bit more complicated. Benefit of [1] in my opinion is reduced cognitive load for users who only started to familiarize with ARK apps.

from ark-android.

tuancoltech avatar tuancoltech commented on September 17, 2024

@tuancoltech with [1] Roots tab should appear automatically after 1st pin, without re-opening the dialogue. But overall interaction is a bit more complicated. Benefit of [1] in my opinion is reduced cognitive load for users who only started to familiarize with ARK apps.

@kirillt I see. So I'll implement it in a way that when user pin the very first root/favorite folder, the Roots tab is switched-on automatically.
Regarding the UX, should we still stick with [1] for now?

from ark-android.

tuancoltech avatar tuancoltech commented on September 17, 2024

@tuancoltech yeah, correct about roots file. Sorry for the outdated info.

About switching on first root — good question. I think we can let the user discover ARK-mode themselves :)

@kirillt: Sorry but I think I need to make this more clear: By let the user discover ARK-mode themselves, do you mean we won't automatically switch-on the Roots tab on first root, but only show it when re-opening the dialog?
If so, does it contradict with your comment here: #51 (comment) ?

from ark-android.

tuancoltech avatar tuancoltech commented on September 17, 2024

Not exactly. It was about [1] as a whole, the view would be more minimalistic at first, so users won't be overwhelmed. When they pin something, they notice that new tab appears, that's what I mean by self-discovery. This could be more delicate then having a confusing redundant tab from the very start.

After pinning, user should be able to see the effect immediately in any case. Necessety to re-open the picker would be clumsy in my opinion.

Thanks. I understand it now.

from ark-android.

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.