-
-
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!: hunger games #3102
feat!: hunger games #3102
Conversation
@openfoodfacts/smooth-app please review this first implementation code-wise |
@VaiTon I'm speaking only for myself, but:
That's not very encouraging, is it? In addition to that, as even in draft it's a PR, every time you'll decide to commit a change, I'll receive an email for that, which is a bit annoying. Unless I mute it. My suggestion: if you want to code something, you can talk about it in an issue, exchange about the UI/UX and the code potential problems and so on. Actually I'm currently a bit saturating - nothing personal, it's just that I see this PR now. |
@monsieurtanuki thank you for your comment, although I don't get a few things:
I mean, that's what drafts, are for:
The fact that you're being notified is I think due to the fact that we have codeowners set up. That's a problem on it's own I think and I will now remove it from the reviewers so that nobody gets pinged every time I push a commit. |
Hi @VaiTon!
Indeed we both exchanged comments about Hunger Games this afternoon.
Not always. And so far we're talking about 8 files, that's manageable.
So what would be this code review for, at such an early stage of your code, with already 2 pushed commits on top by now? Again, a bit discouraging.
They don't say "you should
I totally agree with that, except that in my mind that collaboration happens before the PR, in an issue for instance. My best experience on github was with osmdroid, where we sometimes spent dozens of comments about very hard issues. And then, once we listed the potential pitfalls, remembered what happened the previous year with similar issues, double-checked how it worked on other apps and agreed on the solution, or not 100% agreed but agreed to start, then it was time to code: when everything was ready to be translated into code.
I don't know very much about github (I don't plan to), but indeed if we could receive less mails that would be very cool - the icing on the cake being getting rid of codecov that AFAIK never worked. Good luck with this PR! |
Hey @monsieurtanuki, thank you for your detailed explanation and I will keep it in mind next time. About notifications, I'll see what can be done |
Actually blocked on openfoodfacts/openfoodfacts-dart#573 |
@VaiTon little conficts to resolve, can you put a temporary screenshot ? |
@teolemon I'm waiting for the SDK update and then I'll finalize the PR |
It's released, I'm about to update smoothie to support the new version |
Codecov Report
@@ Coverage Diff @@
## develop #3102 +/- ##
==========================================
- Coverage 6.19% 6.17% -0.02%
==========================================
Files 248 252 +4
Lines 12439 12495 +56
==========================================
+ Hits 771 772 +1
- Misses 11668 11723 +55
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
refactor: separate API logic from UI
…into feat/hunger_games
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.
Hi @VaiTon!
Looks rather good to me, except the QuestionPage
: it's 478 line long and I suggest that you split it in different files, if that sounds reasonable to you.
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.
Also can we put this in DevMode for testing, maybe some fine-tuning is needed. Not codewise but robotoff wise. I think I read something in slack about it needing further work in some categories before releasing it on a large scale
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.
Thank you @VaiTon for the refactoring: now it's easier to read and review.
Minor comments now: feel free to ignore them.
packages/smooth_app/lib/pages/hunger_games/question_answers_options.dart
Outdated
Show resolved
Hide resolved
packages/smooth_app/lib/pages/hunger_games/question_answers_options.dart
Show resolved
Hide resolved
@VaiTon Btw I wonder about |
Hey @monsieurtanuki! It's part of the conventional commits format, it's to signal a breaking change (or an important one) |
Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>
Thank you everybody for your time! |
Very nice work 🎉! |
@raphael0202 this is the first "iteration", so no loading in the background. Instead we just query 3 random questions and when we're finished we ask if the user wants to continue or exit. |
What
question_page.dart
to make it automatically download Robotoff questions if no product/list of questions is passed.Also Changed
CongratsWidget
to its own filecongrats.dart
question_page.dart
andcongrats.dart
to the subfolderhunger_games
haveInsightAnnotationsVoted
toareQuestionsAlreadyVoted
to better reflect it's actionquestion_answers_options.dart
andquestion_card.dart
fromquestion_page.dart
(@monsieurtanuki)Video
2022-10-16.20-17-50.mp4
Fixes