-
-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Leverage sub-knowledge panels towards the road to Scores #1136
Comments
@monsieurtanuki the API should be available on the .net server e.g. ingredients panel when we don't have ingredients:
Nutri-Score panel when we are missing the category + nutrition facts:
|
@monsieurtanuki would you be interested by implementing the Smoothie side ? |
From off-dart 1.20.0 we have the new 'action_element' (#495) |
New files: * `add_category_button.dart`: "Add category" button for user contribution. * `add_ingredients_button.dart`: "Add ingredients" button for user contribution. * `add_nutrition_button.dart`: "Add nutrition facts" button for user contribution. * `knowledge_panel_action_card.dart`: "Contribute Actions" for the knowledge panels. Impacted files: * `knowledge_panel_card.dart`: refactored. * `knowledge_panel_element_card.dart`: action "actions" element; refactored. * `knowledge_panel_expanded_card.dart`: refactored. * `knowledge_panel_group_card.dart`: refactored. * `knowledge_panel_page.dart`: refactored. * `knowledge_panel_page_template.dart`: refactored. * `knowledge_panels_builder.dart`: added an explicit `bool onboardingMode` field; used new classes `AddNutritionButton` and `AddIngredientsButton`; refactored. * `new_product_page.dart`: refactored. * `summary_card.dart`: used new class `AddCategoryButton`; refactored.
New files: * `add_category_button.dart`: "Add category" button for user contribution. * `add_ingredients_button.dart`: "Add ingredients" button for user contribution. * `add_nutrition_button.dart`: "Add nutrition facts" button for user contribution. * `knowledge_panel_action_card.dart`: "Contribute Actions" for the knowledge panels. Impacted files: * `knowledge_panel_card.dart`: refactored. * `knowledge_panel_element_card.dart`: action "actions" element; refactored. * `knowledge_panel_expanded_card.dart`: refactored. * `knowledge_panel_group_card.dart`: refactored. * `knowledge_panel_page.dart`: refactored. * `knowledge_panel_page_template.dart`: refactored. * `knowledge_panels_builder.dart`: added an explicit `bool onboardingMode` field; used new classes `AddNutritionButton` and `AddIngredientsButton`; refactored. * `new_product_page.dart`: refactored. * `summary_card.dart`: used new class `AddCategoryButton`; refactored.
What
Mockup
Why
How
The API should be available on the .net and .org server
This extends the knowledge panels API to add a new "action" element that contains a list of actions such as "add_categories", "add_ingredients_text", "add_nutrition_facts". Clients can then add buttons or links to directly add or edit the corresponding data.
e.g. ingredients panel when we don't have ingredients:
Nutri-Score panel when we are missing the category + nutrition facts:
The text was updated successfully, but these errors were encountered: