diff --git a/packages/smooth_app/assets/onboarding/sample_product_data.json b/packages/smooth_app/assets/onboarding/sample_product_data.json index 96286db761e6..8f1daf506582 100644 --- a/packages/smooth_app/assets/onboarding/sample_product_data.json +++ b/packages/smooth_app/assets/onboarding/sample_product_data.json @@ -280,7 +280,7 @@ "grade" : "a", "icon_url" : "https://static.openfoodfacts.org/images/attributes/dist/ecoscore-a-plus.svg", "id" : "ecoscore", - "match" : 100, + "match" : 91, "name" : "Eco-Score", "panel_id" : "ecoscore", "status" : "known", @@ -332,12 +332,9 @@ ], "brands" : "Open Food Facts", "categories_tags_fr" : [ - "Aliments et boissons à base de végétaux", - "Aliments d'origine végétale", - "Aliments à base de fruits et de légumes", - "Plats préparés", - "Soupes", - "Soupes de légumes" + "Desserts", + "Puddings", + "Riz au lait" ], "code" : "093270067481501", "ecoscore_data" : { @@ -588,27 +585,27 @@ "threatened_species" : {} }, "agribalyse" : { - "agribalyse_proxy_food_code" : "25903", - "co2_agriculture" : 0.10371296, - "co2_consumption" : 0.011022624, - "co2_distribution" : 0.01567597, - "co2_packaging" : 0.09985047, - "co2_processing" : 0.14982524, - "co2_total" : 0.510081444, - "co2_transportation" : 0.12999418, - "code" : "25903", - "dqr" : "2.42", - "ef_agriculture" : 0.023583571, - "ef_consumption" : 0.0040337776, - "ef_distribution" : 0.0044793367, - "ef_packaging" : 0.0099157882, - "ef_processing" : 0.029435401, - "ef_total" : 0.0817923135, - "ef_transportation" : 0.010344439, + "agribalyse_food_code" : "39212", + "co2_agriculture" : 1.0576145, + "co2_consumption" : 0.0066736979, + "co2_distribution" : 0.037768033, + "co2_packaging" : 0.18549789, + "co2_processing" : 0.1707499, + "co2_total" : 1.6881497209, + "co2_transportation" : 0.2298457, + "code" : "39212", + "dqr" : "2.9", + "ef_agriculture" : 0.20745561, + "ef_consumption" : 0.002442269, + "ef_distribution" : 0.0090463285, + "ef_packaging" : 0.015629667, + "ef_processing" : 0.032188518, + "ef_total" : 0.2857774345, + "ef_transportation" : 0.019015042, "is_beverage" : 0, - "name_en" : "Soup, mixed vegetables, prepacked, to be reheated", - "name_fr" : "Soupe aux légumes variés, préemballée à réchauffer", - "score" : 98, + "name_en" : "Rice pudding, refrigerated", + "name_fr" : "Riz au lait, rayon frais", + "score" : 78, "version" : "3.1.1" }, "grade" : "a-plus", @@ -704,77 +701,81 @@ "grade" : "a", "score" : 122 }, - "score" : 111, + "score" : 91, "scores" : { - "ad" : 120, - "al" : 111, - "at" : 117, - "ax" : 121, - "ba" : 113, - "be" : 123, - "bg" : 114, - "ch" : 121, - "cy" : 117, - "cz" : 118, - "de" : 120, - "dk" : 117, - "dz" : 118, - "ee" : 122, - "eg" : 116, - "es" : 117, - "fi" : 121, - "fo" : 120, - "fr" : 123, - "gg" : 123, - "gi" : 112, - "gr" : 118, - "hr" : 116, - "hu" : 115, - "ie" : 118, - "il" : 116, - "im" : 119, - "is" : 119, - "it" : 118, - "je" : 122, - "lb" : 117, - "li" : 121, - "lt" : 120, - "lu" : 123, - "lv" : 122, - "ly" : 119, - "ma" : 120, - "mc" : 119, - "md" : 115, - "me" : 117, - "mk" : 115, - "mt" : 120, - "nl" : 123, - "no" : 114, - "pl" : 115, - "ps" : 117, - "pt" : 113, - "ro" : 116, - "rs" : 112, - "se" : 113, - "si" : 117, - "sj" : 119, - "sk" : 115, - "sm" : 117, - "sy" : 115, - "tn" : 112, - "tr" : 112, - "ua" : 117, - "uk" : 121, - "us" : 111, - "va" : 115, - "world" : 111, - "xk" : 115 + "ad" : 100, + "al" : 91, + "at" : 97, + "ax" : 101, + "ba" : 93, + "be" : 103, + "bg" : 94, + "ch" : 101, + "cy" : 97, + "cz" : 98, + "de" : 100, + "dk" : 97, + "dz" : 98, + "ee" : 102, + "eg" : 96, + "es" : 97, + "fi" : 101, + "fo" : 100, + "fr" : 103, + "gg" : 103, + "gi" : 92, + "gr" : 98, + "hr" : 96, + "hu" : 95, + "ie" : 98, + "il" : 96, + "im" : 99, + "is" : 99, + "it" : 98, + "je" : 102, + "lb" : 97, + "li" : 101, + "lt" : 100, + "lu" : 103, + "lv" : 102, + "ly" : 99, + "ma" : 100, + "mc" : 99, + "md" : 95, + "me" : 97, + "mk" : 95, + "mt" : 100, + "nl" : 103, + "no" : 94, + "pl" : 95, + "ps" : 97, + "pt" : 93, + "ro" : 96, + "rs" : 92, + "se" : 93, + "si" : 97, + "sj" : 99, + "sk" : 95, + "sm" : 97, + "sy" : 95, + "tn" : 92, + "tr" : 92, + "ua" : 97, + "uk" : 101, + "us" : 91, + "va" : 95, + "world" : 91, + "xk" : 95 }, "status" : "known" }, "ecoscore_grade" : "a-plus", - "ecoscore_score" : 111, + "ecoscore_score" : 91, "environment_impact_level_tags" : [], + "image_front_small_url" : "https://images.openfoodfacts.org/images/products/932/700/674/81501/front_en.280.200.jpg", + "image_front_url" : "https://images.openfoodfacts.org/images/products/932/700/674/81501/front_en.280.400.jpg", + "image_ingredients_url" : "https://images.openfoodfacts.org/images/products/932/700/674/81501/ingredients_en.269.400.jpg", + "image_small_url" : "https://images.openfoodfacts.org/images/products/932/700/674/81501/front_en.280.200.jpg", "ingredients_analysis_tags" : [ "en:palm-oil-free", "en:vegan", @@ -786,7 +787,7 @@ { "element_type" : "text", "text_element" : { - "html" : "\n

The carbon emission figure comes from ADEME's Agribalyse database, for the category: \n Soup, mixed vegetables, prepacked, to be reheated\n (Source: ADEME Agribalyse Database)\n

\n ", + "html" : "\n

The carbon emission figure comes from ADEME's Agribalyse database, for the category: \n Rice pudding, refrigerated\n (Source: ADEME Agribalyse Database)\n

\n ", "type" : "summary" } }, @@ -813,8 +814,8 @@ "text" : "Agriculture" }, { - "percent" : 20.3326275087945, - "text" : "20.3 %" + "percent" : 62.6493306195706, + "text" : "62.6 %" } ] }, @@ -826,8 +827,8 @@ "text" : "Processing" }, { - "percent" : 29.3728073746592, - "text" : "29.4 %" + "percent" : 10.1146182643663, + "text" : "10.1 %" } ] }, @@ -839,8 +840,8 @@ "text" : "Packaging" }, { - "percent" : 19.5753974535878, - "text" : "19.6 %" + "percent" : 10.9882368668761, + "text" : "11.0 %" } ] }, @@ -852,8 +853,8 @@ "text" : "Transportation" }, { - "percent" : 25.484985099752, - "text" : "25.5 %" + "percent" : 13.6152437875867, + "text" : "13.6 %" } ] }, @@ -865,8 +866,8 @@ "text" : "Distribution" }, { - "percent" : 3.0732288312766, - "text" : "3.1 %" + "percent" : 2.23724427593216, + "text" : "2.2 %" } ] }, @@ -878,8 +879,8 @@ "text" : "Consumption" }, { - "percent" : 2.16095373192992, - "text" : "2.2 %" + "percent" : 0.395326185668062, + "text" : "0.4 %" } ] } @@ -895,8 +896,8 @@ "title_element" : { "icon_color_from_evaluation" : true, "icon_url" : "https://static.openfoodfacts.org/images/icons/dist/car.svg", - "subtitle" : "51 g CO₂e per 100g of product", - "title" : "Equal to driving 0.3 km in a petrol car" + "subtitle" : "169 g CO₂e per 100g of product", + "title" : "Equal to driving 0.9 km in a petrol car" }, "topics" : [ "environment" @@ -971,7 +972,7 @@ { "element_type" : "text", "text_element" : { - "html" : "\n

Category: \n Soup, mixed vegetables, prepacked, to be reheated\n

\n \n ", + "html" : "\n

Category: \n Rice pudding, refrigerated\n

\n \n ", "type" : "summary" } }, @@ -998,8 +999,8 @@ "text" : "Agriculture" }, { - "percent" : 28.8334807891208, - "text" : "28.8 %" + "percent" : 72.5934188481211, + "text" : "72.6 %" } ] }, @@ -1011,8 +1012,8 @@ "text" : "Processing" }, { - "percent" : 35.987979481715, - "text" : "36.0 %" + "percent" : 11.2634918345871, + "text" : "11.3 %" } ] }, @@ -1024,8 +1025,8 @@ "text" : "Packaging" }, { - "percent" : 12.1231296385815, - "text" : "12.1 %" + "percent" : 5.46917464891721, + "text" : "5.5 %" } ] }, @@ -1037,8 +1038,8 @@ "text" : "Transportation" }, { - "percent" : 12.6472018669578, - "text" : "12.6 %" + "percent" : 6.65379407344354, + "text" : "6.7 %" } ] }, @@ -1050,8 +1051,8 @@ "text" : "Distribution" }, { - "percent" : 5.47647634395376, - "text" : "5.5 %" + "percent" : 3.16551533042753, + "text" : "3.2 %" } ] }, @@ -1063,8 +1064,8 @@ "text" : "Consumption" }, { - "percent" : 4.93173187967106, - "text" : "4.9 %" + "percent" : 0.854605264503485, + "text" : "0.9 %" } ] } @@ -1076,12 +1077,12 @@ ], "level" : "info", "title_element" : { - "grade" : "a_plus", + "grade" : "a", "icon_color_from_evaluation" : true, "icon_size" : "small", "icon_url" : "https://static.openfoodfacts.org/images/icons/dist/lca.svg", - "subtitle" : "Category: Soup, mixed vegetables, prepacked, to be reheated", - "title" : "Average impact of products of the same category: A+ (Score: 98/100)", + "subtitle" : "Category: Rice pudding, refrigerated", + "title" : "Average impact of products of the same category: A (Score: 78/100)", "type" : "grade" }, "topics" : [ @@ -1269,7 +1270,7 @@ { "element_type" : "text", "text_element" : { - "html" : "\n Life cycle analysis score: 98
\n Sum of bonuses and maluses:\n \n +13\n

\n Final score: 100/100\n ", + "html" : "\n Life cycle analysis score: 78
\n Sum of bonuses and maluses:\n \n +13\n

\n Final score: 91/100\n ", "type" : "summary" } } @@ -1279,7 +1280,7 @@ "grade" : "a_plus", "icon_url" : "https://static.openfoodfacts.org/images/attributes/dist/ecoscore-a-plus.svg", "subtitle" : "Product: A good product for you - Open Food Facts - 200 g", - "title" : "Impact for this product: A+ (Score: 100/100)", + "title" : "Impact for this product: A+ (Score: 91/100)", "type" : "grade" }, "topics" : [ @@ -1389,6 +1390,34 @@ { "element_type" : "panel_group", "panel_group_element" : { + "image" : { + "alt" : "A good product for you - Ingredients", + "id" : "ingredients_en", + "lc" : "en", + "sizes" : { + "100" : { + "height" : 100, + "url" : "https://images.openfoodfacts.org/images/products/932/700/674/81501/ingredients_en.269.100.jpg", + "width" : 100 + }, + "200" : { + "height" : 200, + "url" : "https://images.openfoodfacts.org/images/products/932/700/674/81501/ingredients_en.269.200.jpg", + "width" : 200 + }, + "400" : { + "height" : 400, + "url" : "https://images.openfoodfacts.org/images/products/932/700/674/81501/ingredients_en.269.400.jpg", + "width" : 400 + }, + "full" : { + "height" : 3088, + "url" : "https://images.openfoodfacts.org/images/products/932/700/674/81501/ingredients_en.269.full.jpg", + "width" : 3088 + } + }, + "type" : "ingredients" + }, "panel_group_id" : "ingredients", "panel_ids" : [ "ingredients" @@ -1442,6 +1471,21 @@ "html" : "" }, "element_type" : "action" + }, + { + "element_type" : "text", + "text_element" : { + "html" : "\n If you want to report vandalism, inappropriate content or erroneous data you can't fix yourself, report it to our moderators team.\n " + } + }, + { + "action_element" : { + "actions" : [ + "report_product_to_nutripatrol" + ], + "html" : "" + }, + "element_type" : "action" } ], "evaluation" : "neutral", @@ -1654,7 +1698,7 @@ { "element_type" : "text", "text_element" : { - "html" : "\n\n \n \n

Elements that indicate the product is in the 3 - Processed foods group:

\n \n \n \n\n" + "html" : "\n\n \n \n

Elements that indicate the product is in the 3 - Processed foods group:

\n \n \n \n\n" } }, { @@ -1934,7 +1978,7 @@ "title_element" : { "icon_url" : "https://static.openfoodfacts.org/images/attributes/dist/points-negative-0-10.svg", "subtitle" : "0/10 points (120kJ)", - "title" : "Calories" + "title" : "Energy" }, "topics" : [ "health" @@ -2125,17 +2169,10 @@ "text" : "Nutrition facts", "type" : "text" }, - { - "column_group_id" : "product", - "shown_by_default" : true, - "text" : "As sold
for 100 g / 100 ml", - "text_for_small_screens" : "100g", - "type" : "text" - }, { "column_group_id" : "comparisons", "shown_by_default" : true, - "text" : "Compared to: Vegetable soups", + "text" : "Compared to: Rice puddings", "type" : "text" } ], @@ -2148,12 +2185,9 @@ "style" : "max-width:15rem", "text" : "Energy" }, - { - "text" : "120 kj
(29 kcal)" - }, { "evaluation" : "good", - "text" : "-54%" + "text" : "-75%" } ] }, @@ -2164,12 +2198,9 @@ "style" : "max-width:15rem", "text" : "Fat" }, - { - "text" : "0.5 g" - }, { "evaluation" : "good", - "text" : "-69%" + "text" : "-79%" } ] }, @@ -2180,12 +2211,9 @@ "style" : "max-width:15rem", "text" : "Saturated fat" }, - { - "text" : "0.2 g" - }, { "evaluation" : "good", - "text" : "-42%" + "text" : "-86%" } ] }, @@ -2197,11 +2225,8 @@ "text" : "Salt" }, { - "text" : "0.4 g" - }, - { - "evaluation" : "good", - "text" : "-39%" + "evaluation" : "bad", + "text" : "+104%" } ] }, @@ -2213,10 +2238,7 @@ "text" : "Carbohydrates" }, { - "text" : "4 g" - }, - { - "text" : "-62%" + "text" : "-80%" } ] }, @@ -2227,12 +2249,9 @@ "style" : "max-width:15rem", "text" : "Fiber" }, - { - "text" : "3 g" - }, { "evaluation" : "good", - "text" : "+95%" + "text" : "+4,959%" } ] }, @@ -2243,12 +2262,9 @@ "style" : "max-width:15rem", "text" : "Sugars" }, - { - "text" : "0.5 g" - }, { "evaluation" : "good", - "text" : "-82%" + "text" : "-96%" } ] }, @@ -2259,12 +2275,9 @@ "style" : "max-width:15rem", "text" : "Proteins" }, - { - "text" : "1 g" - }, { "evaluation" : "bad", - "text" : "-56%" + "text" : "-68%" } ] }, @@ -2275,9 +2288,6 @@ "style" : "max-width:15rem", "text" : "Fruits‚ vegetables‚ nuts and rapeseed‚ walnut and olive oils (estimate from ingredients list analysis)" }, - { - "text" : "65 %" - }, { "text" : "" } @@ -2613,6 +2623,42 @@ "product_name" : "A good product for you", "product_quantity" : "200", "quantity" : "200 g", + "selected_images" : { + "front" : { + "display" : { + "ar" : "https://images.openfoodfacts.org/images/products/932/700/674/81501/front_ar.278.400.jpg", + "en" : "https://images.openfoodfacts.org/images/products/932/700/674/81501/front_en.280.400.jpg", + "fr" : "https://images.openfoodfacts.org/images/products/932/700/674/81501/front_fr.274.400.jpg" + }, + "small" : { + "ar" : "https://images.openfoodfacts.org/images/products/932/700/674/81501/front_ar.278.200.jpg", + "en" : "https://images.openfoodfacts.org/images/products/932/700/674/81501/front_en.280.200.jpg", + "fr" : "https://images.openfoodfacts.org/images/products/932/700/674/81501/front_fr.274.200.jpg" + }, + "thumb" : { + "ar" : "https://images.openfoodfacts.org/images/products/932/700/674/81501/front_ar.278.100.jpg", + "en" : "https://images.openfoodfacts.org/images/products/932/700/674/81501/front_en.280.100.jpg", + "fr" : "https://images.openfoodfacts.org/images/products/932/700/674/81501/front_fr.274.100.jpg" + } + }, + "ingredients" : { + "display" : { + "ar" : "https://images.openfoodfacts.org/images/products/932/700/674/81501/ingredients_ar.271.400.jpg", + "en" : "https://images.openfoodfacts.org/images/products/932/700/674/81501/ingredients_en.269.400.jpg", + "fr" : "https://images.openfoodfacts.org/images/products/932/700/674/81501/ingredients_fr.276.400.jpg" + }, + "small" : { + "ar" : "https://images.openfoodfacts.org/images/products/932/700/674/81501/ingredients_ar.271.200.jpg", + "en" : "https://images.openfoodfacts.org/images/products/932/700/674/81501/ingredients_en.269.200.jpg", + "fr" : "https://images.openfoodfacts.org/images/products/932/700/674/81501/ingredients_fr.276.200.jpg" + }, + "thumb" : { + "ar" : "https://images.openfoodfacts.org/images/products/932/700/674/81501/ingredients_ar.271.100.jpg", + "en" : "https://images.openfoodfacts.org/images/products/932/700/674/81501/ingredients_en.269.100.jpg", + "fr" : "https://images.openfoodfacts.org/images/products/932/700/674/81501/ingredients_fr.276.100.jpg" + } + } + }, "states_tags" : [ "en:to-be-completed", "en:nutrition-facts-completed", @@ -2626,7 +2672,12 @@ "en:packaging-to-be-completed", "en:quantity-completed", "en:product-name-completed", - "en:photos-to-be-uploaded" + "en:photos-to-be-validated", + "en:packaging-photo-to-be-selected", + "en:nutrition-photo-to-be-selected", + "en:ingredients-photo-selected", + "en:front-photo-selected", + "en:photos-uploaded" ] }, "status" : 1,