1. 16 May, 2017 4 commits
    • Robert Knight's avatar
      Update to latest Node v6.x release · ea3cf49f
      Robert Knight authored
      Package installation fails with Node v6.2 due to an incompatible
      "check-dependencies" package. See
      https://travis-ci.org/hypothesis/client/jobs/228937886
      ea3cf49f
    • Robert Knight's avatar
      Re-create Yarn lockfile from scratch · ea4c57e4
      Robert Knight authored
      There were a couple of issues with the initial Yarn lockfile created via
      `yarn import`:
      
      1. `yarn check` reported several inconsistencies.
      
      2. `phantomjs-prebuilt` needed to be upgraded to resolve a compatibility
         issue with Yarn.
      
      This commit resolves these issues by just removing and recreating the
      Yarn lockfile. In the process all dependencies have been upgraded to the
      latest versions compatible with the constraints in package.json.
      ea4c57e4
    • Robert Knight's avatar
      Switch from npm to yarn for package management · e8f08d46
      Robert Knight authored
      Yarn provides much faster package installation, better resilience to npm
      registry connection issues and most importantly for us, a much better
      lockfile format.
      
      This commit:
      
      1. Replaces the npm shrinkwrap with the yarn lockfile using the
         following steps:
      
         1. Checkout latest version of master
      
         2. Remove node_modules folder and re-run `npm install`
      
         3. Run `yarn import` to generate a lockfile
      
      2. Modifies the Makefile, Jenkinsfile, package.json and .travis.yml
         scripts to run `yarn` instead of `npm`.
      e8f08d46
    • Robert Knight's avatar
      1.16.0 · 7d041803
      Robert Knight authored
      7d041803
  2. 15 May, 2017 3 commits
  3. 12 May, 2017 4 commits
  4. 09 May, 2017 4 commits
  5. 04 May, 2017 2 commits
  6. 27 Apr, 2017 2 commits
    • Sean Hammond's avatar
      f2f5775f
    • Sean Hammond's avatar
      Improve error when flagging when logged out · cd22ae61
      Sean Hammond authored
      Improve the error message that's shown to the user when trying to flag
      an annotation while logged out.
      
      Instead of showing a "404 Not Found. Either the resource you requested
      doesn't exist, or you are not currently authorized to see it." error
      from the server, show a friendlier "You must be logged in to report an
      annotation" message.
      
      This is done client-side by checking whether the user is logged in when
      they click the flag button, and if not showing an error instead of
      sending the flag request to the API. This is because the API doesn't
      respond with a unique "You must be logged in to flag" error that the
      client could depend on, it just returns a 404, which could be for a
      number of reasons (e.g. the annotation no longer exists).
      cd22ae61
  7. 26 Apr, 2017 1 commit
    • Sean Hammond's avatar
      Clarify in tooltip what flag button does · e64fa192
      Sean Hammond authored
      The flag button on an annotation has a tooltip that says simply "Flag"
      (or "Annotation has been flagged" if it's already flagged) but there's
      no indication to the user what flagging is or does (even when they click
      the button, all that happens is the flag turns red).
      
      "Flagging" can certainly be misinterpreted. I think some apps use it as
      a way to keep track of "special" or "favorite" items (usually called
      "starring" in most modern apps), or have a variety of different "flags"
      that you can apply to an email or whatever it is (important, work,
      personal, etc, this is usually called "tagging" or "labelling" in most
      modern apps).
      
      This commit changes the tooltips to clarify that what the button does is
      report the annotation to the moderators. I've used the verb "report"
      rather than "flag" as I think "Report this annotation to the moderators"
      sounds better than "Flag this annotation to the moderators".  Either way
      I think "to the moderators" is important to clarify that this button
      sends a message to the moderators and isn't, for example, just flagging
      for personal use like starring / tagging / labeling.
      e64fa192
  8. 24 Apr, 2017 11 commits
  9. 21 Apr, 2017 2 commits
  10. 20 Apr, 2017 6 commits
  11. 19 Apr, 2017 1 commit