Skip to content

Added feature: download all files button - #116

Closed
jochenwezel wants to merge 2 commits into
owncloud:masterfrom
jochenwezel:master
Closed

jochenwezel wants to merge 2 commits into
owncloud:masterfrom
jochenwezel:master

Conversation

@jochenwezel

Copy link
Copy Markdown

The new button allows downloading of all files within the current folder recursively which haven't been cached locally yet.

@jancborchardt

Copy link
Copy Markdown
Contributor

Can you provide an interface screenshot? I'm a bit heaitant about this as it should work much like favoritin files, just for the current folder.

@jancborchardt

Copy link
Copy Markdown
Contributor

Also I suppose this refers #87?

@svenclemens

Copy link
Copy Markdown

Hello jancborchardt,

It's a great way if you want to get a bunch of files on your device at once, without the necessity to have the most up to date version of the files.

Here are the requested screenshots.

02_main_menu
03_download_all_missing_files
04_downloads

@laryllian

Copy link
Copy Markdown

YAY! That is so cool. ;-D I would just rename it to "Download folder", because no one non-involved knows, what "missing files" would be. My mom would ask herself "Did I miss any files?" ;-)
When calling it "Download folder", the normal understanding would be, that the folder will be downloaded to the device assuming that files already present are not be downloaded again.

@jancborchardt

Copy link
Copy Markdown
Contributor

@jochenwezel / @svenclemens I agree with the goal of this feature, which I assume is: Downloading a whole folder. I disagree with implementing it via »yet another function in the dropdown«.

It should use the »Favorite«/»Star«/»keep up to date« mechanism also used for files, because otherwise after the initial download the files will get out of date.

@ancow

ancow commented Apr 3, 2013

Copy link
Copy Markdown

It seems like this would currently solve #80, as I understand it?

@jancborchardt

Copy link
Copy Markdown
Contributor

Here’s how it should work: Any file you opened in the past should be available offline, and probably synced. Any file or folder which you star/favorite, should be available offline and synced. There should be no such thing as manually »Downloading«, that’s a means, not an end. Either you open it, or you star/favorite it, both actions should »download« a file.

We can implement some quick fixes and tack on new stuff all the time, but we have to think about how to work in a sustainable fashion instead.

To this end, I wrote up a spec for the new mobile apps (Android as well as iOS). Since you seem interested in taking part in developing and designing, please read through it and give feedback: https://github.com/owncloud/mockups/tree/master/mobile

@svenclemens

Copy link
Copy Markdown

@jancborchardt
Now I've read your spec.
It seems a mashup as-it-is and as-it-should be states. Maybe this should be separated more clearly.
So you wrote

"open file/folder: simple tap. Any downloaded document will, in addition to open a document and save it for offline access"

in specs and also in this thread

Either you open it, or you star/favorite it, both actions should »download« a file.

as I saw in my version of the android app there is no way to open a document without separately downloading it (either via download button or keep updated switch). For these aren't understand german - the opening button is the upper-right one, download is lower-left.
file menu

But to come to our request:
I'm okay with implementing it with the "keep up-to-date"-function but I think it's more practicable to have this function in the dropdown-menu. If we want to cache every folder in root directory, this would be the only way to do this without get our hands on each and every folder and data.

The other way would be to add a button (see screenshot, the button in the middle) on the folder menu where you can rename or delete the folder.
But this would have the disadvantage that we have to do it for each folder in the root directory.
03 our folder menu

@jancborchardt

Copy link
Copy Markdown
Contributor

@svenclemens: The spec is fully »as it should be«. Some of these things are already done of course, then that’s cool. But we need one document which fully describes how everything should work, and why so. That is also valid when it’s already implemented, so we always know why this is.

The strange detail screen (first screenshot you posted) will not be there anymore in the reworked app. Similarly the menu in the second screenshot will also not exist anymore. Delete will be done via swipe (exposes a »delete« button), rename will be done by tapping on the title in the file view, and »keep up to date« will be done by favoriting/starring it in the file view.

What do you think?

@davivel

davivel commented Apr 15, 2013

Copy link
Copy Markdown
Contributor

And let me add, UX updates are first priority starting now.

@jancborchardt , swipe to delete is not a common gesture in Android devices. I strongly recommend keep using long press in the list of files, and adapt it to its new flow for 'selection mode' introduced with Android 3.0.

@msrex

msrex commented Apr 17, 2013

Copy link
Copy Markdown

@jancborchardt - how is the download of a complete directory done without having to touch every single file?

@wiz561

wiz561 commented Apr 25, 2013

Copy link
Copy Markdown

davivel: How can a user of owncloud on android get this to work? I got the impression that 'ux updates' are done first...but what is UX? Do I have to install the dev version of the client?

thanks.

@davivel

davivel commented Apr 26, 2013

Copy link
Copy Markdown
Contributor

@jancborchardt , maybe merging this would be a good idea as a first step, while we finish the UX update. The code performing the operation in background is nice, well integrated with the current code, and easy to reuse. What do you think? I would like to make updates more often in the store, I am not sure that waiting for the full redesign is implemented is a good idea.

@jochenwezel

Copy link
Copy Markdown
Author

Maybe we could also say in context menu (if not too long for display at small resolutions like smart phones)
instead of "Verzeichnis aktuell halten" / "Keep directory up-to-date"
better "Download für Offline Zugriff" / "Download for offline access" followed by a question dialog with buttons/check boxes "Download once" and "Keep up-to-date"

And in app menu (for current directory; required that also root directory can be downloaded in full)
instead of "Download all missing files"
better "Download for offline access" followed by a question dialog with buttons/check boxes "Download once" and "Keep up-to-date"

In context menu as well as app menu, keep-up-to-date feature can be disabled by settings page

@jancborchardt

Copy link
Copy Markdown
Contributor

@jochenwezel @svenclemens sorry for not attending to this issue! Thought about it more, what about this:

  • Implement it as »Sync folder« (= keep up-to-date) instead of just »Download« (because only downloading will result in the files being quickly outdated again)
  • Put it only in the long-press menu, not in the context menu when inside the folder (because that menu is for meta-actions)

Is that ok? Sorry again for letting you wait.

@svenclemens

Copy link
Copy Markdown

Hello @jancborchardt,
we all have work to do so it's not that problem to have some latency :)

Your suggestion is ok to me.
Unfortunately we have low capacity currently.
Maybe someone else would attend to this and change it in @jochenwezel's fork.
Shouldn't be that big problem to move the function call from this menu to another.

We could do it ourselves but it would have to wait until we can afford.

@enoch85

enoch85 commented Aug 8, 2013

Copy link
Copy Markdown

👍

@jancborchardt

Copy link
Copy Markdown
Contributor

@enoch85 please do not just thumbs up or +1 something. There are many people cc'd on this issue so this will all land in their inboxes, and that’s annoying.

@davivel

davivel commented Nov 21, 2013

Copy link
Copy Markdown
Contributor

This is too old, and code has changed a lot since it was requested.

Besides, there is some extra work needed on the task.

Anyway we are interested in recovering it, at least the Operation class. If you are still interested in contribute, please, update to the current code and repeat the Pull Request **** on develop **** (not master).

Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants