Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

ARK view #23

Open
kirillt opened this issue Sep 7, 2023 · 1 comment
Open

ARK view #23

kirillt opened this issue Sep 7, 2023 · 1 comment
Labels

Comments

@kirillt
Copy link
Member

kirillt commented Sep 7, 2023

Definitions

ARK-enabled folders are either:

  • Root folders, containing .ark subfolder
  • Favorite folders, which are children of root folders and don't have their own index

List of root folders is stored in .ark-roots file in the filesystem root. Each root folder contains list of its favorite folders in .ark/favorites file.

Modes

Filepicker has two main modes:

  • File-picking
    In this mode, if we tap a folder, we don't select it and we display its full contents.
    If we tap a file, we select it.

    Example: selecting a folder to open an image in Retouch app.

  • Folder-picking
    In this mode, if we tap a folder without subfolders, we select it.
    If we tap a folder with subfolders, we select it and also display its subfolders.

    Example: selecting a folder to save an image in Retouch app.

Views

Filepicker has two main views:

  • Classical view, i.e. plain walking through folders hierarchy.
  • ARK view, i.e. visualizing ARK-enabled folders.

ARK view

ARK view allows observing and selecting any ARK-enabled folder.

If user doesn't have any ARK folders discovered, i.e. .ark-roots file is missing, the ARK view must be switched-off.

If there are ARK folders discovered in the system, i.e. there is .ark-roots file, both folder-picking and file-picking modes of ARK Filepicker should allow switching to ARK view using a separate tab.

@kirillt kirillt added the feature label Sep 7, 2023
@kirillt kirillt changed the title ARK mode ARK view Sep 7, 2023
@kirillt
Copy link
Member Author

kirillt commented Sep 7, 2023

We only need to finish these 3 details:

  • Switch-off ARK view when there is no .ark-roots file
  • Remember usage of modes in folder-picking mode
    If user opens filepicker in folder-picking mode, start view which was used last time in this mode.
  • Enable ARK view in file-picking mode

Two options for using ARK view in file-picking mode:

  • Embed Resource Grid from Navigator
  • Allow selecting a folder, but do nothing more.
    Allow user switch back to classical view and open selected folder there.
    With this approach file-picking always finishes in classical view.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
Status: Todo
Development

No branches or pull requests

1 participant