1. 04 Jun, 2019 1 commit
    • Hannah Stepanek's avatar
      Cleanup util time tests · 5957b12d
      Hannah Stepanek authored
      - Use now variable instead of walking the clock.
      - Use iso format instead of seconds.
      - Pass a Date object instead of an iso format to time.<methods>so
      the methods off the Date object can be mocked in order to avoid
      timezone specific tests. Since methods like getFullYear output the
      year in whatever timezone the operating system is set to, these
      methods must be mocked/mapped to their UTC equivalents when testing
      such as getUTCFullYear.
      - Remove offseting of time based on timezone as this is now covered
      by mocking the getFullYear method and not needed for the decayInterval
      as that only cares about time deltas.
      5957b12d
  2. 23 Apr, 2019 3 commits
  3. 22 Apr, 2019 16 commits
  4. 20 Apr, 2019 8 commits
  5. 19 Apr, 2019 1 commit
  6. 18 Apr, 2019 2 commits
    • Hannah Stepanek's avatar
      95884580
    • Robert Knight's avatar
      Remove fragment anchoring support · f8784b2c
      Robert Knight authored
      dom-anchor-fragment is shipped as a UMD module which causes problems on
      pages that declare a global function called `define` (see #479).
      
      While we could fix the module, fragment anchoring is not very useful at
      the moment. The client primarily anchors to the quote and uses other
      anchors only as an optimization. The Wikipedia baseline tests changed in
      this PR show how little value a fragment has on real websites.
      Therefore, just remove support for generating and using fragment selectors.
      
      This change should not cause anchoring regressions, as anchoring would
      only have succeeded previously if the quote selector matched. Now it will just
      fall through to anchoring using the range, position or quote selectors instead.
      
      Fixes #479
      f8784b2c
  7. 17 Apr, 2019 2 commits
    • Hannah Stepanek's avatar
      Merge pull request #1070 from hypothesis/faster-group-selectors · a63ef4a6
      Hannah Stepanek authored
      Make group selectors more efficient
      a63ef4a6
    • Robert Knight's avatar
      Make group selectors more efficient · ea09632a
      Robert Knight authored
      Ensure that selectors for getting the "My groups", "Currently viewing
      groups" and "Featured groups" lists only recompute when the groups state
      changes. Previously they would have recomputed when _any_ part of the state changed.
      
      More generally, we should be using `createSelector` rather than
      `memoize` whenever we have a place in the app that needs to extract a subset
      of data from some larger structure and derive some data from that.
      ea09632a
  8. 15 Apr, 2019 7 commits