1. 26 Mar, 2018 2 commits
    • Robert Knight's avatar
      Extract `createStore` helper out of `store` service · b11b3519
      Robert Knight authored
      The `store` factory function contains some useful logic for composing a
      store out of a set of _modules_ which handle different parts of the
      application state, exposing the actions and selectors from each module
      as methods on the store.
      
      To facilitate re-use of this logic in tests and to make it easier to
      test this logic directly, extract it out of the `store` function into a
      separate `createStore` helper.
      
      Doing this enables removal of `modules/index.js` which existed to
      combine parts of the modules together.
      b11b3519
    • Sean Hammond's avatar
      Merge pull request #695 from hypothesis/rename-annotationui-to-store · cf10d9f3
      Sean Hammond authored
      Rename "annotationUI" => "store"
      cf10d9f3
  2. 22 Mar, 2018 11 commits
  3. 21 Mar, 2018 7 commits
  4. 20 Mar, 2018 8 commits
  5. 19 Mar, 2018 1 commit
    • Robert Knight's avatar
      Rename src/sidebar/{store => services/api} · db95bfeb
      Robert Knight authored
      Give the service which provides a client for the Hypothesis API a more
      obvious name and place it in a `services/` dir in accordance with the
      plan outlined in #687. The previous name of "store" was particularly
      confusing because of the existence of another kind of unrelated store
      (the Redux one) in the application.
      
      The service was previously registered with the `factory` method but has
      the same structure as all the other services which are registered with
      `service`, so I changed that for consistency.
      db95bfeb
  6. 16 Mar, 2018 2 commits
  7. 12 Mar, 2018 2 commits
  8. 08 Mar, 2018 5 commits
  9. 07 Mar, 2018 2 commits
    • Hannah Stepanek's avatar
      Add tests for selecting page tab when only notes · 4de125b6
      Hannah Stepanek authored
      This adds two tests that verify the annotations tab is selected
      when there are annotations present and the page notes tab is
      selected when only page notes are present.
      4de125b6
    • Hannah Stepanek's avatar
      Default sidebar tab to notes when only page notes · cca9dabd
      Hannah Stepanek authored
      Change the default tab to focus on page notes when there are
      no annotations and only page notes in a group. This way it
      directs the user where they need to go. Less clicking == yay!
      If there are no annotations at all, the annotations tab should
      be selected.
      cca9dabd