diff --git a/packages/smooth_app/assets/onboarding/sample_product_data.json b/packages/smooth_app/assets/onboarding/sample_product_data.json index 96286db761e..6a0ee8892c4 100644 --- a/packages/smooth_app/assets/onboarding/sample_product_data.json +++ b/packages/smooth_app/assets/onboarding/sample_product_data.json @@ -7,22 +7,22 @@ "attributes" : [ { "description" : "", - "description_short" : "Very good nutritional quality", - "grade" : "a", - "icon_url" : "https://static.openfoodfacts.org/images/attributes/dist/nutriscore-a-new-en.svg", + "description_short" : "Good nutritional quality", + "grade" : "b", + "icon_url" : "https://static.openfoodfacts.org/images/attributes/dist/nutriscore-b-new-en.svg", "id" : "nutriscore", - "match" : 81, + "match" : 63.375, "name" : "Nutri-Score", "panel_id" : "nutriscore_2023", "status" : "known", - "title" : "Nutri-Score A" + "title" : "Nutri-Score B" }, { "description_short" : "0.4 g / 100 g", - "grade" : "b", + "grade" : "c", "icon_url" : "https://static.openfoodfacts.org/images/attributes/dist/nutrient-level-salt-medium.svg", "id" : "low_salt", - "match" : 75, + "match" : 55, "name" : "Salt", "status" : "known", "title" : "Salt in moderate quantity" @@ -32,7 +32,7 @@ "grade" : "a", "icon_url" : "https://static.openfoodfacts.org/images/attributes/dist/nutrient-level-fat-low.svg", "id" : "low_fat", - "match" : 96.6666666666667, + "match" : 93.3333333333333, "name" : "Fat", "status" : "known", "title" : "Fat in low quantity" @@ -42,7 +42,7 @@ "grade" : "a", "icon_url" : "https://static.openfoodfacts.org/images/attributes/dist/nutrient-level-sugars-low.svg", "id" : "low_sugars", - "match" : 98, + "match" : 96, "name" : "Sugars", "status" : "known", "title" : "Sugars in low quantity" @@ -52,7 +52,7 @@ "grade" : "a", "icon_url" : "https://static.openfoodfacts.org/images/attributes/dist/nutrient-level-saturated-fat-low.svg", "id" : "low_saturated_fat", - "match" : 97.3333333333333, + "match" : 94.6666666666667, "name" : "Saturated fat", "status" : "known", "title" : "Saturated fat in low quantity" @@ -276,15 +276,15 @@ "attributes" : [ { "description" : "", - "description_short" : "Very low environmental impact", - "grade" : "a", - "icon_url" : "https://static.openfoodfacts.org/images/attributes/dist/ecoscore-a-plus.svg", + "description_short" : "High environmental impact", + "grade" : "d", + "icon_url" : "https://static.openfoodfacts.org/images/attributes/dist/ecoscore-d.svg", "id" : "ecoscore", - "match" : 100, + "match" : 40, "name" : "Eco-Score", "panel_id" : "ecoscore", "status" : "known", - "title" : "Eco-Score A+" + "title" : "Eco-Score D" }, { "description" : "", @@ -332,12 +332,28 @@ ], "brands" : "Open Food Facts", "categories_tags_fr" : [ + "Boissons et préparations de boissons", "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" + "Boissons", + "Produits laitiers", + "Produits fermentés", + "Produits laitiers fermentés", + "Desserts", + "Desserts lactés", + "Boissons lactées", + "Desserts lactés fermentés", + "Desserts lactés fermentés aux fruits", + "Boissons fermentées", + "Yaourts", + "Boissons lactées fermentées", + "Yaourts aux fruits", + "Yaourts à boire", + "Yaourts à la grecque", + "Yaourts allégés en matière grasse", + "Yaourts au lait de brebis", + "Yaourts entiers", + "Yaourt à la grecque au lait de brebis", + "Qli" ], "code" : "093270067481501", "ecoscore_data" : { @@ -588,94 +604,94 @@ "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, - "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, + "agribalyse_food_code" : "19550", + "co2_agriculture" : 1.6776581, + "co2_consumption" : 0.0066736979, + "co2_distribution" : 0.035969873, + "co2_packaging" : 0.18031662, + "co2_processing" : 0.14937424, + "co2_total" : 2.2347196009, + "co2_transportation" : 0.18472707, + "code" : "19550", + "dqr" : "2.49", + "ef_agriculture" : 0.22339955, + "ef_consumption" : 0.002442269, + "ef_distribution" : 0.0089059516, + "ef_packaging" : 0.01501622, + "ef_processing" : 0.029330544, + "ef_total" : 0.2934575206, + "ef_transportation" : 0.014362986, + "is_beverage" : 1, + "name_en" : "Yogurt, Greek-style, ewe's milk", + "name_fr" : "Yaourt à la grecque, au lait de brebis", + "score" : 27, "version" : "3.1.1" }, - "grade" : "a-plus", + "grade" : "d", "grades" : { - "ad" : "a-plus", - "al" : "a-plus", - "at" : "a-plus", - "ax" : "a-plus", - "ba" : "a-plus", - "be" : "a-plus", - "bg" : "a-plus", - "ch" : "a-plus", - "cy" : "a-plus", - "cz" : "a-plus", - "de" : "a-plus", - "dk" : "a-plus", - "dz" : "a-plus", - "ee" : "a-plus", - "eg" : "a-plus", - "es" : "a-plus", - "fi" : "a-plus", - "fo" : "a-plus", - "fr" : "a-plus", - "gg" : "a-plus", - "gi" : "a-plus", - "gr" : "a-plus", - "hr" : "a-plus", - "hu" : "a-plus", - "ie" : "a-plus", - "il" : "a-plus", - "im" : "a-plus", - "is" : "a-plus", - "it" : "a-plus", - "je" : "a-plus", - "lb" : "a-plus", - "li" : "a-plus", - "lt" : "a-plus", - "lu" : "a-plus", - "lv" : "a-plus", - "ly" : "a-plus", - "ma" : "a-plus", - "mc" : "a-plus", - "md" : "a-plus", - "me" : "a-plus", - "mk" : "a-plus", - "mt" : "a-plus", - "nl" : "a-plus", - "no" : "a-plus", - "pl" : "a-plus", - "ps" : "a-plus", - "pt" : "a-plus", - "ro" : "a-plus", - "rs" : "a-plus", - "se" : "a-plus", - "si" : "a-plus", - "sj" : "a-plus", - "sk" : "a-plus", - "sm" : "a-plus", - "sy" : "a-plus", - "tn" : "a-plus", - "tr" : "a-plus", - "ua" : "a-plus", - "uk" : "a-plus", - "us" : "a-plus", - "va" : "a-plus", - "world" : "a-plus", - "xk" : "a-plus" + "ad" : "c", + "al" : "d", + "at" : "c", + "ax" : "c", + "ba" : "d", + "be" : "c", + "bg" : "d", + "ch" : "c", + "cy" : "c", + "cz" : "c", + "de" : "c", + "dk" : "c", + "dz" : "c", + "ee" : "c", + "eg" : "c", + "es" : "c", + "fi" : "c", + "fo" : "c", + "fr" : "c", + "gg" : "c", + "gi" : "d", + "gr" : "c", + "hr" : "c", + "hu" : "d", + "ie" : "c", + "il" : "c", + "im" : "c", + "is" : "c", + "it" : "c", + "je" : "c", + "lb" : "c", + "li" : "c", + "lt" : "c", + "lu" : "c", + "lv" : "c", + "ly" : "c", + "ma" : "c", + "mc" : "c", + "md" : "d", + "me" : "c", + "mk" : "d", + "mt" : "c", + "nl" : "c", + "no" : "d", + "pl" : "d", + "ps" : "c", + "pt" : "d", + "ro" : "c", + "rs" : "d", + "se" : "d", + "si" : "c", + "sj" : "c", + "sk" : "d", + "sm" : "c", + "sy" : "d", + "tn" : "d", + "tr" : "d", + "ua" : "c", + "uk" : "c", + "us" : "d", + "va" : "d", + "world" : "d", + "xk" : "d" }, "previous_data" : { "agribalyse" : { @@ -704,77 +720,81 @@ "grade" : "a", "score" : 122 }, - "score" : 111, + "score" : 40, "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" : 49, + "al" : 40, + "at" : 46, + "ax" : 50, + "ba" : 42, + "be" : 52, + "bg" : 43, + "ch" : 50, + "cy" : 46, + "cz" : 47, + "de" : 49, + "dk" : 46, + "dz" : 47, + "ee" : 51, + "eg" : 45, + "es" : 46, + "fi" : 50, + "fo" : 49, + "fr" : 52, + "gg" : 52, + "gi" : 41, + "gr" : 47, + "hr" : 45, + "hu" : 44, + "ie" : 47, + "il" : 45, + "im" : 48, + "is" : 48, + "it" : 47, + "je" : 51, + "lb" : 46, + "li" : 50, + "lt" : 49, + "lu" : 52, + "lv" : 51, + "ly" : 48, + "ma" : 49, + "mc" : 48, + "md" : 44, + "me" : 46, + "mk" : 44, + "mt" : 49, + "nl" : 52, + "no" : 43, + "pl" : 44, + "ps" : 46, + "pt" : 42, + "ro" : 45, + "rs" : 41, + "se" : 42, + "si" : 46, + "sj" : 48, + "sk" : 44, + "sm" : 46, + "sy" : 44, + "tn" : 41, + "tr" : 41, + "ua" : 46, + "uk" : 50, + "us" : 40, + "va" : 44, + "world" : 40, + "xk" : 44 }, "status" : "known" }, - "ecoscore_grade" : "a-plus", - "ecoscore_score" : 111, + "ecoscore_grade" : "d", + "ecoscore_score" : 40, "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 +806,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" : "\nThe carbon emission figure comes from ADEME's Agribalyse database, for the category: \n Yogurt, Greek-style, ewe's milk\n (Source: ADEME Agribalyse Database)\n
\n ", "type" : "summary" } }, @@ -813,8 +833,8 @@ "text" : "Agriculture" }, { - "percent" : 20.3326275087945, - "text" : "20.3 %" + "percent" : 75.0724206886783, + "text" : "75.1 %" } ] }, @@ -826,8 +846,8 @@ "text" : "Processing" }, { - "percent" : 29.3728073746592, - "text" : "29.4 %" + "percent" : 6.68424977969682, + "text" : "6.7 %" } ] }, @@ -839,8 +859,8 @@ "text" : "Packaging" }, { - "percent" : 19.5753974535878, - "text" : "19.6 %" + "percent" : 8.0688700241131, + "text" : "8.1 %" } ] }, @@ -852,8 +872,8 @@ "text" : "Transportation" }, { - "percent" : 25.484985099752, - "text" : "25.5 %" + "percent" : 8.2662303550568, + "text" : "8.3 %" } ] }, @@ -865,8 +885,8 @@ "text" : "Distribution" }, { - "percent" : 3.0732288312766, - "text" : "3.1 %" + "percent" : 1.60959222738789, + "text" : "1.6 %" } ] }, @@ -878,8 +898,8 @@ "text" : "Consumption" }, { - "percent" : 2.16095373192992, - "text" : "2.2 %" + "percent" : 0.298636925067121, + "text" : "0.3 %" } ] } @@ -895,8 +915,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" : "223 g CO₂e per 100g of product", + "title" : "Equal to driving 1.2 km in a petrol car" }, "topics" : [ "environment" @@ -956,10 +976,10 @@ ], "level" : "info", "title_element" : { - "grade" : "a_plus", - "icon_url" : "https://static.openfoodfacts.org/images/attributes/dist/ecoscore-a-plus.svg", + "grade" : "d", + "icon_url" : "https://static.openfoodfacts.org/images/attributes/dist/ecoscore-d.svg", "name" : "Eco-Score", - "title" : "Eco-Score A-PLUS - Very low environmental impact", + "title" : "Eco-Score D - High environmental impact", "type" : "grade" }, "topics" : [ @@ -971,7 +991,7 @@ { "element_type" : "text", "text_element" : { - "html" : "\nCategory: \n Soup, mixed vegetables, prepacked, to be reheated\n
\nCategory: \n Yogurt, Greek-style, ewe's milk\n
\nElements that indicate the product is in the 3 - Processed foods group:
\nElements that indicate the product is in the 3 - Processed foods group:
\n\n \n Non-nutritive sweeteners may not confer any long-term benefit in reducing body fat in adults or children. There may be potential undesirable effects from long-term use of non-nutritive sweeteners, such as an increased risk of type 2 diabetes and cardiovascular diseases in adults.\n
\n " + } + } + ], + "level" : "info", + "size" : "small", + "title_element" : { + "icon_url" : "https://static.openfoodfacts.org/images/attributes/dist/points-negative-0-4.svg", + "subtitle" : "0/4 points (0 sweetener)", + "title" : "Non-nutritive sweeteners" + }, + "topics" : [ + "health" + ] + }, "nutriscore_component_proteins" : { "elements" : [ { @@ -2052,8 +2121,8 @@ "level" : "info", "size" : "small", "title_element" : { - "icon_url" : "https://static.openfoodfacts.org/images/attributes/dist/points-negative-0-15.svg", - "subtitle" : "0/15 points (0.5g)", + "icon_url" : "https://static.openfoodfacts.org/images/attributes/dist/points-negative-0-10.svg", + "subtitle" : "0/10 points (0.5g)", "title" : "Sugar" }, "topics" : [ @@ -2099,7 +2168,7 @@ { "element_type" : "text", "text_element" : { - "html" : "\n\nThis product is not considered a beverage for the calculation of the Nutri-Score.
\n\n\n\n\n\nPoints for proteins are counted because the negative points are less than 11.
\n\n\n Nutritional score: -1\n (1 - 2)\n
\nNutri-Score: A
\n " + "html" : "\n\nThis product is considered a beverage for the calculation of the Nutri-Score.
\n\n\n\n\n\nPoints for proteins are counted because the product is considered to be a beverage.
\n\n\n Nutritional score: -1\n (3 - 4)\n
\nNutri-Score: B
\n " } } ], @@ -2125,17 +2194,10 @@ "text" : "Nutrition facts", "type" : "text" }, - { - "column_group_id" : "product", - "shown_by_default" : true, - "text" : "As sold