v4.1.0
Upgrading to v4.1.0
If you're moving from 4.0.0 to 4.1.0, a small database migration is required. Upgrade instructions here: https://coralproject.github.io/talk/migration/4.1/
If you're moving from 3.x.x to 4.1.0, please note a database migration and change to your site's embed script is required. Upgrade instructions here: https://coralproject.github.io/talk/migration/4/
Features
- Introducing... Zen Mode! 🕉️
- Now moderators can focus on moderating one comment at a time by using the
z
shortcode while on the Moderate tab - Hint: once in Zen Mode, use the other keyboard shortcuts to have a mouse-free moderating experience
- Now moderators can focus on moderating one comment at a time by using the
- Improve formatting of comment cards in the Admin
- UX improvements so that commenters can't reply to comments that have been removed in the time they're writing their comment by alerting them that this is the case
Migration Support
-
Improve migrations to support larger scale migrations
-
Add new flags to the migrations cli:
$ ./bin/cli migration run --help Usage: run [options] runs all pending migrations Options: -q, --query-batch-size <n> change the size of queried documents that are batched at a time (default: 100) -u, --update-batch-size <n> change the size of documents that are batched before the update is sent (default: 1000) -y, --yes will answer yes to all questions -h, --help output usage information
Dev Support
- Plugins are now relative to the installation directory rather than the current working directory, improving the plugin experience
- Add an index to the actions collection based on the action_id
- Error Handling Improvements including
-withQuery
andwithMutation
now produces an HOC that supports a parameternotifyOnError: boolean
which defaults to true. IfnotifyOnError
is true, a notification is shown to the user when the mutation or query has failed. - Replace previous moderation array with a more modular approach and replaces
pre-git
withpre-commit
to simplify the development workflow - Improve Webpack performance (ref: #1297)
- Add Dynamic Public path support (ref: #1331)
CLI Support
cli users
: Improveusers delete
CLI support- Remove old code related to db verifications from user deletion
- Introduce migration concepts to resolve updating counts
cli assets
: In situations where URL's need to change, or there is a duplicate comment stream, the best recommendation is to use a combination of CLI tools to rectify the situation (ref: #1290):-
You can use the
./bin/cli assets list
to find assets in the system -
You can use the
./bin/cli assets merge <srcID> <dstID>
to merge two assets by their ID's, moving all comments into the sources ID -
You can now use
./bin/cli assets rewrite <searchPattern> <replacementPattern>
that will use a regex search + replace of urls. This can be extremely useful if you are switching to a new domain, or changing your site from http/https to https-only. -
The best method to mitigate all of these is to provide a asset specific ID into the embed using the:
Talk.render(el, { // ... asset_id: "<myAssetID>", // ... });
-
You can also use our [Custom Asset ID Plugin](https://github.com/coralproject/talk-plugin-custom-asset-id plugin)
// Example usage. const withBanUser = withMutation(...); const enhance = compose( withBanUser({notifyOnError: false}) ); export default enhance(MyComponent);
-
Fixes
- Fix live updates and counts of Reported Usernames
- Fix Activity Dot for alerting moderators when there is new Reported Username activity
- Fix inconsistent mod queue counts and pagination in some edge cases
- Fix regression with the HTML entities encoding for the auth details when being serialized for HTML/JSON
- When a plugin fails to install, the process now correctly shuts down with a non-zero exit code
- Fixes for Reporting flow
- Fixes for Reporting Username > Changing Username flow
- Fix copy for Configure tab on stream
- Fix Accept and Reject buttons not showing in User History Drawer in IE
Translations
- Thank you to nu.nl for contributing a Dutch translation!