- 13 Apr, 2017 1 commit
-
-
Sheetal Umesh Kumar authored
Update flag count after moderator flags an annotation themselves
-
- 12 Apr, 2017 10 commits
-
-
Robert Knight authored
-
Robert Knight authored
-
Sean Hammond authored
Only display CC 0 license for shared annotations in public groups
-
Robert Knight authored
Do not display the CC 0 license for annotations that are shared in a private group.
-
Sean Hammond authored
Simplify handling of quotes in annotations
-
Robert Knight authored
-
Robert Knight authored
Although annotations can contain multiple targets in theory, in practice we only ever store one target per annotation and one quote selector per target. Until we have a clear use case for associating multiple quotes with an annotation, we can simplify the code by only rendering the first one.
-
Sean Hammond authored
Extract annotation action buttons into a separate component
-
Robert Knight authored
This refactors a bunch of markup that was duplicated for each action button and should make it easier to add tests specifically for the button's behaviors in future. * Create an `<annotation-action-button>` component and move existing markup for buttons there. * Refactor `<annotation>` test to use the same set of bindings for the mock `<markdown>` component as the real one.
-
Sean Hammond authored
Extract annotation header into a separate component
-
- 11 Apr, 2017 3 commits
-
-
Robert Knight authored
The `<annotation>` component is growing large and unwieldy, especially the tests. As a first step to making it easier to follow, extract the header (which displays username, timestamp, document metadata and group name) into a separate component.
-
Christof Dorner authored
Use hyphens instead of underscores in template filenames
-
Robert Knight authored
The use of underscores dates back to when the templates were part of the service code and used the same naming conventions as the service's Jinja2 templates. Using hyphens makes the template filenames match the other files which make up a component (JS & SCSS files). This makes it easier to switch between the different parts when using a fuzzy file finder.
-
- 08 Apr, 2017 1 commit
-
-
Robert Knight authored
-
- 07 Apr, 2017 7 commits
-
-
Robert Knight authored
-
Robert Knight authored
-
Robert Knight authored
-
Robert Knight authored
Flagging or unflagging an annotation previously updated the status flag indicating whether an annotation had been flagged by the current user but did not update the flag count if the user was also a moderator. This needs to be done to make the moderation banner's state update when a user who is also a moderator flags an annotation.
-
Robert Knight authored
Tests for actions should live in the test module associated with the module that defines the actions.
-
Robert Knight authored
Use correct case for `flagCount` key
-
Robert Knight authored
This property is camelCased rather than snake_cased in the annotation response from the service.
-
- 06 Apr, 2017 17 commits
-
-
Sean Hammond authored
Enable first-party users to flag annotations
-
Sean Hammond authored
Update moderation API use
-
Robert Knight authored
-
Robert Knight authored
Enable first-party users to flag annotations if the `flag_action` feature flag is enabled for them.
-
Robert Knight authored
Move the flag count to a helper which is easier to test and re-use.
-
Robert Knight authored
The `hidden` state has been moved from the `annotation.moderation` key to a top-level property of the annotation.
-
Robert Knight authored
The previous code was incorrect because depending on the failure, the error might not be an `Error`. This needs to be fixed in the API client but for the moment, sidestep the problem by just displaying a fixed string.
-
Robert Knight authored
Moderation state was originally going to be retrieved via a separate API call from /api/search but is now returned as a `moderation` field in the annotation response. This commit removes the separate `moderation` state from the Redux store.
-
Robert Knight authored
In the `<moderation-banner>` and `<annotation>` components, read the moderation state from the annotation object instead of fetching it from the app state.
-
Robert Knight authored
After an annotation has been hidden or unhidden by a moderator, the moderation state needs to be updated locally to reflect the change.
-
Robert Knight authored
The `hide` API has now been implemented on the server. The `unhide` API has been agreed but not yet implemented.
-
Robert Knight authored
Adding branding config docs
-
Robert Knight authored
Change "when it is being save" to "when it is being viewed" to avoid implying that it might only apply while changes are being saved to the server.
-
Robert Knight authored
Show the flagged status for annotations that user has flagged.
-
Robert Knight authored
-
Robert Knight authored
-
Sheetal Umesh Kumar authored
-
- 05 Apr, 2017 1 commit
-
-
Sean Roberts authored
-