- 11 Jun, 2019 1 commit
-
-
Robert Knight authored
The URL fragment syntax for direct links only supports either an annotation or a group, the client's JSON configuration however currently allows both an annotation and a group to be specified. If that happens, the client goes to the group containing the direct-linked annotation, but will still add the direct-linked group to the groups list.
-
- 07 Jun, 2019 2 commits
-
-
Robert Knight authored
- Avoid references to specific API requests, which might get out of date - Move a comment up a few lines above another line of code which exists for the reason explained in that comment
-
Robert Knight authored
-
- 14 May, 2019 10 commits
-
-
Robert Knight authored
This makes it more obvious which part of the method the variables are relevant for.
-
Robert Knight authored
Test `isFirstLoad` once instead of in each branch. This makes it more obvious that a group is only ever focused on first load.
-
Robert Knight authored
This is a slightly subjective change, but I think it makes it a little easier to follow if the reader can see that none of the variables holding API results are re-assigned.
-
Robert Knight authored
Following the elimination of Promise chains, the load() method can be shortened by eliminating some variables.
-
Robert Knight authored
-
Robert Knight authored
-
Robert Knight authored
Refactor groups service's `load` method
-
Robert Knight authored
- Capitalize "API" consistently - Remove a couple of comments that repeated the code below
-
Robert Knight authored
Import fix for a warning caused by a "quietly" failing test.
-
Robert Knight authored
As pointed out during code review, mixing the terms "selected" and "direct-linked" to refer to direct-linked annotations and groups is potentially confusing. Use the term direct-linked consistently.
-
- 13 May, 2019 27 commits
-
-
Robert Knight authored
Fix a silently failing test
-
Robert Knight authored
The `HypothesisAppController#login()` method returns a Promise and calls `fakeStore.clearGroups` asynchronously. This means we need to wait for the result before checking the spy, and return the result in the test case so Mocha knows when the test has finished.
-
Robert Knight authored
Clarify what the method does and add some comments to explain to the reader the high-level steps that it goes through.
-
Robert Knight authored
The first block produced a result synchronously, so it could be combined into the second block.
-
Robert Knight authored
Rework the block that fetches the direct-linked annotation's group and adds it to the featured groups list so that there is only one return point at the end.
-
Robert Knight authored
-
Robert Knight authored
Remove unused babel-preset-env dependency
-
Robert Knight authored
This has been superceded by @babel/preset-env
-
Robert Knight authored
-
Robert Knight authored
Fix direct linked private login flow
-
Robert Knight authored
-
Robert Knight authored
For easier debugging when tests fail, ensure that `it` cases that refer to specific functions in a module are grouped under a `describe` block labeled with the function's name.
-
Robert Knight authored
-
Robert Knight authored
Despite the name of the settings key where this value is read from (`settings.annotations`), only a single annotation is currently supported. See the `initialSelection` function in `store/modules/selection.js`.
-
Hannah Stepanek authored
- Clear groups service state on login and logout. - Handle case where focus group is null when watching the focused group and userid for changes. This can happen when clearGroups is called since it sets the focus group to null which triggers a call to the watch function. There are two watch function that get triggered; one in sidebar-content, the other in the group service. - Clear direct-linked id states on clearSelection and when a new focusedGroup is selected.
-
Hannah Stepanek authored
- Rename direct-linked-group store module to direct-linked so that it may track the state of all direct-linked related items. - Add directLinkedAnnotationsId and directLinkedGroupId to direct-linked store module. This provides an official location to track/change the state of the settings.annotations and settings.group rather than modifying them directly.
-
Robert Knight authored
Bump @octokit/rest from 16.25.2 to 16.25.4
-
Robert Knight authored
Merge pull request #1118 from hypothesis/dependabot/npm_and_yarn/babel-plugin-mockable-imports-1.5.0 Bump babel-plugin-mockable-imports from 1.4.0 to 1.5.0
-
Robert Knight authored
Bump katex from 0.10.1 to 0.10.2
-
Robert Knight authored
Bump codecov from 3.3.0 to 3.4.0
-
Robert Knight authored
Bump scroll-into-view from 1.9.6 to 1.9.7
-
Robert Knight authored
Bump gulp from 4.0.1 to 4.0.2
-
dependabot[bot] authored
Bumps [@octokit/rest](https://github.com/octokit/rest.js) from 16.25.2 to 16.25.4. - [Release notes](https://github.com/octokit/rest.js/releases) - [Commits](https://github.com/octokit/rest.js/compare/v16.25.2...v16.25.4) Signed-off-by: dependabot[bot] <support@dependabot.com>
-
dependabot[bot] authored
Bumps [babel-plugin-mockable-imports](https://github.com/robertknight/babel-plugin-mockable-imports) from 1.4.0 to 1.5.0. - [Release notes](https://github.com/robertknight/babel-plugin-mockable-imports/releases) - [Changelog](https://github.com/robertknight/babel-plugin-mockable-imports/blob/master/CHANGELOG.md) - [Commits](https://github.com/robertknight/babel-plugin-mockable-imports/compare/v1.4.0...v1.5.0) Signed-off-by: dependabot[bot] <support@dependabot.com>
-
dependabot[bot] authored
Bumps [katex](https://github.com/KaTeX/KaTeX) from 0.10.1 to 0.10.2. - [Release notes](https://github.com/KaTeX/KaTeX/releases) - [Changelog](https://github.com/KaTeX/KaTeX/blob/master/CHANGELOG.md) - [Commits](https://github.com/KaTeX/KaTeX/compare/v0.10.1...v0.10.2) Signed-off-by: dependabot[bot] <support@dependabot.com>
-
dependabot[bot] authored
Bumps [codecov](https://github.com/codecov/codecov-node) from 3.3.0 to 3.4.0. - [Release notes](https://github.com/codecov/codecov-node/releases) - [Commits](https://github.com/codecov/codecov-node/compare/v3.3.0...v3.4.0) Signed-off-by: dependabot[bot] <support@dependabot.com>
-
dependabot[bot] authored
Bumps [scroll-into-view](https://github.com/KoryNunn/scroll-into-view) from 1.9.6 to 1.9.7. - [Release notes](https://github.com/KoryNunn/scroll-into-view/releases) - [Changelog](https://github.com/KoryNunn/scroll-into-view/blob/master/CHANGELOG.md) - [Commits](https://github.com/KoryNunn/scroll-into-view/commits) Signed-off-by: dependabot[bot] <support@dependabot.com>
-