107 Commits

Author SHA1 Message Date
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
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
270f68784c [#81,css][xs]: css class read-only -> recline-read-only. 2012-04-15 17:07:43 +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
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
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
77414ff9ca [#88,view/refactor][s]: start on state management and serialization with getState function on Explorer. 2012-04-14 11:42:02 +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
5891149087 [#86,view] Fire view show/hide events 2012-04-10 17:12:53 +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
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
b1f90a3b27 [#66,#62,filters,facets,view][s]: facet view checkbox now triggers filter on that field and value. 2012-04-02 21:06:22 +01:00
Rufus Pollock
aa42e49192 [#62,facets,ux][s]: add facets via column menus and tidy up facet viewer (hide support, plus do not show if no facets). 2012-04-01 19:13:08 +01:00
Rufus Pollock
ccdc2aed2d [#62,facets/view][s]: start refactoring the facet viewer to something nicer.
* facet listing are bootstrap dropdowns and rename from FacetQueryEditor to FacetViewer to better reflect purpose.
2012-04-01 18:55:07 +01:00
Rufus Pollock
80165659b1 [#62,faceting][s]: basic faceting fully functional on ES. 2012-04-01 14:20:12 +01:00
Rufus Pollock
3412962a35 [#62,faceting][s]: introduce Facet and FacetList models and use them.
* Conceptual breakthrough on how Faceting and Filtering interact (have updated issue #62 as a result).
2012-03-31 18:06:41 +01:00
Rufus Pollock
905659d86f [#62,view/query][m]: start of faceting support with QueryFacetEditor.
* QueryFacetEditor in DataExplorer which displays facets but nothing yet happens.
* NB: very much less than half way through (things look worse rather than better atm).
2012-03-31 15:08:27 +01:00
Rufus Pollock
70ea2bd863 [#34,bugfix,view][s]: fix issues with interaction of hash changes with view updating.
* Problem was in e.g. default demo that with new hash we were not matching on grid view and hence only displaying that (so we displayed both grid and graph which was nasty ...)
* Fix this by better match on route. Also improve by using router.navigate on query update
2012-03-23 02:41:53 +00:00
Rufus Pollock
f9f5be6540 [view/query][s]: refactor query view to have from / size changes in new dropdown query menu rather than in pagination. 2012-03-14 21:14:56 +00:00
Rufus Pollock
6d69ef64d9 [view/util][xs]: minor correction to parseQueryString function to handle empty query strings correctly. 2012-03-14 21:04:25 +00:00
Rufus Pollock
733a9d3275 [#34,view][s]: query state in url (store into and read from).
* Also change so that query values are not automatically JSON.stringify-ied (bad idea since it leads to repeated jsonification of same value ...)
2012-03-14 19:45:28 +00:00
Rufus Pollock
28ab026ca1 [view,bugfix][xs]: correct bug in query editor introduced by change in css in 07adbe2386116f8ac8ca4c716344b3d6dc513354. 2012-03-10 09:09:57 +00:00
Rufus Pollock
07adbe2386 [ux,query,#53][s]: make it clear that search box is for searching. 2012-03-10 09:06:20 +00:00
Rufus Pollock
fc979023e6 [view,backend/dataproxy][s]: handle errors from dataproxy better and notify errors better in view. 2012-02-29 22:01:37 +00:00
Rufus Pollock
1b9102e4b0 [css][xs]: remove bootstrap button stuff from css and switch to bootstrap disable to grey out button for active view. 2012-02-29 21:29:34 +00:00
Rufus Pollock
6daf354f3c [css][s]: refactor notification to remove obsolete css and display spinner using css. 2012-02-29 13:46:57 +00:00
Rufus Pollock
5c3781826a [#55,notify][xs]: correct clearNotifications to use .alert rather that .alert-messages. 2012-02-29 13:20:54 +00:00
Rufus Pollock
ca89b8f916 [doc][xs]: correct alert-message to alert in notify function docs. 2012-02-29 13:19:11 +00:00
Rufus Pollock
94651fbff4 [#55,misc][s]: switch to bootstrap v2.0 making some minor changes to html and css as a result (fixes #55). 2012-02-29 12:52:03 +00:00
Rufus Pollock
bd6123403e [#34,query][s]: rename offset to from on query object.
* More natural in fact and we may as well go whole hog with ES structure.
2012-02-27 20:54:02 +00:00
Rufus Pollock
a470e66ff3 [#53,view/query][s]: add free text query input to query editor (though backend does not yet use it). 2012-02-24 10:08:19 +00:00
Rufus Pollock
0a17c428cd [#53,#27,pagination][s]: pagination support (fixes #27).
* Also refactor to have doc count (which is dataset info) outside of query editor.
2012-02-24 10:00:00 +00:00
Rufus Pollock
e32d541fc7 [#53,#27,view/query][s]: support for offset in query editor. 2012-02-24 09:59:30 +00:00
Rufus Pollock
aaa01b2191 [refactor,model,view][s]: add explicit query start, done and fail events for dataset and use them in DataExplorer to generate notifications. 2012-02-24 09:11:17 +00:00
Rufus Pollock
12bb498d52 [#53,view/query][s]: start on a query editor by factoring out current size/offset form out of DataExplorer into separate QueryEditor view.
* This is also necessary prep for #27 (pagination and offset support)
2012-02-22 22:02:38 +00:00
Rufus Pollock
1fd337e1d4 [#48,refactor][s]: rename DataTable to DataGrid - fixes #48. 2012-02-22 21:18:30 +00:00
Rufus Pollock
1abf2769bd [#48,view/grid][xs]: split out DataTable (soon to be Grid or DataGrid) into its own file. 2012-02-22 21:06:58 +00:00
Rufus Pollock
5b70170ec7 [#40,view][s]: add support for CellRenderer as argument to DataTable and DataTableRow (fixes #40). 2012-02-18 10:30:24 +00:00
Rufus Pollock
4074f380d8 [#25,view,refactor][s]: get views working with new field setup (fixes #25).
* One nastiness along the way (30m delay!) that is worth noting: flot graph was a problem because it turned out that a) (re-)render triggered by dataset attributes change and fields only got set *after* core dataset attributes and so info was rendering.
* model.test.js: basic test for Dataset.toTemplateJSON
2012-02-18 09:07:35 +00:00