diff --git a/packages/smooth_app/assets/onboarding/sample_product_data.json b/packages/smooth_app/assets/onboarding/sample_product_data.json index 8da40ee7319..ad3eeaabe3d 100644 --- a/packages/smooth_app/assets/onboarding/sample_product_data.json +++ b/packages/smooth_app/assets/onboarding/sample_product_data.json @@ -7,15 +7,15 @@ "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" : "Average nutritional quality", + "grade" : "c", + "icon_url" : "https://static.openfoodfacts.org/images/attributes/dist/nutriscore-c-new-en.svg", "id" : "nutriscore", - "match" : 81, + "match" : 53.6666666666667, "name" : "Nutri-Score", "panel_id" : "nutriscore_2023", "status" : "known", - "title" : "Nutri-Score A" + "title" : "Nutri-Score C" }, { "description_short" : "0.4 g / 100 g", @@ -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.svg", + "description_short" : "Moderate environmental impact", + "grade" : "c", + "icon_url" : "https://static.openfoodfacts.org/images/attributes/dist/ecoscore-c.svg", "id" : "ecoscore", - "match" : 100, + "match" : 52, "name" : "Eco-Score", "panel_id" : "ecoscore", "status" : "known", - "title" : "Eco-Score A" + "title" : "Eco-Score C" }, { "description" : "", @@ -330,14 +330,13 @@ "name" : "Labels" } ], - "brands" : "Open Food Facts", + "brands" : "zoahary Baobab", "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" + "Fruits à coques et dérivés", + "Fruits à coques", + "Noix de pécan" ], "code" : "093270067481501", "ecoscore_data" : { @@ -588,94 +587,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, + "agribalyse_food_code" : "15026", + "co2_agriculture" : 3.0057327, + "co2_consumption" : 0, + "co2_distribution" : 0.022656431, + "co2_packaging" : 0.26506589, + "co2_processing" : 0.193667, + "co2_total" : 3.645935751, + "co2_transportation" : 0.15881373, + "code" : "15026", + "dqr" : "3.7", + "ef_agriculture" : 0.85680536, + "ef_consumption" : 0, + "ef_distribution" : 0.0064206332, + "ef_packaging" : 0.021858877, + "ef_processing" : 0.012180043, + "ef_total" : 0.9099332482, + "ef_transportation" : 0.012668335, "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" : "Pecan nut", + "name_fr" : "Noix de pécan", + "score" : 34, "version" : "3.1.1" }, - "grade" : "a", + "grade" : "c", "grades" : { - "ad" : "a", - "al" : "a", - "at" : "a", - "ax" : "a", - "ba" : "a", - "be" : "a", - "bg" : "a", - "ch" : "a", - "cy" : "a", - "cz" : "a", - "de" : "a", - "dk" : "a", - "dz" : "a", - "ee" : "a", - "eg" : "a", - "es" : "a", - "fi" : "a", - "fo" : "a", - "fr" : "a", - "gg" : "a", - "gi" : "a", - "gr" : "a", - "hr" : "a", - "hu" : "a", - "ie" : "a", - "il" : "a", - "im" : "a", - "is" : "a", - "it" : "a", - "je" : "a", - "lb" : "a", - "li" : "a", - "lt" : "a", - "lu" : "a", - "lv" : "a", - "ly" : "a", - "ma" : "a", - "mc" : "a", - "md" : "a", - "me" : "a", - "mk" : "a", - "mt" : "a", - "nl" : "a", - "no" : "a", - "pl" : "a", - "ps" : "a", - "pt" : "a", - "ro" : "a", - "rs" : "a", - "se" : "a", - "si" : "a", - "sj" : "a", - "sk" : "a", - "sm" : "a", - "sy" : "a", - "tn" : "a", - "tr" : "a", - "ua" : "a", - "uk" : "a", - "us" : "a", - "va" : "a", - "world" : "a", - "xk" : "a" + "ad" : "c", + "al" : "c", + "at" : "c", + "ax" : "c", + "ba" : "c", + "be" : "c", + "bg" : "c", + "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" : "c", + "gr" : "c", + "hr" : "c", + "hu" : "c", + "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" : "c", + "me" : "c", + "mk" : "c", + "mt" : "c", + "nl" : "c", + "no" : "c", + "pl" : "c", + "ps" : "c", + "pt" : "c", + "ro" : "c", + "rs" : "c", + "se" : "c", + "si" : "c", + "sj" : "c", + "sk" : "c", + "sm" : "c", + "sy" : "c", + "tn" : "c", + "tr" : "c", + "ua" : "c", + "uk" : "c", + "us" : "c", + "va" : "c", + "world" : "c", + "xk" : "c" }, "previous_data" : { "agribalyse" : { @@ -704,76 +703,76 @@ "grade" : "a", "score" : 122 }, - "score" : 115, + "score" : 51, "scores" : { - "ad" : 123, - "al" : 115, - "at" : 121, - "ax" : 123, - "ba" : 117, - "be" : 123, - "bg" : 118, - "ch" : 123, - "cy" : 121, - "cz" : 122, - "de" : 123, - "dk" : 121, - "dz" : 122, - "ee" : 123, - "eg" : 120, - "es" : 121, - "fi" : 123, - "fo" : 123, - "fr" : 123, - "gg" : 123, - "gi" : 116, - "gr" : 122, - "hr" : 120, - "hu" : 119, - "ie" : 122, - "il" : 120, - "im" : 123, - "is" : 123, - "it" : 122, - "je" : 123, - "lb" : 121, - "li" : 123, - "lt" : 123, - "lu" : 123, - "lv" : 123, - "ly" : 123, - "ma" : 123, - "mc" : 123, - "md" : 119, - "me" : 121, - "mk" : 119, - "mt" : 123, - "nl" : 123, - "no" : 118, - "pl" : 119, - "ps" : 121, - "pt" : 117, - "ro" : 120, - "rs" : 116, - "se" : 117, - "si" : 121, - "sj" : 123, - "sk" : 119, - "sm" : 121, - "sy" : 119, - "tn" : 116, - "tr" : 116, - "ua" : 121, - "uk" : 123, - "us" : 115, - "va" : 119, - "world" : 115, - "xk" : 119 + "ad" : 59, + "al" : 51, + "at" : 57, + "ax" : 59, + "ba" : 53, + "be" : 59, + "bg" : 54, + "ch" : 59, + "cy" : 57, + "cz" : 58, + "de" : 59, + "dk" : 57, + "dz" : 58, + "ee" : 59, + "eg" : 56, + "es" : 57, + "fi" : 59, + "fo" : 59, + "fr" : 59, + "gg" : 59, + "gi" : 52, + "gr" : 58, + "hr" : 56, + "hu" : 55, + "ie" : 58, + "il" : 56, + "im" : 59, + "is" : 59, + "it" : 58, + "je" : 59, + "lb" : 57, + "li" : 59, + "lt" : 59, + "lu" : 59, + "lv" : 59, + "ly" : 59, + "ma" : 59, + "mc" : 59, + "md" : 55, + "me" : 57, + "mk" : 55, + "mt" : 59, + "nl" : 59, + "no" : 54, + "pl" : 55, + "ps" : 57, + "pt" : 53, + "ro" : 56, + "rs" : 52, + "se" : 53, + "si" : 57, + "sj" : 59, + "sk" : 55, + "sm" : 57, + "sy" : 55, + "tn" : 52, + "tr" : 52, + "ua" : 57, + "uk" : 59, + "us" : 51, + "va" : 55, + "world" : 51, + "xk" : 55 }, "status" : "known" }, - "ecoscore_grade" : "a", - "ecoscore_score" : 115, + "ecoscore_grade" : "c", + "ecoscore_score" : 51, "environment_impact_level_tags" : [], "ingredients_analysis_tags" : [ "en:palm-oil-free", @@ -786,7 +785,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 Pecan nut\n (Source: ADEME Agribalyse Database)\n
\n ", "type" : "summary" } }, @@ -813,8 +812,8 @@ "text" : "Agriculture" }, { - "percent" : 20.3326275087945, - "text" : "20.3 %" + "percent" : 82.4406381592323, + "text" : "82.4 %" } ] }, @@ -826,8 +825,8 @@ "text" : "Processing" }, { - "percent" : 29.3728073746592, - "text" : "29.4 %" + "percent" : 5.31185992366655, + "text" : "5.3 %" } ] }, @@ -839,8 +838,8 @@ "text" : "Packaging" }, { - "percent" : 19.5753974535878, - "text" : "19.6 %" + "percent" : 7.27017446556205, + "text" : "7.3 %" } ] }, @@ -852,8 +851,8 @@ "text" : "Transportation" }, { - "percent" : 25.484985099752, - "text" : "25.5 %" + "percent" : 4.35591137217492, + "text" : "4.4 %" } ] }, @@ -865,8 +864,8 @@ "text" : "Distribution" }, { - "percent" : 3.0732288312766, - "text" : "3.1 %" + "percent" : 0.621416079364148, + "text" : "0.6 %" } ] }, @@ -878,8 +877,8 @@ "text" : "Consumption" }, { - "percent" : 2.16095373192992, - "text" : "2.2 %" + "percent" : 0, + "text" : "0.0 %" } ] } @@ -889,14 +888,14 @@ } } ], - "evaluation" : "good", + "evaluation" : "average", "expanded" : false, "level" : "info", "title_element" : { "icon_color_from_evaluation" : true, "icon_url" : "https://static.openfoodfacts.org/images/icons/dist/car.svg", - "subtitle" : "51 g CO² per 100g of product", - "title" : "Equal to driving 0.3 km in a petrol car" + "subtitle" : "365 g CO² per 100g of product", + "title" : "Equal to driving 1.9 km in a petrol car" }, "topics" : [ "environment" @@ -956,9 +955,9 @@ ], "level" : "info", "title_element" : { - "grade" : "a", - "icon_url" : "https://static.openfoodfacts.org/images/attributes/dist/ecoscore-a.svg", - "title" : "Eco-Score A - Very low environmental impact", + "grade" : "c", + "icon_url" : "https://static.openfoodfacts.org/images/attributes/dist/ecoscore-c.svg", + "title" : "Eco-Score C - Moderate environmental impact", "type" : "grade" }, "topics" : [ @@ -970,7 +969,7 @@ { "element_type" : "text", "text_element" : { - "html" : "\nCategory: \n Soup, mixed vegetables, prepacked, to be reheated\n
\nCategory: \n Pecan nut\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 Energy intakes above energy requirements are associated with increased risks of weight gain, overweight, obesity, and consequently risk of diet-related chronic diseases.\n
\n " + "html" : "\n\n \n A high consumption of fat, especially saturated fats, can raise cholesterol, which increases the risk of heart diseases.\n
\n " } } ], @@ -1909,8 +1908,8 @@ "size" : "small", "title_element" : { "icon_url" : "https://static.openfoodfacts.org/images/attributes/dist/points-negative-0-10.svg", - "subtitle" : "0/10 points (120kJ)", - "title" : "Calories" + "subtitle" : "0/10 points (7.4kJ)", + "title" : "Energy from saturated fat" }, "topics" : [ "health" @@ -1956,26 +1955,6 @@ "health" ] }, - "nutriscore_component_proteins" : { - "elements" : [ - { - "element_type" : "text", - "text_element" : { - "html" : "\n\n Foods that are rich in proteins are usually rich in calcium or iron which are essential minerals with numerous health benefits.\n \n
\n " - } - } - ], - "level" : "info", - "size" : "small", - "title_element" : { - "icon_url" : "https://static.openfoodfacts.org/images/attributes/dist/points-positive-0-7.svg", - "subtitle" : "0/7 points (1g)", - "title" : "Proteins" - }, - "topics" : [ - "health" - ] - }, "nutriscore_component_salt" : { "elements" : [ { @@ -1996,7 +1975,7 @@ "health" ] }, - "nutriscore_component_saturated_fat" : { + "nutriscore_component_saturated_fat_ratio" : { "elements" : [ { "element_type" : "text", @@ -2008,9 +1987,9 @@ "level" : "info", "size" : "small", "title_element" : { - "icon_url" : "https://static.openfoodfacts.org/images/attributes/dist/points-negative-0-10.svg", - "subtitle" : "0/10 points (0.2g)", - "title" : "Saturated fat" + "icon_url" : "https://static.openfoodfacts.org/images/attributes/dist/points-negative-6-10.svg", + "subtitle" : "6/10 points (40%)", + "title" : "Saturated fat / fat" }, "topics" : [ "health" @@ -2075,7 +2054,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 not considered a beverage for the calculation of the Nutri-Score.
\n\n\n\nThis product is considered to be fat, oil, nuts or seeds for the calculation of the Nutri-Score.
\n\n\n\nPoints for proteins are not counted because the negative points greater than or equal to 7.
\n\n\n Nutritional score: 5\n (7 - 2)\n
\nNutri-Score: C
\n " } } ], @@ -2101,10 +2080,24 @@ "text" : "Nutrition facts", "type" : "text" }, + { + "column_group_id" : "product", + "shown_by_default" : true, + "text" : "As sold