- 16 Jul, 2014 9 commits
-
-
Randall Leeds authored
When a query parameter is used twice in search or the same facet is selected twice in the search input handle it the same way. - Remove special code for multi-value filter clauses - Remove special parsing of text facet, which seems to have been added by mistake (the space-delimited text field might come from the text field being the default remainder field, meaning it takes the left-over text in the search box which doesn't match a facet)
-
Randall Leeds authored
-
Randall Leeds authored
-
Randall Leeds authored
Close #1291
-
Randall Leeds authored
-
Randall Leeds authored
Don't initialize the updater twice when logged in. When the session is first loaded, only initialize the updater if there are no logged in users in the session. If there are, the updater will be initialized by the watcher. Fix #1307
-
Randall Leeds authored
Failure to do this results in an infinite loop of reconnections.
-
Randall Leeds authored
Rather than using extra events to trigger a round trip through the visual search directive callbacks and query parsing, simply rely on $location.search() at the time the route controller is instantiated and stop using `reloadOnSearch: false` in the route definitions so that changes to the search trigger a refresh of the view. The QueryParser now splits `populateFilter` into `parseModels` and `populateFilter` so that the models can be parsed when the visual search callback fires and the filter can be populated separately from the query string after the route reload. Summary of improvements: - Drop the VSSearch and RefreshSearch events. - Make the search.query scope property a simple value instead of a function. This reduces the work required for the watcher and is possible because we no longer update the query string unless the query changes and the route will reload if it does. - Clearing the stream is no longer necessary, since it starts clear on each route reload.
-
Randall Leeds authored
This refactor turns the stream page a part of our main H application Main features: * Stream is now accessible from our app at the /stream angular route * Stream has the same header (same look, same code) as the main app * Authentication from the stream page is now possible * The same visualsearch-bar is used both for page- and stream search * Stream page now uses our viewer.html to show annotation cards. * Replying to/editing/deleting annotations can be done in the stream page too. Details * streamsearch.pt is obsolete and has been delete because app.pt is used instead of it. * streamviewer.html is obsolete and has been deleted because viewer.html is used instead of it. * The QueryParser class is moved into the streamfilter.coffee and available is a new service for the app. * The visualsearch directive now uses functions living in the <current scope>.search object that any part of the app can configure it.
-
- 15 Jul, 2014 7 commits
-
-
Randall Leeds authored
This isn't here yet, and we shouldn't do it like this. We should probably use SASS to include it in "form input" rules or we should add it to the templates.
-
Randall Leeds authored
-
Randall Leeds authored
-
Randall Leeds authored
-
Randall Leeds authored
Add basic test framework for the Angular app
-
Randall Leeds authored
-
Aron Carroll authored
-
- 14 Jul, 2014 3 commits
-
-
Aron Carroll authored
Also refactored the directive to remove the dependency on the controller. The ng-model attribute is still required but only to set the scope.
-
Aron Carroll authored
-
Aron Carroll authored
Using Karma, Angular Mocks, Chai and Sinon.
-
- 10 Jul, 2014 1 commit
-
-
Randall Leeds authored
Improve debug toolbar integration
-
- 09 Jul, 2014 2 commits
-
-
Randall Leeds authored
Restore default view to 'Screen'
-
Ujvari Gergely authored
As a part of the fix for #1231 in commit https://github.com/hypothesis/h/commit/f66448fc3b2d1e07cbb491db73367b4b69e5f9a6 the default view was change to 'Document' from 'Screen' but the annotations were not loaded into the sidebar as supposed for 'Document' view, because the applyView was called before the annotations were loaded. Since it'd take effort to correctly implement Document view update when the store loads new annotations, it is feasible to return to the original 'Screen' view, which works well, because views are planned to be refined, maybe redesigned. Fix #1276
-
- 08 Jul, 2014 4 commits
-
-
gergely-ujvari authored
Delay authentication timeout on scope updates
-
Aron Carroll authored
WebSocket tweaks
-
Randall Leeds authored
Fix #1286
-
Randall Leeds authored
It makes a lot more sense to start the websocket connection as soon as the session is loaded, rather than using an arbitrary delay time of five seconds.
-
- 07 Jul, 2014 2 commits
-
-
Randall Leeds authored
Fix two issues with the authentication timeouts. - Fix #1284, the regression causing resets to always occur, introduced by e4f32116fe5f266e2030a666f5cc912b6b3df308 - Flash a message when the reset happens. Close #1280 - Increased the timeout to five minutes, as per suggestion by @dwhly
-
Randall Leeds authored
Improved form errors
-
- 02 Jul, 2014 4 commits
-
-
Randall Leeds authored
Update uri mapping, use match query
-
Ujvari Gergely authored
ES Query_type is introduced as an option for our stream filter. This way the streaming backend can generate our regular, query_string and match query. Our uri field will use match query for perfomance improvement
-
Ujvari Gergely authored
-
Ujvari Gergely authored
To move away from ES query_string, new mapping for the uri fields should be introduced. For the index_analyzer we use the pattern_capture filter to be able to split the uri field to our desire.
-
- 01 Jul, 2014 5 commits
-
-
Randall Leeds authored
This is a step better than flash messages. It could be reworked to inline above the submit button, or elsewhere, easily by changing the template.
-
Randall Leeds authored
-
Randall Leeds authored
-
Randall Leeds authored
-
Randall Leeds authored
-
- 30 Jun, 2014 1 commit
-
-
Randall Leeds authored
It's clearer if the form clears itself through a reset rather than waiting for it to happen later. This has the advantage of getting the password out of reachable memory sooner. Extending the scope rather than erasing its keys and replacing it with the base scope means the Auth controller can clear the form fields without clearing the session data in the scope.
-
- 28 Jun, 2014 2 commits
-
-
Randall Leeds authored
Fix regressions in auth errors and state resume
-
Randall Leeds authored
Refactor the reset scope event for quicker app startup and stop using the reserved prefix that angular uses. - Rename $reset to reset - At the App controller, invoke the initialization code immediately rather than broadcasting an event. Every component should start by initializing itself rather than waiting for an event to be broadcast.
-