- 21 Jul, 2020 6 commits
-
-
Robert Knight authored
Change store module selectors to receive the module's local state rather than the global/root state as the first argument. The majority of selectors only need access to the module's local state. Changing these selectors to receive the local rather than root state has benefits: - It avoids the need for the selectors to know about the structure of the root state. This can make future refactorings and re-use easier. - It is consistent with how state is accessed in the reducer functions - It will simplify typing selectors because the type of the `state` argument will be the same as the type of `state` returned by `init` and passed to `update` functions - It potentially enables automatic memoization of selectors based on the local state. ie. If the local state for a module has not changed as a result of an action, then none of the local selectors will need to be recomputed There are a small number of selectors that need access to state from multple modules. In future we may want to move these to some separate location but, as an incremental step, add support for "root selectors" to modules under a `rootSelectors` key. These selectors will still receive the root state as their first argument as before. This commit also adds missing tests for the `annotationExists` selector and the `route` module. See also https://hypothes-is.slack.com/archives/C1M8NH76X/p1595237570226700.
-
Robert Knight authored
Bump @sentry/browser from 5.19.1 to 5.19.2
-
Robert Knight authored
Bump fetch-mock from 9.10.3 to 9.10.4
-
Robert Knight authored
Bump preact from 10.4.5 to 10.4.6
-
Robert Knight authored
Bump typescript from 3.9.6 to 3.9.7
-
Robert Knight authored
[Security] Bump codecov from 3.7.0 to 3.7.1
-
- 20 Jul, 2020 19 commits
-
-
dependabot-preview[bot] authored
Bumps [@sentry/browser](https://github.com/getsentry/sentry-javascript) from 5.19.1 to 5.19.2. - [Release notes](https://github.com/getsentry/sentry-javascript/releases) - [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-javascript/compare/5.19.1...5.19.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
dependabot-preview[bot] authored
Bumps [@octokit/rest](https://github.com/octokit/rest.js) from 18.0.0 to 18.0.1. - [Release notes](https://github.com/octokit/rest.js/releases) - [Commits](https://github.com/octokit/rest.js/compare/v18.0.0...v18.0.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
dependabot-preview[bot] authored
Bumps [eslint](https://github.com/eslint/eslint) from 7.4.0 to 7.5.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v7.4.0...v7.5.0) 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.713.0 to 2.715.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.713.0...v2.715.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
dependabot-preview[bot] authored
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.10.4 to 7.10.5. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.10.5/packages/babel-core) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
dependabot-preview[bot] authored
Bumps [preact](https://github.com/preactjs/preact) from 10.4.5 to 10.4.6. - [Release notes](https://github.com/preactjs/preact/releases) - [Commits](https://github.com/preactjs/preact/compare/10.4.5...10.4.6) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
dependabot-preview[bot] authored
Bumps [enzyme-adapter-preact-pure](https://github.com/preactjs/enzyme-adapter-preact-pure) from 2.2.0 to 2.2.1. - [Release notes](https://github.com/preactjs/enzyme-adapter-preact-pure/releases) - [Changelog](https://github.com/preactjs/enzyme-adapter-preact-pure/blob/master/CHANGELOG.md) - [Commits](https://github.com/preactjs/enzyme-adapter-preact-pure/compare/v2.2.0...v2.2.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
dependabot-preview[bot] authored
Bumps [fetch-mock](https://github.com/wheresrhys/fetch-mock) from 9.10.3 to 9.10.4. - [Release notes](https://github.com/wheresrhys/fetch-mock/releases) - [Commits](https://github.com/wheresrhys/fetch-mock/compare/v9.10.3...v9.10.4) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
dependabot-preview[bot] authored
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.6 to 3.9.7. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v3.9.6...v3.9.7) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
dependabot-preview[bot] authored
Bumps [codecov](https://github.com/codecov/codecov-node) from 3.7.0 to 3.7.1. **This update includes a security fix.** - [Release notes](https://github.com/codecov/codecov-node/releases) - [Commits](https://github.com/codecov/codecov-node/compare/v3.7.0...v3.7.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-
Kyle Keating authored
-
Robert Knight authored
Refactor store annotations tests to use public store API
-
Lyza Danger Gardner authored
Do not render the only-me icon while an annotation is being edited, as the user can switch privacy settings in the editing mode, and those changes could be at odds with "only me."
-
Lyza Danger Gardner authored
-
Lyza Danger Gardner authored
-
Lyza Danger Gardner authored
-
Lyza Danger Gardner authored
Highlight state is relevant on an annotation-by-annotation basis but does not have any impact on whether an annotation is present or visible (at all) to the user, which is what `selection` state is for. At this time, remove highlight-state logic from thread-building as this is an extra complexity for something that isn't implemented in the UI anyway. In future, to re-implement highlight styling, query the `annotations` store state (perhaps add a `annotationIsHighlighted` selector for convenience).
-
Lyza Danger Gardner authored
-
Robert Knight authored
The majority of store module tests now work by creating an instance of the store with a subset of store modules and then using the store's public methods to manipulate data. There were some tests for `store/modules/annotations.js` that pre-date this convention and still called functions exported from the module directly, passing in `store.getState()`. Refactor these tests to use the public API for consistency and also to make future changes to the internal store structure easier.
-
- 17 Jul, 2020 7 commits
-
-
Lyza Danger Gardner authored
-
Lyza Danger Gardner authored
Refactor the way that focus-mode configuration is represented in state and whittle down the API (selectors and actions) a little for clarity. Reduce the object depth for the focus-mode state. Use a single function to configure focus mode. Concede that user-focus is the only focus mode for now, and as such valid focus-mode configuration must contain a (valid) user object. Note: There is still some lingering inconsistency in the user identifiers provided by the LMS app. Canvas speedgrader uses app settings to configure focus mode (`js-config` object) and sets the `username` property of the `user` object to a username- formatted value (i.e. a username, no authority indicated). Non- Canvas graders do not configure focus mode via the settings, but instead dispatch RPC messages. These pass a `username` property whose value is formatted like a userId (`acct:<username>@authority>`) but it still provided via the `username` property. AFAIK, nobody/no service sends a `userid` property in the focus-mode user object, but we document that we do support it so I've left it extant until we figure this out.
-
Lyza Danger Gardner authored
- Use `Active` instead of `Focused` as it's easier to understand - Use `toggleFocusMode` instead of `setFocusModeFocused`
-
Lyza Danger Gardner authored
- Rename `enabled` to `configured`
-
Kyle Keating authored
-
Robert Knight authored
Bump lodash from 4.17.15 to 4.17.19
-
Robert Knight authored
Add a script to assist with prop-types => JSDoc conversion
-
- 16 Jul, 2020 2 commits
-
-
dependabot[bot] authored
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19) Signed-off-by: dependabot[bot] <support@github.com>
-
Lyza Danger Gardner authored
- Remove logic yanking user away from orphans tab when clearing a selection - Make sure all `selection` module actions use `setTab` when changing tab value - Simplify tab constants - Remove `sortKeysAvailable` from state and add selector instead
-
- 15 Jul, 2020 6 commits
-
-
Lyza Danger Gardner authored
- Use `createSelector` in a few places - Add utility function for creating "true-filled" maps from arrays - Rename `truthyKeys` => `trueKeys`
-
Lyza Danger Gardner authored
-
Lyza Danger Gardner authored
- Make internal `highlighted` property an object - Refactor `highlightAnnotations` action
-
Lyza Danger Gardner authored
- Rename `setCollapsed` to `setExpanded`, as that is more semantically accurate for what external users want, and refactor - Add `expandedMap` selector so users can retrieve the full map (not just truthy keys) - Update external users
-
Lyza Danger Gardner authored
- Rename adjectival form to `forcedVisible` (for variable references) - Refactor `setForce[d]Visible` action - Add selector `forcedVisibleAnnotations` - Do not access store state directly for `forcedVisible
-
Lyza Danger Gardner authored
Use utility function to derive "truthy" keys in internal maps
-