Looking forward to develop "Sorts", files visualisation improvement and filters

Hello there,

Following a poll-based study on Nextcloud users in social activists communities, we at Framasoft (french non-profit) identify some struggles from this user base.

Results will be published soon, and among those was the UX of ā€œFilesā€. As an instance, some users reports to always going back to ā€œhomeā€ because they do not know how to find their ways in Files. Others reports difficulties understanding how their organization was sorting things, resulting in everyone having his owns sorting patterns with no coherence whatsoever.

We have decided that Iā€™ll try to address this issue, and we came up with ā€œNextcloud Sortsā€.

The idea behind this standalone app is to provide a new interface for visualizing the tree of files and folders. Because a list worth 100 paragraphs, here is the scope of this app :

  • Provide a better ā€œList viewā€ ā€¦
    • ā€¦ with the ability to unroll multiple folders instead of the actual behaviour of diving into folders.
    • ā€¦ with more information accessible from the main view (especially Tags)
  • A (de-unified) search bar which search exclusively into files and folders, by name. (something like this draft : #29614)
  • User defined filters (where you can search for things like : all the files tagged ā€œurgentā€ which are more than 500MB)
    • Integration of already existing filters (shared, favorites, and tags)

It can also be seen as a proof of concept for what a future ā€œFilesā€ interface in Vue could look like.

And here is what is not in scope :

  • Automatic tagging
  • Replacing the Files app
    • The scope end up at visualizing things
    • no file modification
    • no file movement
    • no file sharing interface.

A button to open files in ā€œFilesā€ will be provided instead.

The rational is : if I messed up file visualization, my app is just useless whereas if I messed up data modification my app is harmful. Furthermore, I only have 3 month of internship left to develop this, hence a limited scope.

Iā€™ll put a link to a git repository once Iā€™ll have something to showcase. For now I have just made this prototype. Please note : this is just a mock-up. Also, click on ā€œInteractions ā†’ show interactionā€ to see clickable elements (top right-hand corner).

Below, 2 screenshots from the mockup :

List view w/ unrolled folder

-.

I do not have any mock-up for mobile interface yet, even if I should have started with it (ā€œmobiles firstā€). But I have some clues on how to do it and a mobile mockup might be available soon. (We are talking mobile web browsers here, not mobile apps)

Any reactions and critics are welcome, and if you feel like we are re-inventing the wheel, please do tell us.

RLT (Aeredren),
Intern at Framasoft.
romain@framasoft.org

5 Likes

@jan do you know if Nextcloud has something in the pipeline?

Hi from Nextcloud! I wanted to thank you for your elaborate and constructive feedback and let you know that your topic has been forwarded to our team. Iā€™m not from the design team myself so wonā€™t be able to give you any more details but just wanted to let you know this didnā€™t go unnoticed.

Salut :slight_smile:

This is cool. You might want to take a look at Files to vue Ā· Issue #28063 Ā· nextcloud/server Ā· GitHub

2 Likes

Hi @Aeredren, Jan from the design team here ā€“ thanks for letting us know! :slight_smile: Are the results/data of the survey published already by any chance? Iā€™d be very interested in giving it a read.

On your individual points:

Was this tree view something which was requested? How would it deal with large folders, and deep folder structures?

This is something which could be added to core itself ā€“ if someone is using tags, it would be useful to show them e.g. either next to the filename, or in a subline. Check how we do it in Mail, possibly thatā€™s helpful: https://github.com/nextcloud/mail/pull/4894#issuecomment-838246664

This would be quite useful too to work on in collaboration with core / Files. :slight_smile: cc @skjnldsv @jospoortvliet

For this, Iā€™d recommend developing a mechanism like ā€œrecent searchesā€ / ā€œfrequent searchesā€. This is something commonly known from other platforms, and it doesnā€™t require people to consciously create the filters that they use often, but rather the system remembers.

In general, in would be nice to collaborate on some of these things, and for others there could be apps which enhance the Files capability. This might be better than developing a separate app which needs to be maintained?

2 Likes

Hi @jan,
Thank you for your interest on this project.

Not yet. But we could give you raw anonymized data if you want. (But it is all in french). For published results, I am not the one working on it but we let you know once we publish something.

Yes it was requested, sometime explicitly and sometime it was just implicit (people complaining about struggle to understand the nested folder hierarchy of their association / company / ā€¦)

For large folders we could use paging with a limit of, lets say, 20 nodes displayed per folder and a ā€œmoreā€ button to fetch 20 more nodes.

For deep folder structure, the UI will inevitably grow larger and larger. We could add an horizontal scroll but it might not be necessary : I think the common usage when using ā€œtree likeā€ file browsers is to change the ā€œroot folderā€ from which the tree is display when the number of nested folders displayed is too high. For now I plan on doing it this way :

  • simple click = ā€œunrollā€ the folder
  • double click = ā€œenterā€ the folder

I feel like it is quite the ā€œstandard behaviourā€ among file browser but it is just a feeling.

Agreed. It was more or less the idea behind what I called ā€œQuickfiltersā€ which are more likes ā€œfavorites for user-defined filtersā€.

I agree, ā€œunified searchā€ and ā€œdisplaying tagsā€ should be upstream features, and having yet another app to maintain is a bad thing.

The main problem Iā€™ll face with your proposition is : I am short on time.

My internship end at the end of February, and as core / files developers plans on rewriting ā€œfilesā€ front-end in Vuejs we thought the contribution process to ā€œfilesā€ could be hazardous.

Therefore our intention were : ā€œIā€™ll explore the feasibility of ā€˜tree viewā€™ and ā€˜conditional filteringā€™ā€ with this app being more like a Proof Of Concept. (Framasoft have no intention to further develop this app once Iā€™ll be on my way. Just to do basic maintenance as the app could still be useful for users who need conditional filters)

But all in all, if my code is somewhat re-usable in upstream, and if time allow it, Iā€™ll be glad to contribute to already existing core/files.

Will this search bar be able to search recursively in subfolders?

This is a missing functionality for large folders (ie: containing a lot of subfolders) for which Iā€™ve developed an app (Cyrille Bollu / Nextcloud advanced search Ā· GitLab). I would gladly share my code with you if you like :slight_smile:

Yes indeed, it should search recursively through all users files. Is it not the standard files search behaviour ?

I took a look at it and it seem indeed quite similar for searching through various files attribute, but Iā€™d like to have the SystemTags queries managed by the backend for pagination, and negations manage by the backend too in order to reduce DB

Merci beaucoup for sharing this anyways, could come in handy.

Iā€™ll publish my git repositories soon, but I want to have something usable first.

I meant ā€œsearch recursively within the current folderā€.

The current behavior of the unified search is to search recursively through all users files no matter where you are in your fileā€™s hierarchy.

So, letā€™s say you have the following fileā€™s hierarchy and you are looking for a file in folderB (and its subfolders) only (ie: you know the file you are looking for is somewhere in that folderB or one of its subfolders):

/ā€” folderA (big folder with 1000+ files)
|
|ā€”folderB (big folder with 1000+ files)
| |
| |----subfolderB1 (folder with ~100 files)
|
| |----subfolderB2(folder with ~300 files)
|
| |----subfolderB3 (folder with ~500 files)
|
| |----subfolderB4 (folder with ~100 files)
|
|ā€”folderC (big folder with 1000+ files)
|
|ā€”folderD (big folder with 1000+ files)

Itā€™s currently not possible to search within folderB and its subfolders only: NCā€™s unified search 'scope is the 4000+ files of your root folder, not the 1000+ files of folderB. I believe itā€™s a serious limitation of NCā€™s unified search

Okk, I didā€™nt get it sorry, but I get it now.

I hadnā€™t thought of it as default behaviour but it could be nice. Iā€™ll give it some thought.

I felt that this was the right time to raise this point since @jan said ā€œThis would be quite useful too to work on in collaboration with core / Files. :slight_smile: cc @skjnldsv @jospoortvlietā€ :slight_smile:

Hi @Aeredren!
This is a feature I was looking for lately and I think your proposal & mock-up are great.
I also think that search/filter history and recursive search inside a specific directory will be very useful.
Do you think it will also be easy to add these options to the search?

  1. File creator/modifier
  2. Comments - who commented, comment text
  3. File type
  4. Full-text search

Thanks!

@lironb
As I did it, I use a lot the search functionnality from OCP\Files\Folder which allow filters through those category

$types = [
	'mimetype' => 'string',
	'mtime' => 'integer',
	'name' => 'string',
	'path' => 'string',
	'size' => 'integer',
	'tagname' => 'string', // this are not systemTag, but old tags only used by 'favorite' now (this field is now pretty useless)
	'favorite' => 'boolean',
	'fileid' => 'integer',
	'storage' => 'integer',
];

Anything other than that might be possible, but it will cost efficiency. Combining any of the search above always result in one SQL request. Adding other search parameter will mean other requests or php treatment will be made in some kind of ugly hackā€¦ I already plan on doing it for systemTags (tags) and Shares information, one might build upon that to add others.

So to answer:

  1. File creator/modifier not easy
  2. Comments - who commented, comment text not easy
  3. File type easy
  4. Full-text search not easy

Thanks for this proposition :slight_smile:

@Aeredren Thanks for the fast and informative reply :slight_smile:
It will be great if you can share your projectā€™s code once you have some working POC with systemTags/Shares.
WIll keep watching this post for any progress.
Thanks,
Liron

Would love to hear if thereā€™s been any progress!

ā€¦ or maybe now :smiley:

Hi :slight_smile:

Thereā€™s been some progress indeed !
I finished my internship one month ago with a ā€œsorts appā€ good enough for a beta version. I started the publication process at the end of february / begining of march, but I had no time to complete it, until now. I will be working on it on my free time this week-end and next week

An overview of what we achieve with the original scope:

Done

Itā€™s not a search bar, but a filter on ā€œnameā€ behave the same, so I consider it done

Also done but with some drawbacks and possible improvements: It might be to heavy for big instances due to the way I combined some filters, and I did not finished filters on shares.

Code is available at Framasoft / Nextcloud / Sorts Ā· GitLab

Iā€™ll keep this thread inform of any progress during the next few weeks :slight_smile:

RLT

4 Likes

Awesome! We have a group of volunteer testers who will be happy to help with testing the Sorts app. @bug-hunters

3 Likes

Hello there,

Iā€™m back working on this App after a 4 month gaps to focus on my personal life and other project.

We, at Framasoft, finally publish Sorts on Nextcloud Store !

The plugin now enter a period of volunteer development and although I will still watch gitlab issues and merge requests, further development will be done on my free time and no deadline are to be expected.

Iā€™ll look toward adding search on shares metadata as it is a major aspect of Nextcoud, fixing main issues if any and publish Sorts for new Nextcloud versions.

We plan to communicate on the release on Framasoftā€™s blog, in french mostly, and will see if it grasp the interest of the community. (As the main communication canal so far was this thread, Sorts didnā€™t get a lot of attention (yet ?) :grin:)

@just , with the now freshly released beta, if anyone is still interested in testing the app, Iā€™ll gladly take into account any feedback ! :slight_smile:

~Aeredren

2 Likes

@all : weā€™re please to announce Sorts publicly :slight_smile :slight_smile:

Please read Nextcloud "Sorts" release 0.0.1: an app for files tree navigation and advanced files filters

Full article and announce in (approximate) english here: Nextcloud Sorts: a Nextcloud application prototype to navigate your files more easily ā€“ Framablog

1 Like