-
-
Notifications
You must be signed in to change notification settings - Fork 280
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: 4628 - refactoring as preparatory work #4641
feat: 4628 - refactoring as preparatory work #4641
Conversation
Deleted files: * `knowledge_panel_element_card.dart` * `knowledge_panel_summary_card.dart` New files: * `knowledge_panel_image_card.dart`: Card that displays a Knowledge Panel _Image_ element. * `knowledge_panel_text_card.dart`: Card that displays a Knowledge Panel _Text_ element. * `website_card.dart`: Card that displays a website link. Code used to be inside `new_product_page.dart` Impacted files: * `knowledge_panel_card.dart`: minor refactoring * `knowledge_panel_expanded_card.dart`: minor refactoring * `knowledge_panel_page.dart`: minor refactoring * `knowledge_panel_page_template.dart`: minor refactoring * `knowledge_panels_builder.dart`: moved code here from `knowledge_panel_element_card.dart` and `knowledge_panel_summary_card.dart`; minor refactoring * `new_product_page.dart`: moved the `WebsiteCard` code to a dedicated file; minor refactoring * `product_cards_helper.dart`: minor refactoring * `summary_card.dart`: minor refactoring
Codecov Report
@@ Coverage Diff @@
## develop #4641 +/- ##
=======================================
Coverage 9.90% 9.90%
=======================================
Files 310 311 +1
Lines 15807 15796 -11
=======================================
- Hits 1566 1565 -1
+ Misses 14241 14231 -10
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some minor comments
packages/smooth_app/lib/knowledge_panel/knowledge_panels/knowledge_panel_image_card.dart
Show resolved
Hide resolved
packages/smooth_app/lib/knowledge_panel/knowledge_panels/knowledge_panel_text_card.dart
Show resolved
Hide resolved
} | ||
|
||
String _getWebsite() => | ||
!website.startsWith('http') ? 'http://$website' : website; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That http
is bothering me, what are your thoughts on switching to https
?
Hi @g123k! |
@g123k I've just added |
Thank you @g123k for your review! |
What
Part of
Files
Deleted files:
knowledge_panel_element_card.dart
knowledge_panel_summary_card.dart
New files:
knowledge_panel_image_card.dart
: Card that displays a Knowledge Panel Image element.knowledge_panel_text_card.dart
: Card that displays a Knowledge Panel Text element.website_card.dart
: Card that displays a website link. Code used to be insidenew_product_page.dart
Impacted files:
knowledge_panel_card.dart
: minor refactoringknowledge_panel_expanded_card.dart
: minor refactoringknowledge_panel_page.dart
: minor refactoringknowledge_panel_page_template.dart
: minor refactoringknowledge_panels_builder.dart
: moved code here fromknowledge_panel_element_card.dart
andknowledge_panel_summary_card.dart
; minor refactoringnew_product_page.dart
: moved theWebsiteCard
code to a dedicated file; minor refactoringproduct_cards_helper.dart
: minor refactoringsummary_card.dart
: minor refactoring