openfoodfacts / smooth-app

The new Open Food Facts mobile application for Android and iOS, crafted with Flutter and Dart
https://world.openfoodfacts.org/open-food-facts-mobile-app?utm_source=off&utf_medium=web&utm_campaign=github-repo
Apache License 2.0
750 stars 261 forks source link

We can add Robotoff questions filtered on category in the category editing section #3985

Open teolemon opened 1 year ago

teolemon commented 1 year ago

What

teolemon commented 1 year ago
monsieurtanuki commented 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.

teolemon commented 1 year ago

@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

monsieurtanuki commented 1 year ago

@teolemon Fair enough, we can already use InsightType. But:

teolemon commented 1 year ago

Something along those lines @monsieurtanuki ?

image

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 ?

teolemon commented 1 year ago

And possibly likeso for labels

image
monsieurtanuki commented 1 year ago

@teolemon I understand your UI, but no methods we have in off-dart have both the barcode and the insight type...

teolemon commented 1 year ago

noted, I'm heading home, will try to open the matching issues @monsieurtanuki

teolemon commented 1 year ago

Opened