1. 05 Jul, 2016 12 commits
  2. 04 Jul, 2016 7 commits
  3. 01 Jul, 2016 16 commits
  4. 30 Jun, 2016 5 commits
    • Robert Knight's avatar
      Merge pull request #1 from hypothesis/direct-document-link-from-stream · 8a5ab37d
      Robert Knight authored
      Show direct links on stream page when available (FIRST!)
      8a5ab37d
    • Alice Wyan's avatar
      Refactor domainAndTitle into smaller pieces · c4dea460
      Alice Wyan authored
      c4dea460
    • Robert Knight's avatar
      Use a file that actually exists as the test page content in the live reload server · 91b9a22d
      Robert Knight authored
      The CHANGES file is part of the 'h' repo and no longer exists in the
      'client' repo that was forked from it.
      91b9a22d
    • Alice Wyan's avatar
      Remove no longer needed auxiliary file document-domain.js · dc00cf4c
      Alice Wyan authored
      Move relevant tests to annotation-metadata-test.js, and fix a bug
      in annotation-metadata.js.
      dc00cf4c
    • Robert Knight's avatar
      Remove use of ngResource for search and annotation queries · 0d9217ec
      Robert Knight authored
      Several aspects of ngResource make it sub-optimal for our needs:
      
       1. It mutates the model object directly after making an API call, which
          does not fit well with usage in a Redux app where the UI state should
          be an immutable object.
      
       2. The ngResource classes can only be constructed once the API
          description has been retrieved. At least one place in our code,
          which handled newly created annotations arriving from the page,
          failed to account for this.
      
      This commit therefore replaces use of ngResource for making API calls
      to the search and annotation endpoints with a simple wrapper around HTTP
      requests which makes a call and then returns the resulting object.
      
      The new wrapper will wait until the API description has been received
      before attempting to make an API call, avoiding problem (2) above.
      
      As a bonus, this brings us a step towards decoupling the JS API client
      from Angular so we could re-use it outside the app in future.
      
       * Replace ngResource with simple $http wrapper in store.js
      
       * Add tests for annotation update and deletion API calls
      
       * Change tests in annotation-test.js from
         `assert(predicate(actual, expected))` form to
         `assert.predicate(actual, expected))` form as this results in errors
         that are _much_ easier to debug when they fail.
      0d9217ec