2484 Commits

Author SHA1 Message Date
Rufus Pollock
31d829f53f [#17,backend][s]: add readonly attribute on backends indicating whether they are 'read-only'. 2012-04-22 00:03:59 +01:00
Rufus Pollock
67ff757722 [#68,field][s]: link and markdown format for strings with default formatter. 2012-04-21 23:54:49 +01:00
Rufus Pollock
24295e78a2 [view/map][s]: make map view much more robust regarding bad or missing data in location fields. 2012-04-21 23:52:22 +01:00
Rufus Pollock
793fde4617 [bugfix,view-map][s]: 30m to track down and fix a bug whereby map view was ignoring config passed to it.
* setupGeometryFields was running (and overwriting) even if fields set in state passed in (which I don't think we want).
2012-04-21 23:47:52 +01:00
Rufus Pollock
92ec8d5b3e [backend/memory,bugfix][xs]: fix error on memory filtering when field value is null (cannot call toString). 2012-04-21 22:48:33 +01:00
Rufus Pollock
60b7f19f71 [vendor,refactor][xs]: lay vendor directory in consistent way ({lib}/{version}/{js-file}). 2012-04-17 12:53:11 +01:00
Rufus Pollock
df421e4bee Merge branch 'master' into gh-pages 2012-04-17 11:17:50 +01:00
Rufus Pollock
7973bf1dd4 [build][s]: regular build of docs and consolidated library. 2012-04-17 11:17:39 +01:00
Rufus Pollock
5eb65f2b77 [view-map,bugfix][xs]: only call invalidateMapsize on view:show if map defined.
* this issue arose in case when map is the first view being shown.
2012-04-17 05:27:09 +01:00
Rufus Pollock
bdbfdd7c34 [#67,app][s]: embed support. 2012-04-17 05:24:06 +01:00
Rufus Pollock
27b5cf243f [bugfix,view][xs]: set default view in DataExplorer to first view if no currentView specified. 2012-04-17 05:19:27 +01:00
Rufus Pollock
7ee34f98e9 Merge branch 'master' into gh-pages 2012-04-16 21:06:12 +01:00
Rufus Pollock
9e08d6109b [app][xs]: comment out router stuff which was obsoleted by last commit and is causing problems with online version of app. 2012-04-16 21:05:40 +01:00
Rufus Pollock
7af8541707 Merge branch 'master' into gh-pages 2012-04-16 20:56:16 +01:00
Rufus Pollock
3ef664fe77 [#88,#67,state,view,app][s]: restore was not in fact working correcty for views as we need to pass the state on initialization (we were setting the state later).
* Also turn off url updating since I think that was messing with things and we were planning to do that. (For later: reintroduce this as it supports well-behaved navigation)
2012-04-16 20:47:47 +01:00
amercader
eac494cb84 [merge] from upstream master 2012-04-16 17:45:25 +02:00
Rufus Pollock
0f0fa633a1 [#67,app][s]: first pass at sharable link support in app (though seems rather buggy). 2012-04-16 15:17:19 +01:00
Rufus Pollock
a42840cdf3 [#88,model/state][xs]: can just specify a url instead of full dataset object when restoring from state (easier and good for backwards compatability). 2012-04-16 15:16:28 +01:00
Rufus Pollock
53e099beda [test][xs]: make fixtures dataset same as for demo. 2012-04-16 15:15:59 +01:00
amercader
1dbd8bf957 [view/map] Make auto zoom configurable 2012-04-16 11:04:05 +02:00
Rufus Pollock
40a771c38b [app][s]: refactor app to be a backbone view. 2012-04-16 03:06:31 +01:00
Rufus Pollock
2d636b0eb8 [css/grid.css][xs]: vertical-align top for grid cells. 2012-04-16 03:02:42 +01:00
Rufus Pollock
0ead86d6d7 [#88,view,state][s]: support for setting and getting currentView.
* Also refactor so that dataset view switcher in DataExplorer runs via direct JS rather than routing (as have meant to do for a while). this is important because a) routing stuff is partly going away b) it's cleaner this way.
2012-04-16 00:13:14 +01:00
Rufus Pollock
927bc32647 [#88,view][s]: DataExplorer boots Grid, Graph and Map view by default instead of just Grid.
* This makes DataExplorer.restore substantially more useful.
2012-04-15 23:26:57 +01:00
Rufus Pollock
6a90189b46 [test][xs]: remove console.log. 2012-04-15 23:23:37 +01:00
Rufus Pollock
bcffe67336 [#88,refactor][s]: create recline.Model.Dataset.restore function and move dataset restore stuff there from recline.View.DataExplorer.restore. 2012-04-15 23:08:42 +01:00
Rufus Pollock
3092ef6a8b [test][xs]: micro tidy-up (calling remove on view at end of test in Grid View test). 2012-04-15 23:03:31 +01:00
amercader
ac371773d0 [map/view] Zoom to current features when updating the map view 2012-04-15 23:49:48 +02:00
Rufus Pollock
2a93aeb2c1 [#88,state][s]: (and finally) introduce a recline.View.DataExplorer.restore function that restores from a serialized state.
* remove getState in favour of just using direct access to state object.
2012-04-15 22:47:16 +01:00
Rufus Pollock
7743534eac [#88,backend][s]: add __type__ attribute to all backends to identify them and provide a more robust and generic way to load backends from a string identifier such as that __type__ field.
* Also remove recline.Model.backends registry as can be replaced with this more generic solution.
* This refactoring is necessitated by our need to serialize backend info for save/reload of a dataset and explorer state in #88.
2012-04-15 22:19:43 +01:00
Rufus Pollock
002308f78f [#88,doc/view][m]: document state concept and usage plus provide general overview of recline views and how Dataset Views should be structured. 2012-04-15 18:49:07 +01:00
Rufus Pollock
d71203e69a [#88,refactor/state][s]: map view now supports state (used for specifying geometry/lat/lon fields). 2012-04-15 17:29:29 +01:00
Rufus Pollock
270f68784c [#81,css][xs]: css class read-only -> recline-read-only. 2012-04-15 17:07:43 +01:00
Rufus Pollock
2515658a0b [#80,refactor][xs]: switch to _.each in view-graph.js. 2012-04-15 17:00:42 +01:00
Rufus Pollock
cb51f485c0 [#81,css][s]: map view uses recline- naming for top level container plus minor simplifying rename for graph css (fixes #81). 2012-04-15 16:53:46 +01:00
Rufus Pollock
93e8b14a25 [#81,css][xs]: split out grid css into its own css file. 2012-04-15 16:46:59 +01:00
Rufus Pollock
39a6c1eb74 [refactor][xs]: rename DataGrid to Grid for simplicity and consistency with file name. 2012-04-15 16:35:33 +01:00
Rufus Pollock
8097bd4791 [#81,css,view/graph][xs]: rename parent container to recline-graph-container. 2012-04-15 16:08:33 +01:00
Rufus Pollock
19864f99bc [refactor,css][xs]: addendum to previous commit - rename flot-graph.css to graph.css. 2012-04-15 16:05:33 +01:00
Rufus Pollock
4ede229b7b [refactor][s]: rename view-flot-graph to view-graph and FlotGraph to Graph. 2012-04-15 16:03:08 +01:00
Rufus Pollock
16e3797b4c [addendum,test][xs]: typo in copy and paste of assertPresent etc to test/base.js. 2012-04-15 16:02:36 +01:00
Rufus Pollock
4281801120 [#88,refactor/state,api-change][m]: FlotGraph now uses state plus DataExplorer takes care of parsing state from Hash.
* First test for FlotGraph view (#45)
* Move convenience functions for testing present of elements to test/base.js from view-grid.test.js
2012-04-15 15:03:02 +01:00
Rufus Pollock
8f33235933 [#88,refactor/state,api-change][s]: convert state on DataExplorer to proper ObjectState model and rename config to state in DataExplorer initialization arguments.
* Also add more tests (#45).
2012-04-15 13:44:01 +01:00
Pedro Markun
6a352f9c44 Added encoding selecting options 2012-04-14 14:39:41 -03:00
Pedro Markun
c16fc1204e Support for separator specification in CSV now in frontend 2012-04-14 14:26:26 -03:00
Pedro Markun
e695924149 CSV file loading supports file separator 2012-04-14 14:14:15 -03:00
Rufus Pollock
de185c25b8 [whitespace][xs]: . 2012-04-14 18:01:48 +01:00
Rufus Pollock
670eb1e1de [#88,view/grid,refactor][s]: switch DataGrid to use new state setup (and introduce new Model ObjectState for this purpose).
* Switched hiddenFields to be part of state object (only state on DataGrid at the moment).
2012-04-14 12:58:39 +01:00
Rufus Pollock
5eb075b14c [#45,test/view-grid][s]: add test for hide column functionality on DataGrid (first test of this view). 2012-04-14 12:44:07 +01:00
Rufus Pollock
77414ff9ca [#88,view/refactor][s]: start on state management and serialization with getState function on Explorer. 2012-04-14 11:42:02 +01:00