- 19 May, 2020 2 commits
-
-
Robert Knight authored
Fix race condition and error handling when fetching groups in LMS app
-
Robert Knight authored
Groups have two kinds of ID - the one auto-generated by h and optionally the one supplied by the authority that created the group. The service config can specify which groups to show using either kind.
-
- 18 May, 2020 4 commits
-
-
Lyza Gardner authored
Restore document metadata to annotation cards
-
Robert Knight authored
-
Robert Knight authored
Rework fetching of groups specified in the client's settings to first fetch all the groups that the user is a member of and then only make separate API calls to fetch groups specified in the configuration which are not in that list. In the case of the LMS app, which is the main use case for this setting, this reduces the load on the backend by only making one request to fetch an LMS user's groups rather than one per course section. In the process the existing parameterized test was split into separate tests since the logic for each case was sufficiently different that it made more sense.
-
Lyza Danger Gardner authored
-
- 15 May, 2020 1 commit
-
-
Robert Knight authored
When the LMS app starts it loads Via and the client concurrently with creating the group(s) for the current course/sections and provides the groups to the client asynchronously when ready. Previously when loading groups in this context the client would fetch groups from h, then wait for the group IDs to be returned from the LMS app and filter the list of loaded groups by those IDs. There was a race condition here in that the client may end up fetching groups from h before they have been created by the LMS backend. Additionally the error handling was poor if some or all of the group IDs returned LMS app failed to load. The user could see just a blank state with no error notice. This PR resolves these issues by splitting the `groups.load()` method which is called on startup to load groups into two separate code paths, one for the case where the annotation service configures the client to load specific groups and the other for the default case where the client loads groups associated with the current user, current document and direct links. When specific groups are configured, the client will wait for those IDs to be available before loading only those groups from the API. If some of the groups fail to load, an error notice will be shown but any other groups which did load will still be shown. A potential issue with this new approach is that we are making one HTTP request per group to load, although all requests happen concurrently and we are using HTTP/2. This may be slower if there are a large number of groups. Fixes #2162
-
- 13 May, 2020 6 commits
-
-
Kyle Keating authored
Change the client RPC request to optionally bypass the timeout. There could be a case where it's waiting for user input to proceed with authorization and could take any number of seconds.
-
Lyza Gardner authored
Hide menu item toggle button if there are no items
-
Kyle Keating authored
Pass undefined to MenuItem to hide the submenu and its toggle button.
-
Lyza Gardner authored
Add negative top margin to “show x more in conversation” buttons
-
Robert Knight authored
Focus first item in menu when opened by any input method
-
Robert Knight authored
Remove unused annotator CSS
-
- 12 May, 2020 11 commits
-
-
Robert Knight authored
Bump fetch-mock from 9.4.0 to 9.5.1
-
Robert Knight authored
Merge pull request #2144 from hypothesis/dependabot/npm_and_yarn/karma-coverage-istanbul-reporter-3.0.2 Bump karma-coverage-istanbul-reporter from 2.1.1 to 3.0.2
-
Robert Knight authored
Bump puppeteer from 3.0.2 to 3.0.4
-
Robert Knight authored
Bump postcss from 7.0.29 to 7.0.30
-
dependabot-preview[bot] authored
Bumps [postcss](https://github.com/postcss/postcss) from 7.0.29 to 7.0.30. - [Release notes](https://github.com/postcss/postcss/releases) - [Changelog](https://github.com/postcss/postcss/blob/master/CHANGELOG.md) - [Commits](https://github.com/postcss/postcss/compare/7.0.29...7.0.30) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
Robert Knight authored
Bump aws-sdk from 2.669.0 to 2.673.0
-
Robert Knight authored
Bump npm-packlist from 2.1.1 to 2.1.2
-
Robert Knight authored
Bump karma from 5.0.4 to 5.0.5
-
Robert Knight authored
- Remove several unused classes and styles - Group all the CSS reset style rules for `.annotator-frame` together
-
Robert Knight authored
Remove unused icons
-
Robert Knight authored
Remove icomoon font and associated infrastructure
-
- 11 May, 2020 16 commits
-
-
Kyle Keating authored
-
Lyza Danger Gardner authored
Fine-tune the vertical alignment of the “Show x more in conversation” hidden-thread toggling buttons so that they better align with thread toggle chevrons. Fixes #2097
-
Lyza Gardner authored
Adjust accessible text for groups menu label
-
Robert Knight authored
Override `<button>` padding from page styles in toolbar
-
Robert Knight authored
Revert to hard-coded padding for the toolbar buttons to override any default padding the page may have for `<button>` elements. This affects PDF.js amongst other apps/sites. Instead of setting the padding to 0 as before, set it to `1px 6px` which matches Chrome's defaults that looked reasonable. A better solution will be to use Shadow DOM for the whole sidebar UI, but that is a larger change.
-
Robert Knight authored
Fix sidebar vertical toolbar button alignment
-
Robert Knight authored
The client's test page was missing a `<!DOCTYPE html>` declaration and as a result rendered in _quirks mode_ rather than _standards mode_. This hid an issue where the toolbar buttons were not centered correctly in standards-mode documents. This incorrect centering was caused by: 1. The CSS bundle for the "annotator" part of the app not including the CSS styles for the `SvgIcon` component 2. An unnecessary `padding` declaration on the `.annotator-frame-button` class I haven't investigated in detail exactly which quirks-vs-standards mode difference resulted in the centering still being OK in quirks-mode. This commit fixes these two issues and fixes toolbar button centering in both quirks and standards-mode documents. It also updates the client's test page to add the `<!DOCTYPE html>` declaration since standards mode is what most web content uses.
-
dependabot-preview[bot] authored
Bumps [dompurify](https://github.com/cure53/DOMPurify) from 2.0.10 to 2.0.11. - [Release notes](https://github.com/cure53/DOMPurify/releases) - [Commits](https://github.com/cure53/DOMPurify/compare/2.0.10...2.0.11) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
dependabot-preview[bot] authored
Bumps [jquery](https://github.com/jquery/jquery) from 3.5.0 to 3.5.1. - [Release notes](https://github.com/jquery/jquery/releases) - [Commits](https://github.com/jquery/jquery/compare/3.5.0...3.5.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
dependabot-preview[bot] authored
Bumps [npm-packlist](https://github.com/npm/npm-packlist) from 2.1.1 to 2.1.2. - [Release notes](https://github.com/npm/npm-packlist/releases) - [Commits](https://github.com/npm/npm-packlist/compare/v2.1.1...v2.1.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
dependabot-preview[bot] authored
Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 3.0.2 to 3.0.4. - [Release notes](https://github.com/puppeteer/puppeteer/releases) - [Commits](https://github.com/puppeteer/puppeteer/compare/v3.0.2...v3.0.4) 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.669.0 to 2.673.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.669.0...v2.673.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
dependabot-preview[bot] authored
Bumps [karma](https://github.com/karma-runner/karma) from 5.0.4 to 5.0.5. - [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/v5.0.4...v5.0.5) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
dependabot-preview[bot] authored
Bumps [karma-coverage-istanbul-reporter](https://github.com/mattlewis92/karma-coverage-istanbul-reporter) from 2.1.1 to 3.0.2. - [Release notes](https://github.com/mattlewis92/karma-coverage-istanbul-reporter/releases) - [Changelog](https://github.com/mattlewis92/karma-coverage-istanbul-reporter/blob/master/CHANGELOG.md) - [Commits](https://github.com/mattlewis92/karma-coverage-istanbul-reporter/compare/v2.1.1...v3.0.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
dependabot-preview[bot] authored
Bumps [fetch-mock](https://github.com/wheresrhys/fetch-mock) from 9.4.0 to 9.5.1. - [Release notes](https://github.com/wheresrhys/fetch-mock/releases) - [Commits](https://github.com/wheresrhys/fetch-mock/compare/v9.4.0...v9.5.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
Robert Knight authored
Fix sidebar toggle button when using VoiceOver on iOS
-