Skip to content

Commit 00a97eb

Browse files
fix: 7107 - remove the "example" product only at the end of the on-boarding (#7112)
* fix: 7107 - remove the "example" product only at the end * more resilient tests for method "isProductIncomplete"; added data Impacted files: * `product_incomplete_card.dart`: more resilient tests for method "isProductIncomplete" * `sample_product_data.json`: refreshed data * `update_assets.sh`: added ingredients; localized to english categories and label tags
1 parent 7e0bec5 commit 00a97eb

File tree

4 files changed

+3211
-3210
lines changed

4 files changed

+3211
-3210
lines changed

ci/update_assets.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ SMOOTHIE_PATH="${REPO_DIR}/packages/smooth_app"
99

1010
echo "Updating perfect product"
1111

12-
PERFECT_PRODUCT_URI="https://world.openfoodfacts.org/api/v2/product/example/?fields=product_name%2Cbrands%2Ccode%2Cnutrition_grade_fr%2Cimage_small_url%2Cimage_front_small_url%2Cimage_front_url%2Cimage_ingredients_url%2Cimage_nutrition_url%2Cimage_packaging_url%2Cselected_images%2Cquantity%2Cserving_size%2Cproduct_quantity%2Cnutriments%2Cnutrient_levels%2Cnutriment_energy_unit%2Cadditives_tags%2Cingredients_analysis_tags%2Clabels_tags%2Clabels_tags_fr%2Cenvironment_impact_level_tags%2Ccategories_tags_fr%2Clang%2Cattribute_groups%2Cstates_tags%2Cecoscore_data%2Cecoscore_grade%2Cecoscore_score%2Cenvironment_impact_level_tags%2Cknowledge_panels&lc=en&cc=US"
12+
PERFECT_PRODUCT_URI="https://world.openfoodfacts.org/api/v2/product/example/?fields=product_name%2Cbrands%2Ccode%2Cnutrition_grade_fr%2Cimage_small_url%2Cimage_front_small_url%2Cimage_front_url%2Cimage_ingredients_url%2Cimage_nutrition_url%2Cimage_packaging_url%2Cselected_images%2Cquantity%2Cserving_size%2Cproduct_quantity%2Cnutriments%2Cnutrient_levels%2Cnutriment_energy_unit%2Cadditives_tags%2Cingredients_analysis_tags%2Clabels_tags%2Clabels_tags_en%2Cenvironment_impact_level_tags%2Ccategories_tags_en%2Clang%2Cattribute_groups%2Cstates_tags%2Cecoscore_data%2Cecoscore_grade%2Cecoscore_score%2Cenvironment_impact_level_tags%2Cknowledge_panels%2Cingredients_text_languages&lc=en&cc=US"
1313
PERFECT_PRODUCT_PATH="${SMOOTHIE_PATH}/assets/onboarding/sample_product_data.json"
1414
curl $PERFECT_PRODUCT_URI | json_pp > $PERFECT_PRODUCT_PATH
1515

0 commit comments

Comments
 (0)