* fix: 6784 - readyForPriceTagValidation true only for priceTag and bulk
Impacted files:
* `background_task_add_price.dart`: added field and parameter `bool bulkProofUpload`; set `readyForPriceTagValidation` as "priceTag and bulk"
* `price_bulk_proof_card.dart`: added warning about AI and image validation
* `price_model.dart`: added field `bool bulkProofUpload`
* `proof_bulk_add_page.dart`: added parameter `bulkProofUpload: true`
* Replaced parameter bulkProofUpload with readyForPriceTagValidation
Impacted files:
* `background_task_add_price.dart`: replaced parameter bulkProofUpload with readyForPriceTagValidation
* `price_bulk_proof_card.dart`: added a switch to change the value of readyForPriceTagValidation
* `price_model.dart`: readyForPriceTagValidation with getter and setter
* `proof_bulk_add_page.dart`: start with the default user value for readyForPriceTagValidation
* `user_preferences.dart`: storing the default user value for readyForPriceTagValidation
* minor fix
* Localization
Impacted files:
* `background_task_add_other_price.dart`: minor refactoring
* `background_task_add_price.dart`: minor refactoring
* `background_task_price.dart`: now using new method `ProductQuery.getPriceToken` to get the token; never closing the token session at the end
* `infinite_scroll_manager.dart`: minor refactoring
* `prices_proofs_page.dart`: minor refactoring
* `product_query.dart`: new method `getPriceToken` that caches the token
New files:
* `price_category_repository.dart`: Helper for "Category" tag localization.
* `price_category_widget.dart`: Price Category display (no price data here).
* `price_l10n_helper.dart`: Localization helper for prices, managing static cache and downloads.
* `price_label_repository.dart`: Helper for "Labels" tag localization.
* `price_origin_repository.dart`: Helper for "Origins" tag localization.
* `price_taxonomy_repository.dart`: Helper for tag localization using taxonomy.
Impacted files:
* `price_data_value.dart`: now displaying "pricePer" when relevant
* `price_existing_amount_card.dart`: refactored the display of localized tags now using new class `PriceL10nHelper`
* `price_product_widget.dart`: minor refactoring
* `product_prices_list.dart`: now displaying new `PriceCategoryWidget` widget when relevant
* `pubspec.lock`: wtf
Impacted files:
* `background_task_add_other_price.dart`: can be called silently from another task
* `background_task_add_price.dart`: now splitting price adding into one-price-one-task
* `background_task_price.dart`: if successful, the proof upload calls another task and that's it
* `price_to_oxf.dart`: slightly unrelated patch about multiproduct search being crap
* feat: 6591 - update OxF data with Prices data
New file:
* `price_to_oxf.dart`: Tool to update OxF data from Prices data.
Impacted files:
* `background_task.dart`: unrelated minor refactoring
* `background_task_details.dart`: minor refactoring
* `background_task_price.dart`: now updating OxF products with Prices data
* `simple_input_page_helpers.dart`: minor refactoring
* merging
* format
* sorry about that, couldn't merge "develop"
* effing stupid dart format
* effing stupid dart format, again
---------
Co-authored-by: Pierre Slamich <pierre@openfoodfacts.org>
Impacted files:
* `background_task_add_price.dart`: snackbar display is now optional
* `price_bulk_proof_card.dart`: changed the display of the upload process - no snackbar, text replacing the button
* `price_model.dart`: minor refactoring
* `product_price_add_page.dart`: minor refactoring
Impacted files:
* `infinite_scroll_manager.dart`: added optional initial total number of items and pages
* `product_prices_list.dart`: populated the new initial total number of items and pages parameters
* feat: 5553 - add prices for category products
New files:
* `price_category_input_page.dart`: Page that lets the user type in and select a single category for prices.
* `price_per_extension.dart`: Extension for PricePer.
Impacted files:
* `app_en.arb`: added 4 labels related to category and prices
* `app_fr.arb`: added 4 labels related to category and prices
* `background_task_add_other_price.dart`: added parameters related to category prices
* `background_task_add_price.dart`: added parameters related to category prices
* `background_task_price.dart`: added parameters related to category prices
* `price_add_product_card.dart`: added an "add category product" button
* `price_amount_card.dart`: added a DropDownButton for "price per" for category product
* `price_amount_model.dart`: taken category prices into consideration
* `price_existing_amount_card.dart`: unrelated localization
* `price_meta_product.dart`: added a new meta product, related to category
* `price_model.dart`: added parameters related to category prices
* `smooth_autocomplete_text_field.dart`: added an "onSelected" optional parameter, in order to be able to select immediately a suggestion
* `smooth_dropdown.dart`: added an "isExpanded" optional parameter, in order to match the screen width
* minor refactoring and localizations
Impacted files:
* `app_en.arb`: additional translations for "price per"
* `app_fr.arb`: additional translations for "price per"
* `price_existing_amount_field.dart`: localization
* `price_meta_product.dart`: minor refactoring
* `price_per_extension.dart`: additional translations for "price per"
* reformatting
* added origins and prepared code for labels
Impacted files:
* `app_en.arb`: improved a label and added 3 labels
* `app_fr.arb`: improved a label and added 3 labels
* `background_task_add_other_price.dart`: now setting origins and labels
* `background_task_add_price.dart`: now setting origins and labels
* `background_task_price.dart`: now setting origins and labels
* `price_add_product_card.dart`: refactored as we now set origins too (in addition to just category)
* `price_category_input_page.dart`: refactored as we now set origins too (in addition to just category)
* `price_existing_amount_card.dart`: display origins too
* `price_meta_product.dart`: now setting and displaying origins too
* `price_model.dart`: we now set origins too, and prepared code for labels when ready on the "prices" side
* `price_product_list_tile.dart`: now displaying origins too
* someone moved a file and that's not nice ;)
* explicit 1 line for autocomplete
Impacted files:
* `infinite_scroll_list.dart`: no more reference to "prices" or pages in the count label; added a snackbar about counts when scrolling down
* `infinite_scroll_manager.dart`: minor refactoring
* `prices_locations_page.dart`: now ordering by descending counts, and using the prices env of the app (instead of always PROD)
* `prices_users_page.dart`: now displaying pages of 20 users
* Ensure the NutriScore guide always have a white status bar
* Fix food icons
* Product card without attributes
* Non-selected popular languages must be in the general list
* Fix infinite scroll
* Minor fixes for NOVA 2/3
* fix: dark mode issue in feedback page
* fix: dark mode issue in feedback page
* fix: dark mode issue in feedback page
* fix: dark mode issue in feedback page
* fix: dark mode issue in feedback page