-
-
Notifications
You must be signed in to change notification settings - Fork 287
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
feat: improved app rating flow #3439
Conversation
Let me know if any changes are suggested |
Run flutter format --set-exit-if-changed . |
|
Codecov Report
@@ Coverage Diff @@
## develop #3439 +/- ##
===========================================
- Coverage 11.21% 11.18% -0.04%
===========================================
Files 261 261
Lines 12631 12668 +37
===========================================
Hits 1417 1417
- Misses 11214 11251 +37
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heyyy @Omegaviv thanks for these changes. They look really good.
We should just give the user some way of giving negative feedback
positiveAction: SmoothActionButton( | ||
text: appLocalizations | ||
.app_rating_dialog_title_enjoying_positive_actions, | ||
onPressed: () async => Navigator.of(context).pop(true), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onPressed: () async => Navigator.of(context).pop(true), | |
onPressed: () => Navigator.of(context).pop(true), |
This doesn't need to be async
// TODO(omegaviv): implement feedback form and link here,https://github.com/openfoodfacts/smooth-app/issues/3419 | ||
Navigator.of(context).pop(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Until this feedback form is implemented lets ask them to send a email to contact @ openfoodfacts.org
. That should be quick to implement, we already have a package for this installed.
Otherwise we would ask them to give (negative) feedback but don't say how, so likely they will write a bad review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or always open the english form for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so should I redirect them to email directly at the press of a button?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, sounds good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With a small comment, that the button is the way to add feedback
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heyy @Omegaviv these changes look really great, please have a look at one very minor comment 😄
), | ||
negativeAction: SmoothActionButton( | ||
text: appLocalizations.not_really, | ||
onPressed: () => Navigator.of(context).pop(false), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't use the poped false, do we
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect, again thank you @Omegaviv
Congrats on your first PR here @Omegaviv 🎉 |
What
Refined the App rating flow issue #3420
Screenshot
Before
After