1. 06 Sep, 2016 5 commits
  2. 05 Sep, 2016 1 commit
  3. 02 Sep, 2016 5 commits
  4. 30 Aug, 2016 1 commit
  5. 23 Aug, 2016 2 commits
  6. 19 Aug, 2016 4 commits
  7. 12 Aug, 2016 2 commits
  8. 11 Aug, 2016 1 commit
    • Robert Knight's avatar
      Use Shadow DOM to isolate adder from host page's CSS (#49) · 45ee38ce
      Robert Knight authored
      In browsers that support Shadow DOM (currently only Chrome, plus Firefox
      behind a feature flag), use it to isolate the adder from the host page's
      CSS.
      
      This fixes various problems where very generic CSS on the page could
      affect the adder's styling.
      45ee38ce
  9. 09 Aug, 2016 4 commits
  10. 08 Aug, 2016 5 commits
  11. 05 Aug, 2016 6 commits
  12. 04 Aug, 2016 4 commits
    • Robert Knight's avatar
      Switch back to the Annotations tab when the last orphan is removed · 856685f3
      Robert Knight authored
      When there are no orphans, the Orphans tab is not shown, so we need to
      switch back to the Annotations tab in that case.
      856685f3
    • Robert Knight's avatar
      Simplify tab counts calculation and move into a separate module · 8977ca5f
      Robert Knight authored
      Refactor some repetition in the functions that produced the counts for
      the Annotations, Page Notes and Orphans tabs and extract it into a
      separate module where it is easier to test.
      
      Moving this into a single function also makes it easier to memoize
      later, so we can avoid recalculating it when the list of annotations has
      not changed between two app states.
      8977ca5f
    • Robert Knight's avatar
    • Sheetal Umesh Kumar's avatar
      Separate anchored and unanchored annotations into tabs. · 054cb186
      Sheetal Umesh Kumar authored
      Default to the annotations tab when user switches between groups, clears a selection or reloads a page.
      The ANNOTATIONS_SYNCED event is emitted when annotations for a document have finished anchoring. Because annotations are not marked as orphans until they fail to anchor, select the annotations tab after they have finished anchoring.
      
      Test cases:
      -------------
      1. On page load localhost:3000
         annotations tab is selected.
         clicking on new note switches to the notes tab with a new draft created.
         switching between tabs maintains tab selection, if notes or annotations.
         when tab selected is orphans, changing groups defaults to the annotations tab.
      2. On page load localhost:3000/#annotations:<id>
         clicking on new page note should select the notes tab.
         When an annotation/note is selected, the tab selection carries between group changes.
         all tests listed in #1 above should apply.
      3. On page load  localhost:3000/#annotations:<orphan_id>
         clicking on “show all annotations and notes” selects the annotations tab and displays all annotations.
         all tests listed in #1 and #2 above should apply.
         switching between groups selects the annotations tab by default
      
      https://trello.com/c/1NVK2jwv/400-add-a-tab-for-unanchored-annotations
      https://trello.com/c/OLdLTlLT/342-separate-annotations-and-notes
      
      Hide orphans tab behind orphans_tab flag.
      
      Fix bug where notes tab isn't selected when user attempts to create a new page note.
      054cb186