Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support rewards or incentives #16

Open
Steppschuh opened this issue Jan 6, 2020 · 1 comment
Open

Support rewards or incentives #16

Steppschuh opened this issue Jan 6, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Steppschuh
Copy link
Contributor

Add a reward section to the config to provide an incentive for users to provide feedback.
There should be a configurable probability that a user will get the reward after completing the survey.

Also add event tracking for rewards.

@Steppschuh Steppschuh added the enhancement New feature or request label Jan 6, 2020
@Steppschuh Steppschuh self-assigned this Jan 6, 2020
@Steppschuh Steppschuh changed the title Support rewards or incentives support Support rewards or incentives Jan 6, 2020
This was referenced Jan 6, 2020
@Steppschuh
Copy link
Contributor Author

The required backend functionality is implemented. The frontend still needs to:

  • Check the config if rewards are enabled
  • Get the reward probability
  • Show a reward with the configured probability when the survey has completed
    • Get the QR code image from /api/reward/qr
    • Show the image and the reward message in a modal
    • Prevent the survey from resetting until the modal is closed

In addition, the /api/reward/ routes to get a rewards will need to be protected with an API key / secret (see FEEDBACK_KIOSK_SECRET). That secret could be provided to the frontend via an URL parameter or an input field on an extra page that saves it as cookie.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant