1. 06 Dec, 2017 7 commits
    • Sean Hammond's avatar
      Update an out-of-date fake · b7e5cc3c
      Sean Hammond authored
      The fakeAccountID object in annotation-test.js was out of date: it
      contained only a username() function that annotation.js doesn't call
      anymore, and did not contain the isThirdPartyUser() function that
      annotation.js _does_ call.
      
      The tests were still passing because annotation.js's isThirdPartyUser()
      method, which call's account-id's isThirdPartyUser(), wasn't tested. Add
      an integration test for this method to catch this.
      
      I've also moved fakeAccountID out into its own variable with a name,
      instead of it just being an anonymous object literal. This makes it more
      explicit. For example if account-id's API is changed, you can just grep
      the code for fakeAccountID to find all the fakes that need to be
      updated.
      b7e5cc3c
    • Sean Hammond's avatar
      Move annotationComponent() into scope · 1ba899e4
      Sean Hammond authored
      Move the annotationComponent() function into the describe() scope nearer
      to where it's actually used. This puts the code nearer to where it's
      used and is going to be useful in the next commit when it's going to be
      changed to make use of one of the fake variables in that scope.
      1ba899e4
    • Sean Hammond's avatar
      Merge pull request #620 from hypothesis/dont-show-page-share-link-on-elife · 5d62b7cf
      Sean Hammond authored
      Don't show page share button on eLife pages
      5d62b7cf
    • Robert Knight's avatar
      Merge pull request #621 from hypothesis/remove-traces-of-persona · 05763de5
      Robert Knight authored
      Remove traces of persona.js
      05763de5
    • Sean Hammond's avatar
      Fix an out of date comment · 586c6620
      Sean Hammond authored
      persona.js was renamed to account-id.js.
      586c6620
    • Sean Hammond's avatar
      Fix an out of date proxyquire path · 86794b76
      Sean Hammond authored
      persona.js was moved to account-id.js in
      35f1a03d but this proxyquire call is
      still patching persona.js not account-id.js.
      86794b76
    • Sean Hammond's avatar
      Don't show page share button on eLife pages · d11be3fb
      Sean Hammond authored
      Don't show the "Share this page" button in the top-right of the sidebar
      on pages, such as eLife's, that have both an embedded Hypothesis client
      and a services config including their own `authority` string.
      
      The "Share this page" button is a Via link, and Via doesn't work with
      pages using a third-party authority config.
      
      Fixes https://github.com/hypothesis/client/issues/615
      d11be3fb
  2. 04 Dec, 2017 2 commits
  3. 01 Dec, 2017 4 commits
  4. 30 Nov, 2017 2 commits
  5. 29 Nov, 2017 4 commits
  6. 28 Nov, 2017 1 commit
  7. 24 Nov, 2017 1 commit
  8. 23 Nov, 2017 10 commits
  9. 22 Nov, 2017 6 commits
  10. 21 Nov, 2017 3 commits