Mephisto Task Addons
Overview
The mephisto-addons
package provides:
WorkerOpinion
widget: collect workers' feedback for each completed unit
Usage
- 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`
),
}
}
};
- 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?",
]}
/>