Open teolemon opened 1 year ago
@teolemon Why not, but there should be the corresponding off-dart issues first.
Could you say precisely which query you're referring to: Fetch questions with insight_types
? In that case there's no barcode. I don't understand everything there.
@monsieurtanuki I believe off-dart might already be ready for that: https://github.com/openfoodfacts/openfoodfacts-dart/blob/6d2088cd1e9090e925b32f061cb8fed9adfc7655/lib/src/robot_off_api_client.dart#L134
@teolemon Fair enough, we can already use InsightType
.
But:
getRandomQuestions
, its server side ('api/v1/questions/random'
) is deprecatedgetProductQuestions
), there's no InsightType
parametergetRandomInsights
), we currently do not use this off-dart method. And I cannot picture what the UX would be. Something like "You're very good with food categories? Then help us!"Something along those lines @monsieurtanuki ?
Do we fill the field with the value (with possibly a green save effect to make it clear that the answer has already been sent using Robotoff) if the question is answered ?
And possibly likeso for labels
@teolemon I understand your UI, but no methods we have in off-dart have both the barcode and the insight type...
noted, I'm heading home, will try to open the matching issues @monsieurtanuki
Opened
What
Part of
1379