1. 06 Dec, 2021 11 commits
  2. 03 Dec, 2021 5 commits
  3. 02 Dec, 2021 9 commits
  4. 01 Dec, 2021 5 commits
  5. 30 Nov, 2021 2 commits
  6. 29 Nov, 2021 8 commits
    • Robert Knight's avatar
      Call PortProvider.listen sooner · 8983aba1
      Robert Knight authored
      Call `listen` immediately after creating the PortProvider, before
      creating the sidebar.
      
      This will allow us to rule out the possibility that the sidebar sometimes fails
      to connect to the PortProvider because an error occurred in the annotator code
      after creating the sidebar iframe but before calling `PortProvider.listen`,
      resulting in the PortProvider listener not being created.
      8983aba1
    • Robert Knight's avatar
      Remove document_url metadata from Sentry reports · 62e9ea2e
      Robert Knight authored
      This has been replaced by the `hostURL` value in the `host_config`
      metadata, which comes from the `#config` fragment. The `hostURL` value
      should always contain the full URL, whereas `document_url` gets
      truncated to the origin in many browsers. Also the term `hostURL` more
      accurately reflects what the value is, since it may be different than
      the document for which the client is displaying annotations.
      62e9ea2e
    • Robert Knight's avatar
      Add client version and host URL to config passed to sidebar app · 4b36eaf9
      Robert Knight authored
       - Add the client version to the config so that we can rule out problems
         in the sidebar app because caused by a mismatch between the version
         of the client used in the annotator and the version used in the
         sidebar app.
      
       - Add the host URL to the config so that we can tell in Sentry reports
         which page embedded the client. Sentry reports currently have
         `document_url` metadata that is set using `document.referrer` in the
         sidebar app, but this gets truncated to the origin in some browsers.
      4b36eaf9
    • Robert Knight's avatar
      Do not copy nullish values in app config · 8e47fb13
      Robert Knight authored
      These are ignored by the sidebar app anyway, and they add noise to
      Sentry reports and logs.
      8e47fb13
    • Robert Knight's avatar
      Rename `createSidebarConfig` to `createAppConfig` and add tests · cc47a5c8
      Robert Knight authored
      Rename the function that prepares configuration to be passed from the
      annotator to the sidebar and notebook apps, since it is no longer used
      exclusively by the sidebar, and add tests.
      cc47a5c8
    • Robert Knight's avatar
      Fix adder font family · 4365a4d2
      Robert Knight authored
      Fix a regression after e7cdcc0d, which
      added the client's standard CSS reset to the annotator CSS bundle.
      
      The font-family used by the adder buttons was changed from the user agent's
      default for `<button>` elements to `inherit` by this reset. The result
      was that the font family would vary depending on the web page.
      
      Fix this by adding a `:host > *` selector which sets style properties for all
      shadow roots created by the annotator. This is the equivalent of the `body`
      selector in sidebar.scss.
      4365a4d2
    • dependabot[bot]'s avatar
      Bump prettier from 2.4.1 to 2.5.0 · 10f3c2b3
      dependabot[bot] authored
      Bumps [prettier](https://github.com/prettier/prettier) from 2.4.1 to 2.5.0.
      - [Release notes](https://github.com/prettier/prettier/releases)
      - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
      - [Commits](https://github.com/prettier/prettier/compare/2.4.1...2.5.0)
      
      ---
      updated-dependencies:
      - dependency-name: prettier
        dependency-type: direct:development
        update-type: version-update:semver-minor
      ...
      Signed-off-by: 's avatardependabot[bot] <support@github.com>
      10f3c2b3
    • Eduardo Sanz García's avatar
      Add prefix to distinguish provenance of `$tag` · 617f952c
      Eduardo Sanz García authored
      For debugging purposes having a prefix to indicate whether the annotation was created locally ('a:' for the annotator, 's:' for the sidebar) or fetched from the server may be useful.
      617f952c