- 15 Apr, 2020 2 commits
-
-
Robert Knight authored
-
Robert Knight authored
This will be used to streamline a common pattern in our code for reacting to changes in state selected from the central Redux store. The utility is a standalone function rather than a method of the store so that it can easily be used with mock stores and also other data sources in future. ``` watch( store.subscribe, () => store.getState().someValue, (currentValue, prevValue) => { /* Handle change */ }, ); ```
-
- 14 Apr, 2020 4 commits
-
-
Robert Knight authored
Improve readability of PDF highlights
-
Robert Knight authored
These highlights are used to enable various Hypothesis UI interactions for annotated content on PDF pages which are not yet rendered. They should be visually hidden however. The highlight in the text layer is hidden by the `annotator-placeholder` CSS class. We also need to avoid creating an SVG highlight.
-
Robert Knight authored
-
Robert Knight authored
Bump karma from 4.4.1 to 5.0.1
-
- 13 Apr, 2020 20 commits
-
-
Robert Knight authored
Bump core-js from 3.6.4 to 3.6.5
-
Robert Knight authored
Bump autoprefixer from 9.7.5 to 9.7.6
-
Robert Knight authored
Bump escape-string-regexp from 1.0.5 to 3.0.0
-
Robert Knight authored
Bump sinon from 9.0.1 to 9.0.2
-
dependabot-preview[bot] authored
Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 9.7.5 to 9.7.6. - [Release notes](https://github.com/postcss/autoprefixer/releases) - [Changelog](https://github.com/postcss/autoprefixer/blob/master/CHANGELOG.md) - [Commits](https://github.com/postcss/autoprefixer/compare/9.7.5...9.7.6) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
dependabot-preview[bot] authored
Bumps [@octokit/rest](https://github.com/octokit/rest.js) from 17.1.4 to 17.2.1. - [Release notes](https://github.com/octokit/rest.js/releases) - [Commits](https://github.com/octokit/rest.js/compare/v17.1.4...v17.2.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
dependabot-preview[bot] authored
Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.653.0 to 2.656.0. - [Release notes](https://github.com/aws/aws-sdk-js/releases) - [Changelog](https://github.com/aws/aws-sdk-js/blob/master/CHANGELOG.md) - [Commits](https://github.com/aws/aws-sdk-js/compare/v2.653.0...v2.656.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
dependabot-preview[bot] authored
Bumps [jquery](https://github.com/jquery/jquery) from 3.4.1 to 3.5.0. - [Release notes](https://github.com/jquery/jquery/releases) - [Commits](https://github.com/jquery/jquery/compare/3.4.1...3.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
dependabot-preview[bot] authored
Bumps [core-js](https://github.com/zloirock/core-js) from 3.6.4 to 3.6.5. - [Release notes](https://github.com/zloirock/core-js/releases) - [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md) - [Commits](https://github.com/zloirock/core-js/compare/v3.6.4...v3.6.5) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
dependabot-preview[bot] authored
Bumps [@babel/preset-env](https://github.com/babel/babel) from 7.9.0 to 7.9.5. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md) - [Commits](https://github.com/babel/babel/compare/v7.9.0...v7.9.5) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
Robert Knight authored
Bump terser from 4.6.10 to 4.6.11
-
Lyza Gardner authored
Clear selection when changing user
-
Robert Knight authored
Fix single annotation page
-
Robert Knight authored
4d210869 removed registration of the `api` service from Angular, but the component for the single annotation page still needs it.
-
dependabot-preview[bot] authored
Bumps [sinon](https://github.com/sinonjs/sinon) from 9.0.1 to 9.0.2. - [Release notes](https://github.com/sinonjs/sinon/releases) - [Changelog](https://github.com/sinonjs/sinon/blob/master/CHANGELOG.md) - [Commits](https://github.com/sinonjs/sinon/commits) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
dependabot-preview[bot] authored
Bumps [escape-string-regexp](https://github.com/sindresorhus/escape-string-regexp) from 1.0.5 to 3.0.0. - [Release notes](https://github.com/sindresorhus/escape-string-regexp/releases) - [Commits](https://github.com/sindresorhus/escape-string-regexp/compare/v1.0.5...v3.0.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
dependabot-preview[bot] authored
Bumps [karma](https://github.com/karma-runner/karma) from 4.4.1 to 5.0.1. - [Release notes](https://github.com/karma-runner/karma/releases) - [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md) - [Commits](https://github.com/karma-runner/karma/compare/v4.4.1...v5.0.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
dependabot-preview[bot] authored
Bumps [terser](https://github.com/terser/terser) from 4.6.10 to 4.6.11. - [Release notes](https://github.com/terser/terser/releases) - [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md) - [Commits](https://github.com/terser/terser/compare/v4.6.10...v4.6.11) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
dependabot-preview[bot] authored
Bumps [eslint-config-hypothesis](https://github.com/hypothesis/frontend-toolkit) from 2.1.0 to 2.3.0. - [Release notes](https://github.com/hypothesis/frontend-toolkit/releases) - [Commits](https://github.com/hypothesis/frontend-toolkit/commits) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
Robert Knight authored
Implement a fallback for browsers that don't support the CSS `mix-blend-mode` property (IE 11, Edge < 79) by merging overlapping highlights into a single layer with uniform opacity. This prevents overlapping highlights from affecting readability since highlights are blended with the content underneath using normal blending in this case.
-
- 11 Apr, 2020 1 commit
-
-
Robert Knight authored
Improve the readability of highlights on PDFs by creating the highlights in an SVG layer overlaid on top of the page's `<canvas>` instead of using the CSS `background-color` property on the `<hypothesis-highlight>` elements in the page's text layer. Using an SVG placed in the DOM like this allows us to control how the highlight is blended with the content underneath using CSS `mix-blend-mode`. Using the `multiply` blend mode [2] means that highlights will darken the content below rather than making dark text in the canvas appear lighter and muddier. Additionally this approach gives us more control over the appearance of overlapping highlights. Note that for the custom blending to work, it is important that the SVG is in the same stacking context as the canvas [1] We still need to keep the `<hypothesis-highlight>` elements in the text layer for interactive functionality (eg. interacting with highlights using the keyboard or pointer). The SVG highlight is associated with the `<hypothesis-highlight>` via an `svgHighlight` property so that the SVG can be removed when the highlight itself is removed. [1] https://drafts.fxtf.org/compositing-1/#csscompositingrules_CSS [2] https://drafts.fxtf.org/compositing-1/#valdef-blend-mode-multiply
-
- 10 Apr, 2020 4 commits
-
-
Lyza Danger Gardner authored
-
Lyza Danger Gardner authored
-
Lyza Danger Gardner authored
-
Lyza Danger Gardner authored
Convert `changedFocusedUser` into a `thunk` that dispatches both `CLEAR_SELECTION` and `CHANGE_FOCUSED_USER`. This keeps unwanted applied filters from being carried over into a newly-focused-user’s set of annotations and avoids UI confusion. Fixes #1737
-
- 09 Apr, 2020 1 commit
-
-
Robert Knight authored
Update Preact
-
- 08 Apr, 2020 6 commits
-
-
Robert Knight authored
This fixes an issue where an uncaught error thrown inside an `act` callback would stop any `useEffect` effects from running for the rest of the test session, which was pretty confusing to debug. See https://github.com/preactjs/preact/releases/tag/10.4.0
-
Robert Knight authored
Use `Injector` to initialize services
-
Robert Knight authored
Refactor profile data access in the store
-
Robert Knight authored
This PR refactors accessing and updating of profile data from `/api/profile` in the store: - Always access the profile data fetched from `/api/profile` via the `store.profile()` selector rather than using `store.getState().session...`. - Move the profile data from the top level of `state.session` into a `profile` field (`state.session.profile`) - Rename `store.updateSession()` to `store.updateProfile()` for consistency with the `profile()` selector. The previous name is a holdover from when "session" meant "the user's cookie session". These changes make this store module follow our agreed best practices to avoid accessing state directly, rather than via a selector, and will also make it easier to add additional session-related state in future which is not fetched from `/api/profile`. One subtle but intended change is that `state.session.profile` is now always _replaced_ when the profile is udpated, rather than it being the result of merging the previous and current state. The previous behavior could introduce subtle bugs where state from a previous login remained after switching the user.
-
Robert Knight authored
Replace Angular's `run` function which is used to run initialization logic once all services are constructed with a new `Injector#run` method. This allows us to remove the dependency on Angular for running app initialization logic which requires access to service instances. As a result, services that are not used by remaining Angular components no longer need to be registered with Angular at all.
-
Robert Knight authored
Improve readability of nested highlights in PDFs
-
- 07 Apr, 2020 1 commit
-
-
Kyle Keating authored
- Tab will add the first suggestion in the autocomplete list if the list is not empty and `Tab` is pressed without any suggestion being selected. - Tab can act as `Enter` or `,` and add a selected tag from a list when pressed.
-
- 06 Apr, 2020 1 commit
-
-
Kyle Keating authored
Allow `groups` filter to resolve from an RCP ancestor frame - If the groups array exists at load time, leave it in place. - If the groups array value is equal to '$rcp:requestGroups' then fetch that value with a second RCP request to the ancestor frame.
-