feat: poll user satisfaction and calls to action #229
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The poll shows up after the user has used ActivityWatch for 30 days. If the user ignores/closes the poll, it will show up after 24 hours again for up to 3 times in total. The user can also choose to not show the poll again. Once the user submits a rating, the poll will not show up again. If the poll receives a rating that is >= 6, it will be a positive rating, otherwise negative. The respective followup alert shows up.
Closes ActivityWatch/activitywatch#291.
Poll
![poll](https://user-images.githubusercontent.com/15698580/95139006-90467900-0739-11eb-9a1b-b391aa8e3811.png)
![pos-feedback](https://user-images.githubusercontent.com/15698580/95139008-90df0f80-0739-11eb-8d41-90cacf0e1af6.png)
![neg-feedback](https://user-images.githubusercontent.com/15698580/95139013-93416980-0739-11eb-807a-c86f3192192d.png)
Positive Feedback Followup
Negative Feedback Followup
Questions