- 22 Sep, 2015 2 commits
-
-
Nick Stenning authored
70c9b9b broke a number of features of the h client that were toggled on for PDF documents, by renaming the Annotator PDF plugin from `Annotator.Plugin.PDF` to `Annotator.Plugin.Pdf`. While it's certainly an ugly side-effect of a straightforward rename, the problem is that `Guest#getDocumentInfo` (to pick one example) used `@plugins.PDF?` to determine whether to use the PDF metadata (provided by the PDF.js `PDFViewerApplication`). In the absence of PDF metadata, `getDocumentInfo` falls back to using `window.location.href`, which explains the behaviour identified in #2506. Fixes #2506.
-
Nick Stenning authored
Add make target to run karma tests with auto-watch enabled
-
- 21 Sep, 2015 6 commits
-
-
Sean Hammond authored
Show orphan annotations with a notice
-
Randall Leeds authored
The positions of the anchors are no longer needed.
-
Robert Knight authored
This provides a convenient way to start Karma tests and auto-run them when test files are changed. Because the test files are incorporated into a Browserify bundle by karma-browserify which watches files for changes via watchify(), we can turn off Karma's own watching of the test files. This fixes a problem where changing a test spec file would result in Karma running all the tests twice, once after the test spec file changed and then again afterwards due to the browserify bundle being updated a second or two after the test spec file changes.
-
Nick Stenning authored
DRY in .editorconfig and add SCSS settings
-
Nick Stenning authored
cf410d0 broke thread sorting by interfering with the (admittedly arcane) sort apparatus. There is a scope.watch in the AppController which is responsible for filling the `predicate` field of the `sort` object when the `name` field changes. In order for this to work, the controllers in child scopes (namely StreamController or WidgetController) need to modify the `name` property of the `sort` object in the parent scope, via prototypal inheritance, rather than replacing the entire `sort` object.
-
Nick Stenning authored
Clean up socket, threading, mapper with routing
-
- 18 Sep, 2015 1 commit
-
-
Randall Leeds authored
Move all the logic required to set up a clean environment for the client views into the dependency resolution mechanism of ngRoute. The annotation mapper gains an unloadAnnotations method to make the isolated code cleaner. Use angular-websocket to remove the need for our own socket class. The AppController becomes much more sane.
-
- 17 Sep, 2015 4 commits
-
-
Nick Stenning authored
Merge pull request #2475 from hypothesis/oWe60V8v-signal-when-there-are-public-annotations-on-a-page Signal when there are public annotations on a page in the Chrome extension icon
-
Sean Hammond authored
I was getting multiple test fails on Travis that were not failing locally, due to differences between my local Sinon and Travis's. Pinning Sinon to the latest version fixes this.
-
Sean Hammond authored
Add a simple user info dashboard for admins
-
Randall Leeds authored
-
- 16 Sep, 2015 1 commit
-
-
Nick Stenning authored
Allows administrators to look up user information from the administration panel.
-
- 15 Sep, 2015 8 commits
-
-
Randall Leeds authored
Close #1916
-
Randall Leeds authored
Installation docs corrections
-
Randall Leeds authored
Split host / sidebar and clean up plugin loading
-
Randall Leeds authored
-
Randall Leeds authored
Improve factoring of search/filtering
-
Randall Leeds authored
Refactor Pyramid routing and view configuration
-
Nick Stenning authored
Lenient search
-
Randall Leeds authored
More variable substitution becomes available.
-
- 12 Sep, 2015 3 commits
-
-
Randall Leeds authored
Keep weaning off jQuery.
-
Randall Leeds authored
-
Randall Leeds authored
Fix issues with Object.getOwnPropertyNames under PhantomJS.
-
- 11 Sep, 2015 4 commits
-
-
Randall Leeds authored
Let each frame just emit the event locally and invoke its own local method in response to the RPC call. The widget, acting as the hub of the communication bridge, stops infinite RPC loop by only propagating the call when it would change the state.
-
Randall Leeds authored
Publish to a group
-
Sean Hammond authored
-
Sean Hammond authored
Features ======== 1. If you have a group selected in the groups dropdown when you create an annotation, the annotation will be created in that group. 2. Only users who are members of the group can see the group's annotations. 3. An annotation can be separately set to public or private, whether it is in a group or not, using the separate visibility dropdown on the annotation card when creating or editing an annotation. Private means viewable by the user only, public means viewable by the group or by everyone if the annotation has no group. When in a group the group's name appears instead of "Public" in the user interface (and with a group icon instead of the public icon). So for example if I make an annotation in group Foobar I can set its visibility to Only Me or to Foobar. 4. New icons and styles for all the group-related parts of the UI, should look the same as in Jake's mockups now. Implementation Notes ==================== Auth ---- - We add `"group:<hashid>"` principals to `request.effective_principals` for each group the user is a member of. - The existing `"group:admin"` and `"group:staff"` principals are renamed to `"group:__admin__"` and `"group:__staff__"` so that they never clash with group hashids (hashids never contain _'s). - A user may only create an annotation in group "x" if they are themselves a member of group "x". This is enforced by an ACL in `h.api.resources`. - Users may only view annotations in groups of which they are members. This is enforced by a query filter in search: `h.api.groups.search`. - In `h.api.groups.logic`: A reply's group is always set to that of its parent, server-side. It doesn't matter what the client sends. Search Filtering ---------------- - Whether an annotation belongs to a group is recorded in a top-level `group` field in the annotation. The value of this field is the group's hashid. For example, it is currently possible to have a private annotation (visible only to the user who created it) within a group. This allows users to use the privacy controls for "drafting" group annotations and replies, only sharing them with the group when they're ready. It also allows users to keep private replies to group annotations. When the sidebar is focused on a group (not yet implemented), the search will filter the annotations to those that have the group's hashid in the group field, regardless of whether the annotation's permissions are private to the user or shared with the group. - The groups search filtering (`h.api.groups.search`) uses the top-level groups field to filter out annotations that belong to groups that the user isn't a member of. - Annotations that are public simply have a group field containing `__world__`. Client-Side ----------- - `annotation.coffee` sets the group field on the annotation before saving it. - There's a new group-list-controller to handle the now more interactive groups dropdown. - And a group-service to share state about which group is currently focused with different parts of the code. Misc ---- - `h.streamer`: Infinite scroll and live updates filter out annotations from groups the user isn't a member of, as well. - `h.api.search.transform`: the API adds group: '__world__' to any annotations without a group field before returning them to the client.
-
- 10 Sep, 2015 2 commits
-
-
Randall Leeds authored
-
Randall Leeds authored
-
- 29 Aug, 2015 1 commit
-
-
Randall Leeds authored
Add clickToClose option
-
- 28 Aug, 2015 3 commits
-
-
Randall Leeds authored
Don't show CC0 license on Only Me annotations
-
Sean Hammond authored
-
Jake Hartnell authored
-
- 25 Aug, 2015 5 commits
-
-
Randall Leeds authored
-
Randall Leeds authored
-
Randall Leeds authored
The js-polyfills library is a nice one. It provides enough for PhantomJS and it provides the URL polyfill. However, we keep core-js since for production it's better to have the lightweight requirement of just the es6.promise module without global namespace pollution. We tolerate pollution of the global namespace for browsers with a broken or absent URL constructor implementation.
-
Randall Leeds authored
Annotating under IE10 works now!
-
Randall Leeds authored
With this change, there is no longer any patching of the global object from node-iterator-shim. I believe that's the end of all the global patching in all of our code. Only Annotator and jQuery remain in the global space, but both are removed with noConflict. Nice and clean.
-