Skip to content
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

feat: #2573 - Knowledge Panel cells are expanded on detail pages #2581

Merged
merged 1 commit into from
Jul 19, 2022

Conversation

monsieurtanuki
Copy link
Contributor

Impacted files:

  • knowledge_panel_card.dart: no we are not initially expanded! (same as before)
  • knowledge_panel_element_card.dart: refactored
  • knowledge_panel_expanded_card.dart: refactored
  • knowledge_panel_page.dart: yes we are initially expanded!
  • knowledge_panel_table_card.dart: added an "initially expanded?" parameter to TableCellWidget
  • knowledge_panels_builder.dart: no we are not initially expanded! (same as before)

What

  • The default for KP table cells was "not expanded".
  • Now it's a bool parameter. Only on detail pages (like "nutrition facts") is the "initially expanded" set to true.

Fixes bug(s)

Impacted files:
* `knowledge_panel_card.dart`: no we are not initially expanded! (same as before)
* `knowledge_panel_element_card.dart`: refactored
* `knowledge_panel_expanded_card.dart`: refactored
* `knowledge_panel_page.dart`: yes we are initially expanded!
* `knowledge_panel_table_card.dart`: added an "initially expanded?" parameter to `TableCellWidget`
* `knowledge_panels_builder.dart`: no we are not initially expanded! (same as before)
@codecov-commenter
Copy link

Codecov Report

Merging #2581 (4e3d3f6) into develop (2ea0da3) will decrease coverage by 1.31%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           develop   #2581      +/-   ##
==========================================
- Coverage     8.86%   7.54%   -1.32%     
==========================================
  Files          161     210      +49     
  Lines         6623   10109    +3486     
==========================================
+ Hits           587     763     +176     
- Misses        6036    9346    +3310     
Impacted Files Coverage Δ
...kages/smooth_app/lib/widgets/attribute_button.dart 0.00% <0.00%> (-92.00%) ⬇️
...s/smooth_app/lib/data_models/user_preferences.dart 8.73% <0.00%> (-23.57%) ⬇️
packages/smooth_app/lib/themes/smooth_theme.dart 60.00% <0.00%> (-22.98%) ⬇️
...p/lib/generic_lib/dialogs/smooth_alert_dialog.dart 15.29% <0.00%> (-18.92%) ⬇️
...mooth_app/lib/data_models/product_preferences.dart 24.65% <0.00%> (-6.78%) ⬇️
packages/smooth_app/lib/main.dart 14.16% <0.00%> (-3.73%) ⬇️
.../smooth_app/lib/pages/onboarding/welcome_page.dart 0.00% <0.00%> (-3.13%) ⬇️
.../smooth_app/lib/pages/onboarding/scan_example.dart 0.00% <0.00%> (-2.28%) ⬇️
...p/lib/pages/onboarding/consent_analytics_page.dart 0.00% <0.00%> (-1.57%) ⬇️
...smooth_app/lib/pages/product/new_product_page.dart 0.00% <0.00%> (-0.88%) ⬇️
... and 219 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2b60cb5...4e3d3f6. Read the comment docs.

@teolemon teolemon changed the title feat: #2573 - KP cells are expanded on detail pages feat: #2573 - Knowledge Panel cells are expanded on detail pages Jul 14, 2022
Copy link
Member

@M123-dev M123-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks @monsieurtanuki

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Autoexpand collapsed line from table when in sub-knowledge panel
4 participants