224 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
4ede229b7b [refactor][s]: rename view-flot-graph to view-graph and FlotGraph to Graph. 2012-04-15 16:03:08 +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
Rufus Pollock
b0bf06c52e [#34,query,backend/memory][s]: memory backend support query string (q parameter). 2012-04-14 10:00:17 +01:00
amercader
9bffad30ad [view/map][xs] Fix typo 2012-04-12 08:31:01 +01:00
amercader
45c05a3334 [view/map] Ignore empty fields and replace non-crossbrowser commands 2012-04-11 18:47:15 +01:00
amercader
9080fb8c6b [#64,view/map] Add source docs and links from home page 2012-04-11 17:33:17 +01:00
amercader
a8018c4e18 [#64,view/map] Add small editor for user input
Right now the form lets you define the fields where the geometries are
stored (either in a single GeoJSON field or a pair of lat/lon fields).

When adding features, if wrong geometries are found (ie wrong field
values), the process will stop and an error notice will be shown.
2012-04-11 14:15:39 +01:00
amercader
e65b3f5418 [merge] from upstream master 2012-04-11 10:38:47 +01:00
Rufus Pollock
11f4fb1151 [#78,tidying][s]: fixes for as many jshint issues as possible in src/*.js. 2012-04-10 20:21:18 +01:00
amercader
23c6a6e81b [view/map][s] Recalculate Leaflet sizes when showing the container div 2012-04-10 17:14:22 +01:00
amercader
5891149087 [#86,view] Fire view show/hide events 2012-04-10 17:12:53 +01:00
amercader
5ff7260396 [#64,view/map] More flexible geom field detection (case insensitive and checks 'location') 2012-04-10 17:09:06 +01:00
Rufus Pollock
498e9712c6 [#68,model/Field][s]: introduce default renderers for object and float:percentage. 2012-04-10 16:36:55 +01:00
Rufus Pollock
dea4b3ece1 [#83,facets][s]: add date histogram facet support.
* Incomplete in various ways (e.g. cannot apply filter correctly using it) but can add and view.
2012-04-10 16:25:08 +01:00
amercader
9f0c0d753a [#64,view/map] Listen to changes in documents to refresh the map
Added new listeners to refresh the markers whenever a document(s) is
added or removed, or all documents are reset. Instead of recreating
everytime all markers, only the necessary ones are added or removed.
2012-04-10 13:16:37 +01:00
Rufus Pollock
3c9a18ba88 [#78,jshint][s]: cleaning up backends as per jshint instructions. 2012-04-10 12:19:39 +01:00
Rufus Pollock
70c43015ea [#68,view-grid,refactor][xs]: switch to new field / doc renderer and deriver.
* remove existing cellRenderer and switch to calling doc.getFieldValue(field)
2012-04-10 01:30:06 +01:00
Rufus Pollock
0f4a0a6189 [#68,fields][m]: add format attribute plus support for renderer and deriver functions. 2012-04-10 01:24:34 +01:00
Rufus Pollock
28c9be4268 [#81,css][s]: tidying up css by ensuring top level data explorer and grid view have recline- in them. 2012-04-10 00:22:27 +01:00
Rufus Pollock
f57c94382f [#62,#66,ux,menus][s]: add to top menu filters and facets buttons which show filter editor and facet viewer respectively. 2012-04-10 00:15:03 +01:00
Rufus Pollock
6703233efc [view/query-editor][s]: reinstate editable pagination removed in f9f5be654097598da3fb2ccc29bc4d4f4c42c0ec. 2012-04-09 23:47:05 +01:00
Rufus Pollock
517c95f78a [#66,filters][m]: full editing of text filters plus add text filter via column menu in grid view - fixes #66. 2012-04-09 11:15:50 +01:00
Rufus Pollock
008c124096 [#66,filters,view][m]: new FilterEditor view which shows current filters and allowed them to be removed. 2012-04-08 10:47:25 +01:00
Rufus Pollock
9a3c0523c6 [#78,tidying][xs]: add /*jshint multistr:true */ to all files where we use multiline strings to avoid unnecessary jshint warnings. 2012-04-08 09:33:20 +01:00
Rufus Pollock
2cd9192480 [#52,docs/model][m]: document all model elements in detail.
* List more items in main index doc page
* Major extension of source docs including
  * Query object with its spec
  * Facet
  * etc
2012-04-07 13:49:13 +01:00
amercader
278d244ad1 [#64,map] Support GeoJSON and lat/lon geometry fields
The view will check for a set of default field names to see if there is
a field containing geometries in GeoJSON format. If not, will check
similarly for a pair of fields with lat/lon values.
2012-04-04 17:56:01 +01:00