authorly / interapptive-web

Authorly web-based storybook builder
1 stars 1 forks source link

Sorting for Assets / Adding Images to Scene #474

Closed whitman closed 11 years ago

whitman commented 11 years ago

Dependency for #471

dira commented 11 years ago

@whitman I have some questions about adding search / sorting / pagination for the asset library.

First of all, how many assets do we expect to have, per story? Is search only by name? Do we need sorting by size (is that something a story creator would use?) What about upload date?

How should sorting / search / pagination work with the function of uploading new files?

Right now all the UI is created by the fileupload plugin; when new files are added, it prepends them to the table of assets. Should we keep that - so new files appear on top when they are added? Should the UI put them in the correct place (according to search/pagination/sorting) after they are uploaded, or leave them at the top?

whitman commented 11 years ago

@coreycurious has a few hundred images but i think a majority of people will have between 20 and 100.

Search is only by name.

Sorting can be by name and date uploaded.

Maybe when a new file is uploaded it could sort the list date uploaded.

dira commented 11 years ago

@whitman All the problems we had so far with the UI were do to conflicts between jqueryfileupload's UI functionality and conventions, and the thing we were trying to use on top of that. So it wasn't advancedtable per se, but advancedtable & jqueryfileupload trying to manage the UI at the same time.

I think we should use the jqueryfileupload basic plugin, without the UI. And use only advancedtable (or DataTables) for the UI.

This means implementing a bit of the UI, but it will get rid of the conflict and give us reliable code.

Regarding the UI for showing the items to upload - I think the best would be to have them in a separate area, on top of the table with the current assets. And just add them to the table, in the appropriate position (with the current pagination/ search filter / sorting) when the upload is done.

Where is the documentation for advancedtable?

waseem commented 11 years ago

@dira There is hardly any documentation on advancedtable plugin on web you should probably check out source https://github.com/curiousminds/interapptive-web/blob/master/vendor/assets/javascripts/advancedtable.js.

dira commented 11 years ago

Tx @waseem, however the advancedtable plugin is for sale and they say it comes with docs / examples. If we did not buy it, we should use Data Tables.

waseem commented 11 years ago

I'm not sure about buying a license for it. I don't find it a good plugin. If you want to use Data tables, fine. You can use any other plugin as well. You can use your own better judgement; I don't mind. :)

On Thu, May 9, 2013 at 8:39 PM, Irina Dumitrascu notifications@github.comwrote:

Tx @waseem https://github.com/waseem, however the advancedtable plugin is for sale http://codecanyon.net/item/advanced-tables/53366 and they say it comes with docs / examples. If we did not buy it, we should use Data Tables.

— Reply to this email directly or view it on GitHubhttps://github.com/curiousminds/interapptive-web/issues/474#issuecomment-17669434 .

Waseem Blog: http://waseem-ahmad.com Twitter: http://twitter.com/_waseem