Skip to content
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: 5335 - owner field icon/info for "categories" #5845

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

monsieurtanuki
Copy link
Contributor

What

  • Now we display the "owner field" icon and info for "categories", when relevant.

Screenshots

"categories" page "multi" page (top) "multi" page (lower)
Screenshot_1731431653 Screenshot_1731431662 Screenshot_1731431678

Fixes bug(s)

Impacted files

  • add_basic_details_page.dart: minor refactoring
  • nutrition_page_loaded.dart: minor refactoring
  • owner_field_info.dart: new class OwnerFieldIcon
  • simple_input_page.dart: now displays an OwnerFieldInfo if there's at least one owner field
  • simple_input_page_helpers.dart: new method bool isOwnerField
  • simple_input_text_field.dart: minor refactoring
  • simple_input_widget.dart: now displays an OwnerFieldIcon if it's an owner field

Impacted files:
* `add_basic_details_page.dart`: minor refactoring
* `nutrition_page_loaded.dart`: minor refactoring
* `owner_field_info.dart`: new class `OwnerFieldIcon`
* `simple_input_page.dart`: now displays an `OwnerFieldInfo` if there's at least one owner field
* `simple_input_page_helpers.dart`: new method `bool isOwnerField`
* `simple_input_text_field.dart`: minor refactoring
* `simple_input_widget.dart`: now displays an `OwnerFieldIcon` if it's an owner field
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 7.14286% with 13 lines in your changes missing coverage. Please review.

Project coverage is 6.92%. Comparing base (4d9c7fc) to head (db23850).
Report is 471 commits behind head on develop.

Files with missing lines Patch % Lines
...p/lib/pages/product/simple_input_page_helpers.dart 0.00% 5 Missing ⚠️
...smooth_app/lib/pages/product/owner_field_info.dart 25.00% 3 Missing ⚠️
...mooth_app/lib/pages/product/simple_input_page.dart 0.00% 3 Missing ⚠️
...app/lib/pages/product/simple_input_text_field.dart 0.00% 1 Missing ⚠️
...oth_app/lib/pages/product/simple_input_widget.dart 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           develop   #5845      +/-   ##
==========================================
- Coverage     9.54%   6.92%   -2.63%     
==========================================
  Files          325     422      +97     
  Lines        16411   23263    +6852     
==========================================
+ Hits          1567    1611      +44     
- Misses       14844   21652    +6808     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@teolemon teolemon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good

@teolemon teolemon merged commit 8fc4174 into openfoodfacts:develop Nov 14, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment