1. 07 Jul, 2023 3 commits
    • Lyza Danger Gardner's avatar
      Use `rounded` instead of `rounded-sm` · 4f3f3014
      Lyza Danger Gardner authored
      In component styles where the intent is to match the default border
      radius sizing, use unqualified `rounded` instead of `rounded-sm`. The
      default border radius happens to be 2px, which is equivalent to the
      default `rounded-sm` value out of the box with Tailwind, but the intent
      is instead "use the default border radius size".
      
      Add a border-radius default to tailwind config.
      4f3f3014
    • Lyza Danger Gardner's avatar
      Use pixel (arbitrary) values instead of default `rounded` styles · e14e8d5e
      Lyza Danger Gardner authored
      Update component styles that use `rounded` without size qualification.
      The intent here was for a border radius that was larger than the
      standard border-radius pattern. Tailwind default for `rounded` is 4px,
      so this worked, but this breaks down if we want to change the pattern
      default border radius. Update these to be explicit about radius size so
      that we may set a default `rounded `value, and, in future, adjust it
      without breaking styling on these components.
      e14e8d5e
    • Alejandro Celaya's avatar
      df10f49e
  2. 06 Jul, 2023 10 commits
  3. 05 Jul, 2023 1 commit
    • Robert Knight's avatar
      Eliminate a few coverage misses · fc5b7603
      Robert Knight authored
       - Remove unused `default`s for `switch` statements
       - Fix coverage misses related to un-evaluated default arguments by either:
      
         - Removing the default if we always set the argument
         - Removing overrides in tests which are the same as the default
         - Ignoring the defaults for coverage purposes
      fc5b7603
  4. 04 Jul, 2023 1 commit
    • Robert Knight's avatar
      Prevent side-by-side state getting out of sync between Guest and Integration · 79484cdd
      Robert Knight authored
      Both the `Guest` and `HTMLIntegration` maintained separate state for whether
      side-by-side mode was active or not. These states could get out of sync if the
      side-by-side feature flag was disabled when the guest first called
      `fitSideBySide` and then later enabled, as a result of the user logging into a
      different profile. In that case side-by-side would be enabled from the
      integration's perspective, but `Guest._sideBySideActive` would remain false.
      
      More generally this mismatch could occur in future if, for any reason, the
      integration decided to disable side-by-side outside of the context of a call to
      `fitSideBySide`.
      
      The result of this error was that clicking somewhere in the page would cause the
      sidebar to close, because the Guest thought that side-by-side was disabled, even
      though it was actually active.
      79484cdd
  5. 03 Jul, 2023 10 commits
  6. 29 Jun, 2023 2 commits
  7. 26 Jun, 2023 10 commits
  8. 23 Jun, 2023 1 commit
  9. 22 Jun, 2023 2 commits
    • Robert Knight's avatar
      Await `_scrollToAnchor` result · 3bf184ab
      Robert Knight authored
      This doesn't have a functional consequence, but it is generally appropriate for
      async methods not to return until all the work they initiate is done.
      3bf184ab
    • Robert Knight's avatar
      Make top/bottom bucket scrolling work when using a custom bucket container · 6d76d194
      Robert Knight authored
      When using a custom bucket container, the top / bottom buckets may be positioned
      differently than the code previously assumed (137x px below the top of the
      viewport, 20px above the bottom). Redo the logic to work regardless of bucket
      container positioning. Instead of trying to determine whether an anchor is
      on-screen or not, just pick the anchor with the lowest bottom or highest top as
      the "nearest" one, depending on which direction we are scrolling in.
      
      This is implemented by:
      
       - Changing `Bucket` objects to record not just the tags from anchors in
         them, but the list of `AnchorPosition` objects from which the bucket
         was built. These objects include the top and bottom positions of the
         anchor.
      
       - Make clicking on the "Up" bucket search the anchor list for the
         anchor with the lowest bottom position, and send a request to the
         guest to scroll to that anchor.
      
       - Make clicking on the "Down" bucket search the anchor list for the
         anchor with the highest top position, and send a request to the
         guest to scroll to that anchor.
      
       - Removing all the logic for finding and scrolling to the "nearest
         off-screen anchor"
      6d76d194