1. 25 May, 2021 5 commits
  2. 24 May, 2021 9 commits
  3. 21 May, 2021 7 commits
  4. 20 May, 2021 2 commits
    • Eduardo Sanz García's avatar
      Display the annotation header on the top-level annotation · fcfde74a
      Eduardo Sanz García authored
      This PR ensures that the annotation header is always shown, even if the
      top-level annotation is hidden by a filter. The annotation header
      contains the document target. This information is specially important in
      the context of the notebook, where annotations from different documents
      are displayed together.
      
      I created a wrapper around the `AnnotationHeader` component. I couldn't
      use it directly because I needed a couple of methods from the store to
      mimic 100% the same behaviour as when `AnnotationHeader` is called
      through `Annotation` component.
      fcfde74a
    • Eduardo Sanz García's avatar
      Remove flag icon from annotation cards for LMS users · cf22b700
      Eduardo Sanz García authored
      1. Added an option (`allowFlagging`) in the service configuration to
         enable/disable flagging.
      
      2. Added logic in `AnnoationActionBar` component to hide the flag icon
         if the service configuration has the option `allowFlagging`.
      
      Closes https://github.com/hypothesis/product-backlog/issues/1126
      cf22b700
  5. 17 May, 2021 11 commits
  6. 14 May, 2021 2 commits
  7. 13 May, 2021 1 commit
    • Lyza Danger Gardner's avatar
      Add classname prefix to avoid conflicts with `frontend-shared` · 3b967dc6
      Lyza Danger Gardner authored
      Add a temporary class name prefix to the local `Panel` component styles.
      
      This will avoid conflicts with the styling for the new `Panel` component
      in the `frontend-shared` package.
      
      In the future:
      
      * This local `Panel` will be supplanted by the shared variant, and
      * Shared component classnames will be prefixed to avoid future conflicts
      3b967dc6
  8. 12 May, 2021 3 commits
    • Robert Knight's avatar
      Remove unused `store.getState` stubs in tests · 801b3fa8
      Robert Knight authored
      All of the components use selector methods now instead of accessing the
      store's internal state directly.
      801b3fa8
    • Robert Knight's avatar
      Use store selectors instead of `getState` in `FrameSyncService` · 0e523df3
      Robert Knight authored
      Remove the last remaining usage of `store.getState()` outside of the
      store implementation in favor of the `store.allAnnotations()` selector
      method.
      
      This allows simplifying the state structure in the fake store that the
      `FrameSyncService` tests create.
      0e523df3
    • Robert Knight's avatar
      Update export style and documentation for sidebar store · 4b7c566d
      Robert Knight authored
      Convert the `store/index.js` and `store/create-store.js` modules to use
      named rather than default exports per our current conventions, and
      revise the documentation.
      
      The goal of the revised documentation is to more clearly describe what the
      store is and how it is used within the sidebar/notebook app, assuming
      that the reader is likely have at least some familiarity with Redux (or
      can read the "Introduction" section of the linked website if not). In
      particular I have tried to convey:
      
       - The separation between the "base" `createStore` function which is not
         application-specific and the `createSidebarStore` function and the
         modules it uses which are
       - How the store in the sidebar app differs from a standard/base Redux store
       - Best practices around using the store from other parts of the app
         (use `useStoreProxy` in UI components, use selector and action
         methods rather than `getState` and `dispatch`)
      4b7c566d