Closed monsieurtanuki closed 2 weeks ago
Attention: Patch coverage is 9.09091%
with 60 lines
in your changes missing coverage. Please review.
Project coverage is 7.02%. Comparing base (
4d9c7fc
) to head (624f833
). Report is 464 commits behind head on develop.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
We should probably make the icon clickable with a possibility to understand what it's about and possibly to complain or email/file a ticket on Nutri-Patrol if they believe there's a data mistake.
@teolemon Makes almost sense. In the current PR I added a suffix icon to the text field - this UI option is supported by flutter. Displaying a separate icon would break a little the display, why not. But that would look preposterous for the nutrition facts page: an additional icon button on each already crowded nutrient line that always says the same thing.
What could be done instead from the current PR is adding an expandable line (e.g. a ListTile
) with the same icon and a "Producer provided - what does it mean" text + link.
And we can display this line only once per page and only for pages that do have at least one producer provided data.
What do you think of that?
sounds reasonable
@teolemon Just added a standard info tile about "owner fields" when relevant. Should that be clickable? Is the text explicit enough?
3168930156987 | 16811207 |
---|---|
cc @stephanegigandet
Can we have the same mechanism for Producer provided photos ? do we have the necessary info ?
Doesn't look like we have that kind of information in owner fields: https://fr.openfoodfacts.org/api/v3/product/7300400481588?fields=owner_fields Any product you're thinking of?
Should we have a link to mailto:producers@openfoodfacts.org or a nutripatrol report link https://nutripatrol.openfoodfacts.org/flag/product?barcode=3017620422003&source=web&flavor=off ?
With the current solution we don't have too much space. A click on the info tile could open a dialog or even a page with more explanations. And a button to that email and another to that report link.
Generally speaking, seems OK for me. Could you add some Semantics for screen readers?
Sure, I'll do that the next time I code for this PR.
Thank you @teolemon for your review!
I just have to add a Semantics
and we're OK.
What
Screenshots
Fixes bug(s)
Impacted files
add_basic_details_page.dart
: display "producer provided" icon for name, brands and quantitynutrition_page_loaded.dart
: display "producer provided" icon for serving size and each individual nutrientproduct_query.dart
: set the icon to display when a product field value is "producer provided"smooth_autocomplete_text_field.dart
: added parametersuffixIcon
smooth_text_form_field.dart
: added parametersuffixIcon