1. 28 May, 2020 2 commits
  2. 27 May, 2020 5 commits
  3. 26 May, 2020 7 commits
  4. 25 May, 2020 8 commits
  5. 21 May, 2020 10 commits
  6. 20 May, 2020 6 commits
  7. 19 May, 2020 2 commits
    • Robert Knight's avatar
      Improve handling of annotation fetch error in single annotation view · 23a13091
      Robert Knight authored
      Previously if the user visited a `/a/<ID>` URL and the request to fetch
      the annotation failed with a 404 then the user would see a blank page.
      If the fetch failed because the annotation was private, logging in did
      not cause the annotation to be fetched.
      
      This commit resolves the two issues:
      
       - When the logged-in user changes, re-fetch the annotation
       - If the annotation fetch fails, an "Annotation unavailable" message is
         shown. This currently repurposes the error that is shown when a
         direct-linked annotation fetch fails, but without the "Clear
         selection" button.
      
      This commit also fixes an issue where a direct link to a group that
      could not be fetched would show a "Clear selection" button even though
      there was no active selection to clear. That button is only needed when
      following a direct link to an annotation.
      23a13091
    • Lyza Danger Gardner's avatar
      Change `isLoading` state to include if annotations have ever been fetched · 7ee719ab
      Lyza Danger Gardner authored
      For the places in the application that we care about whether “things are
      currently loading”, whether annotations have ever been fetched is relevant.
      Consider the application to be loading if there are any in-flight API
      requests OR annotations have never been successfully loaded.
      7ee719ab