1. 06 Apr, 2016 8 commits
    • Nick Stenning's avatar
      Merge pull request #3180 from hypothesis/296-scroll-when-expanding-quote · 1e073803
      Nick Stenning authored
      Scroll to annotation when clicking at bottom of collapsed quote
      1e073803
    • Nick Stenning's avatar
      Merge pull request #3179 from hypothesis/314-annotation-sort-order · 7826718d
      Nick Stenning authored
      Fix 'Location' sort order for annotations
      7826718d
    • Nick Stenning's avatar
      Merge pull request #3173 from hypothesis/use-require-for-templates · 349c5a4e
      Nick Stenning authored
      Use require() for templates
      349c5a4e
    • Robert Knight's avatar
      Specify stringify transform in package.json · af8e6f6f
      Robert Knight authored
      For consistency with how other transforms are specified, specify the
      stringify transform in package.json instead of in code in the
      create-bundle.js script and the Karma config.
      af8e6f6f
    • Robert Knight's avatar
      Remove Angular template preprocessor from tests · d82a52b9
      Robert Knight authored
      Since components now require() their own templates, it is no longer
      necessary to use a preprocessor to load them.
      d82a52b9
    • Robert Knight's avatar
      Require templates with require() in components · 25d03849
      Robert Knight authored
      Include Angular component templates as strings in the app bundle using
      the stringify Browserify transform and use them from directives using
      'template' instead of 'templateUrl'.
      
      This is faster, because it avoids going through the async $http
      machinery to load templates, but it is also synchronous, which generally
      means fewer surprises due to async template loading and specifically in
      the context of the <excerpt> directive will be useful as it will make it
      possible for the <excerpt> directive to measure the height of its
      content in the link function, because all components inside the
      exercept's content will have been fully resolved at that point.
      25d03849
    • Robert Knight's avatar
      Scroll to annotation when clicking at bottom of collapsed quote · d888bb57
      Robert Knight authored
      Collapsed quotes can be expanded either explicitly by clicking the
      'More' link on the quote or 'implicitly' by clicking anywhere at the
      bottom of the quote. In that case, the clicked annotation should
      be scrolled into view.
      
      This commit separates the behavior when clicking on the toggle link vs
      clicking at the bottom of the card.
      
      In the template, the bottom area has been moved before the inline
      controls so that the inline controls are above the bottom area and
      receive click events first.
      d888bb57
    • Robert Knight's avatar
      Fix 'Location' sort order for annotations · 0a69ccd0
      Robert Knight authored
      1398661 extracted the code for getting a location from an annotation
      into a separate module. However that function expects an Annotation but
      the sort predicate function was being passed a Thread.
      
      Consequently the predicate function was returning
      Number.POSITIVE_INFINITY for every thread and so sort ordering fell back
      to the default 'tie-breaker' comparator - which is the original index of
      the element in the list being sorted.
      
      Fixes #3106
      0a69ccd0
  2. 05 Apr, 2016 4 commits
    • Christof Dorner's avatar
      Merge pull request #3151 from hypothesis/postgres-write-models · 17e6556c
      Christof Dorner authored
      Postgres Write 2/4: Model code for creating new annotations in Postgres
      17e6556c
    • Nick Stenning's avatar
      Merge pull request #3038 from hypothesis/client-live-reload · e80973ec
      Nick Stenning authored
      Live reload development tool for Hypothesis client
      e80973ec
    • Robert Knight's avatar
      Debounce live-reload notifications · 386e3552
      Robert Knight authored
      If multiple asset bundles are regenerated in quick succession, including
      JS or template files, the client might try to reload whilst some of the
      bundles are still being regenerated, resulting in the client failing to
      load.
      
      This commit reduces the likelihood of this happening by debouncing
      live-reload notifications and makes a note of the issue.
      386e3552
    • Robert Knight's avatar
      Live reload dev tool for the Hypothesis client · 70f5676d
      Robert Knight authored
      This implements support and a test environment
      in which the Hypothesis client can live reload
      when scripts, styles etc. are changed.
      
      Live reloading when scripts change currently requires
      support from the hosting page.
      
      There are two parts to this:
      
       - A server which serves test pages
         with the Hypothesis client embedded and notifies
         it when front-end assets (styles, scripts) are changed.
      
         Test pages are served at http://localhost:3000/<any path>
         by default.
      
       - A small client script which connects to the server and
         listens for notifications of asset changes.
      
         When styles change it will reload styles for the page.
      
         When scripts or Angular templates change it will send a
         request to the top-level page to reload.
      
         This enables reloading to work when changing
         both the sidebar app and Annotator code but also avoids
         the need to manually unload the existing Annotator instance
         before reloading.
      70f5676d
  3. 04 Apr, 2016 2 commits
  4. 01 Apr, 2016 17 commits
  5. 31 Mar, 2016 4 commits
  6. 30 Mar, 2016 5 commits