Skip to main content

Mephisto Task Addons

Overview

The mephisto-addons package provides:

  • WorkerOpinion widget: collect workers' feedback for each completed unit

Usage

  1. Add mephisto-addons library to your webpack config:
// Specifies location of your packages (e.g. `../../dir`)
var PATH_TO_PACKAGES = "<path>"

module.exports = {
...
resolve: {
alias: {
...
"mephisto-addons": path.resolve(
__dirname,
`${PATH_TO_PACKAGES}/packages/mephisto-addons`
),
}
}
};
  1. Import desired widgets from mephisto-addons in your code like so:
import { WorkerOpinion } from "mephisto-addons";
...
<WorkerOpinion
maxTextLength={500}
questions={[
"Was this task hard?",
"Is this a good example?",
]}
/>