Rufus Pollock
c6d4116cba
[#79,refactor][s]: switch from (old) jquery.mustache to latest mustache.js - fixes #79 .
...
* This mustache has support for nested values e.g. {{sub.x.y}}
* Specifically mustache.js as of Fri Feb 24 09:58:31 2012 +0100 2f135e2e15dcc3c61385212261faaf00597bae10
2012-05-27 01:27:26 +01:00
Rufus Pollock
bc8e47c6cf
[#128,test][xs]: file renames in test/index.html to match csv rename in ed4f315a97995056c2fd9bf81268063259b76956.
2012-05-27 01:25:00 +01:00
Rufus Pollock
13d1a9e0bd
[#128,state][s]: move to simpler state serialization for backend/dataset in which we just store url attribute of dataset (if present).
2012-05-26 22:51:50 +01:00
Rufus Pollock
ed4f315a97
[#128,backend/csv][s]: rename localcsv to csv and make into a module recline.Backend.CSv.
2012-05-26 19:00:39 +01:00
Rufus Pollock
feaaf78639
[#128,backend/gdocs][s]: minor refactoring to make cleaner and have it actually work.
2012-05-26 18:07:36 +01:00
Rufus Pollock
e9d1b8a55a
[#128,backend/gdoc][s]: refactor gdocs to standard backend setup.
2012-05-26 17:46:51 +01:00
Rufus Pollock
5890007c59
[#128,backend/dataproxy][s]: refactor to new setup.
2012-05-26 16:20:18 +01:00
Rufus Pollock
fae1496eb2
[test,refactor][xs]: rename memory test to memory.test.js.
2012-05-26 16:06:14 +01:00
Rufus Pollock
1bc8c77098
[#128,backend/elasticsearch][m]: rework elasticsearch model to new cleaner setup.
2012-05-26 15:53:59 +01:00
Rufus Pollock
23b32dff1c
[#128,backend/memory,misc][l]: commence major backend refactor by converting recline.Backend.Memory to module and splitting existing code into BackboneSyncer and DataWrapper.
...
* Lots of other changes to having passing tests (note some actual functionality is likely a little broken esp around state serialization and the app)
2012-05-26 14:26:01 +01:00
Rufus Pollock
39c72aef13
[test,refactor][xs]: move backend tests to test/backend/memory.js.
2012-05-25 21:26:35 +01:00
Rufus Pollock
e2b1b9f545
[#73,view/timeline][m]: many improvements to timeline - now pretty functional.
...
* reload data on query updates
* attempting to guess start date and end date fields.
* avoid initting multiple times
* refactor to be cleaner
2012-05-24 21:53:04 +01:00
Rufus Pollock
b4255ef18f
[model][s]: default string renderer will linkify http://... links.
2012-05-24 00:30:35 +01:00
Rufus Pollock
61b1482d99
[#73,view/timeline][l]: functioning timeline view using VeriteCo Timeline library.
...
* *Much* still to do such as auto-selection of date field, checking for end date, parsing of dates, generation of summary text etc
2012-05-22 16:57:17 +01:00
Rufus Pollock
62a790ceb9
[view/map,bugfix,refactor][s]: correct bug due to misinterpretation (?) of Backbone reset and refactor so we redraw on initialize.
...
* Bug: dataset.currentDocuments.reset was being interpreted as empty rather than a re-fill of new documents and was therefore not re-adding currentDocuments items to the list of features. Fixed this.
* Discovered bug during a refactor. Refactor removed listener for query:done as this will be covered by currentDocuments.reset or similar. This also means we can initialize the view with a dataset already containing data and it will render w/o need to call query() again.
2012-05-20 13:43:33 +01:00
Rufus Pollock
4ceae82a18
[test/base][xs]: micro tweak to test data so we have more interesting graph.
2012-05-07 18:51:10 +01:00
Rufus Pollock
9d084fc46c
[addendum][xs]: ... and remove jquery-ui ref from tests.
2012-04-26 22:40:34 +01:00
Rufus Pollock
6d94c89b7c
[refactor,util][s]: move query string parsing and manipulation utilities into util.js.
2012-04-26 22:06:11 +01:00
Rufus Pollock
706819e288
[test][xs]: remove element after test.
2012-04-26 16:05:43 +01:00
Rufus Pollock
1df82c3c3d
[#75,view/graph][s]: if type of x-axis field is date make flot graph treat it as a datetime - fixes #75 .
...
* TODO / problems: have hard-coded ticks to be yyyy-MMM but that may not work well for all time series (may need to guess this from the resolution of the data or allow user to configure)
2012-04-25 23:23:13 +01:00
Rufus Pollock
82ca51a0b6
[#85,view-graph][m]: graph controls are now correctly configure themselves from loaded state.
...
* Also heavily refactor to have a cleaner and better code e.g. using templating to add new series.
2012-04-25 22:12:42 +01:00
amercader
33cf962a5b
[build,tests] Fix built.html and add tests against the built version
2012-04-25 12:50:16 +01:00
amercader
3597974469
[view/map] Don't show GeoJSON geometries in the popup as they can be quite big
2012-04-24 18:42:52 +01:00
amercader
6749e38b07
[view/map,tests] Add tests for the Map view
2012-04-24 18:34:36 +01:00
amercader
7def51b573
[backend/localcsv] Add support for defining the text delimiter on CSV files
2012-04-23 18:23:44 +01:00
Rufus Pollock
1bf64c5f94
[#61,backend/elasticsearch][m]: create, update and delete support in elasticsearch backend -- fixes #61 .
2012-04-22 22:17:47 +01:00
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
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
60b7f19f71
[vendor,refactor][xs]: lay vendor directory in consistent way ({lib}/{version}/{js-file}).
2012-04-17 12:53:11 +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
53e099beda
[test][xs]: make fixtures dataset same as for demo.
2012-04-16 15:15:59 +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
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
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
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
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
e695924149
CSV file loading supports file separator
2012-04-14 14:14:15 -03: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
05293cbb6f
[#45,test/view][s]: start on some basic tests for data explorer view.
2012-04-14 11:37:52 +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
Rufus Pollock
92f1fba38d
[refactor][xs]: rename view test to view-grid test.
2012-04-13 19:02:11 +01:00