702 Commits

Author SHA1 Message Date
Rufus Pollock
25c0177097 [#25,backend][s]: update backends to new fields setup. 2012-02-18 08:20:10 +00:00
Rufus Pollock
a75e04701f [#25,model][xs]: turns out the hack to allow simple arguments to Field ctor does *not* work. 2012-02-18 08:11:38 +00:00
Rufus Pollock
2da6c1a297 [#25,model][xs]: remove artificial field attribute (follow up to penultimate commit cf42e43ff0f32ba24e940455b060ae278025942b). 2012-02-18 07:48:14 +00:00
Rufus Pollock
0364f3e847 [#25,typo][xs]: left in console.log. 2012-02-18 07:44:35 +00:00
Rufus Pollock
cf42e43ff0 [#25,model][s]: introduce new Field Model and FieldList collection and attach to Dataset.
* NB: no refactoring elsewhere yet to take account of this
* model.test.js: tests for Field (first proper model tests!)
2012-02-18 07:33:15 +00:00
Rufus Pollock
3ea18aa715 [#25,refactor][s]: rename header(s) -> field(s) throughout. 2012-02-17 23:43:27 +00:00
Rufus Pollock
5f5fafbb22 [#49,view][xs]: sort from DataTable working again.
* And this change shows how new setup is nicer (i.e. cleaner) :-)
2012-02-17 23:10:03 +00:00
Rufus Pollock
866ad12a15 [#49,query][s]: introduce Query model object and use it in Dataset.
* tests: refactor Memory backend tests so that tests are independent (to avoid issues of carry over of query state)
* TODO: use query stuff in views - NB sorting seems broken in DataTable.
2012-02-17 23:05:34 +00:00
Rufus Pollock
7fa2517450 [whitespace][xs]: whitespace. 2012-02-17 22:36:22 +00:00
Rufus Pollock
ed3d20b20f [#42,flot-graph][s]: reinstate configuration of graph from routing info lost in penultimate commit a9cfd4412c8a4b9645e100997a4d1898620b0290.
* view.js: bunch of utility functions for parsing and composing query strings for hash routing (plus tests).
2012-02-17 21:47:51 +00:00
Rufus Pollock
b285987ef4 [#42,docs][s]: add docco build of view docs (plus tweak to view Docs). 2012-02-17 21:46:09 +00:00
Rufus Pollock
a9cfd4412c [#42,view][m]: allow configuring of DataExplorer with views to show.
* TODO: Some issues regarding configuring the FlotGraph from query string
2012-02-17 20:30:26 +00:00
Rufus Pollock
23e46e9c6f [#41,view,refactor][s]: merge DataTable and DataExplorer views back into view.js.
* Also improve docs for views a little bit (better use or markdown)
2012-02-17 12:40:25 +00:00
Rufus Pollock
87fa752908 [#43,backend][s]: GDocs backend working (and has improved docs). 2012-02-17 09:16:02 +00:00
Rufus Pollock
7f923d3ccf [backend][s]: Webstore and DataProxy now passing tests again. 2012-02-17 09:10:24 +00:00
Rufus Pollock
2d4e6a2ecc [#43,model][m]: refactor Dataset and BackendMemory to the new setup approach.
* NB: other model tests broken as a result.
2012-02-17 08:53:36 +00:00
Rufus Pollock
57effa02aa [whitespace][xs]: correct indentation issues introduced in b3a71e82cca77bfe24c93290dd321174c85ab3b7. 2012-02-16 19:51:05 +00:00
Friedrich Lindenberg
467e27a95d Split views into separate files. fixes #41. 2012-02-16 17:04:49 +01:00
Friedrich Lindenberg
7e79d39f8d Styling for show/hide columns 2012-02-14 16:30:11 +01:00
Rufus Pollock
21173b6acf [#35,all][m]: crude error catching for backends based on timeouts (best we can do with JSONP) - fixes #35.
* Show errors in UI
* required some extensive refactoring to use done/fail on promise rather than then
2012-02-10 03:16:49 +00:00
Rufus Pollock
d17fa4a169 [#35,view][s]: notifications for loading of data (and success thereof) both on initialization and on new queries.
* refactor notify to fadeOut notifications (for persist=false)
* refactor DataExplorer to have a common query method
* new clearNotifications method
2012-02-10 02:02:03 +00:00
Rufus Pollock
b9e2a15b9f [refactor,util][s]: move notify function to view.js from util.js. 2012-02-10 01:45:17 +00:00
Rufus Pollock
ffc2938db7 [costco,refactor][s]: strip unused couchdb specific code (re bulk updating, column deleting etc). 2012-02-10 01:44:00 +00:00
Rufus Pollock
657a7fe81b [util][s]: strip all unused code. 2012-02-10 01:29:35 +00:00
Friedrich Lindenberg
f10e893811 Ability to show and hide columns on demand, fixes #29 2012-02-09 23:36:35 +00:00
Friedrich Lindenberg
55e8684c46 Add drop-down option to hide headers. 2012-02-09 19:37:37 +00:00
Friedrich Lindenberg
2397c0e1e5 Show column header dropdown even in read-only mode 2012-02-09 18:49:12 +00:00
Friedrich Lindenberg
5fc4fa9626 Support sorting by a given column; refs #34 2012-02-09 18:49:12 +00:00
Rufus Pollock
1491ae5bcc [#34,query][m]: start on proper query support (move to query and sort support in BackendMemory). 2012-02-09 18:05:37 +00:00
Rufus Pollock
1539169e21 [#35,refactor][l]: fixes #35, major refactor to have datasets intialized with backend and endpoint information.
* Backbone.sync now switches on type of backend set for a dataset (allowing simultaneous use of multiple datasets with different backends)
* Datasets are initialized with backend config (see docs and code)
2012-02-08 09:27:56 +00:00
Rufus Pollock
70e252f060 [src][xs]: remove executable bit on costco.js and util.js (left over from original recline). 2012-02-07 12:24:05 +00:00
Rufus Pollock
7b496fc276 [refactor][s]: split out backends from model.js to backend.js.
* And do some slight improvement of the model and backend docco docs by using some markdown formatting.
2012-02-07 12:20:48 +00:00
James Casbon
b3a71e82cc correct indents on model.js with gg=G 2012-01-29 16:20:51 +00:00
James Casbon
9eeb4ab97a google spreadsheet backend 2012-01-28 19:44:07 +00:00
Rufus Pollock
e2c1688563 [view,ux][xs]: add title to document / row limit input giving instructions on use. 2012-01-28 08:09:38 +00:00
Rufus Pollock
be1569013d [view/DE][xs]: default to displayCount to 50. 2012-01-28 08:05:41 +00:00
Rufus Pollock
91c578d7b9 [view/DE,bugfix][xs]: use (rather than overwrite!) passed in config options. 2012-01-26 23:01:51 +00:00
Rufus Pollock
fbacd700c7 [view/explorer][xs]: show unknown when doc count unknown (rather than nothing). 2012-01-26 20:31:39 +00:00
Rufus Pollock
afc948295e [js][xs]: remove src/recline.js (long deprecated and completely commented out). 2012-01-26 14:58:55 +00:00
Rufus Pollock
76b05eb846 [#31,backends][m]: add BackendDataProxy, fixes #31. 2012-01-26 11:07:27 +00:00
Rufus Pollock
c6946c2d6d [costco-csv-worker][xs]: comment out importScripts('lib/underscore.js') since does not work in normal JS. 2012-01-26 10:58:06 +00:00
Rufus Pollock
32a74949cc [vendor][s]: remove deps-min.js and explicitly linked to required vendor libraries.
* Why: it is then explicitly clear in demos what vendor libs are needed and make its easier to use those demos as a template for integration elsewhere.
2012-01-23 10:01:05 +00:00
Rufus Pollock
a369c63812 [#8,Webstore][xs]: respect numDocs constraint in getDocuments. 2012-01-15 19:05:06 +00:00
Rufus Pollock
246cdedcd2 [#19,routing][xs]: move history out to external calling code as we need to be able to reload the app (e.g. to change data source). 2012-01-15 17:41:55 +00:00
Rufus Pollock
04279b0150 [#22][s]: refactor notification to use Bootstrap alerts. 2012-01-11 12:22:59 +00:00
Rufus Pollock
dfae2ca750 [#22,theme][s]: bootstrap-ify edit and transform forms a little. 2012-01-11 08:36:41 +00:00
Rufus Pollock
2372b2ba37 [fix,#19][xs]: show doc count again (lost in penultimate commit). 2012-01-10 18:33:16 +00:00
Rufus Pollock
e1f2ebf89f [#19,routing][m]: graph view now supports saving and loading config from hash query string. 2012-01-10 18:26:19 +00:00
Rufus Pollock
f176979f5b [#19,routing][m]: introduce Backbone routing and use it for navigation between grid and graph views.
Some substantial other related changes:

* Switched DataExplorer view to have element it attaches to passed in rather than being created internally (this was important for FlotGraph to set up correctly).
  * Also refactored DataExplorer setup somewhat (e.g. got rid of draw function which wasn't needed -- merging necessary parts with initialize)
* Substantial refactoring of FlotGraph so that we correctly work around flot's delicateness regarding rendering (element must not be hidden etc -- see comments in code)
  * Also generally cleaner code
2012-01-10 00:07:21 +00:00
Rufus Pollock
973e59fbdd [view/DataExplorer][xs]: micro rename of event function. 2012-01-09 19:20:33 +00:00