mirror of
https://github.com/openfoodfacts/smooth-app.git
synced 2025-08-26 03:01:45 +08:00

* feat: 5195 - new "add one product price" page with background task New files: * `background_task_add_price.dart`: Background task about adding a product price. * `currency_selector_helper.dart`: Helper for currency selection. * `price_amount_card.dart`: Card that displays the amounts (discounted or not) for price adding. * `price_amount_field.dart`: Text field that displays a single amount for price adding. * `price_currency_card.dart`: Card that displays the currency for price adding. * `price_currency_selector.dart`: Button that displays the currency for price adding. * `price_date_card.dart`: Card that displays the date for price adding. * `price_location_card.dart`: Card that displays the location for price adding. * `price_model.dart`: Price Model (checks and background task call) for price adding. * `price_proof_card.dart`: Card that displays the proof for price adding. * `product_price_add_page.dart`: Single page that displays all the elements of price adding. Impacted files: * `app_en.arb`: added labels related to price adding * `app_fr.arb`: added labels related to price adding * `background_task_crop.dart`: minor refactoring * `background_task_image.dart`: minor refactoring * `background_task_upload.dart`: minor refactoring * `currency_selector.dart`: refactored with new class `CurrencySelectorHelper` * `dao_osm_location.dart`: minor refactoring * `image_crop_page.dart`: minor refactoring * `location_list_supplier.dart`: minor refactoring * `location_map_page.dart`: added action buttons for location description and location confirmation * `operation_type.dart`: added data for new class `BackgroundTaskAddPrice` * `prices_card.dart`: now opening new page `ProductPriceAddPage` * `product_price_item.dart`: minor improvement * `product_prices_page.dart`: minor improvement * `pubspec.lock`: wtf * `pubspec.yaml`: upgraded `openfoodfacts` to `3.10.0` * `search_location_preloaded_item.dart`: now enabling the map page to confirm a location * fine-tuning Impacted files: * `app_en.arb`: added labels related to prices * `app_fr.arb`: added labels related to prices * `edit_product_page.dart`: added a link to "Add product price" page * `prices_card.dart`: refactoring * `product_price_add_page.dart`: fixed the FAB label; refactored the access using a static method * `product_price_item.dart`: now displaying the not discounted price; refactored * `product_prices_list.dart`: localized * `product_prices_page.dart`: added a FAB to "Add product price" page