-
-
Notifications
You must be signed in to change notification settings - Fork 287
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: #1060 - new dev mode lenient/strong matching switch #1133
feat: #1060 - new dev mode lenient/strong matching switch #1133
Conversation
"lenient" means @jasmeet0817's version, "strong" means @monsieurtanuki's. Why? Because for @jasmeet0817 it's impossible to be an "unknown" match. For @monsieurtanuki with at least one unknown attribute, you're at best "unknown". New file: * `smooth_matched_product.dart`: replacing off-dart's "MatchedProduct" Impacted files: * `personalized_ranking_page.dart`: added the `UserPreferences` parameter for dev mode lenient/strong matching switch; not using off's `matched_product.dart` anymore * `product_compatibility_helper.dart`: not using off's `matched_product.dart` anymore * `smooth_it_model.dart`: added the `UserPreferences` parameter for dev mode lenient/strong matching switch; not using off's `matched_product.dart` anymore * `smooth_product_card_found.dart`: added the `UserPreferences` parameter for dev mode lenient/strong matching switch; not using off's `matched_product.dart` anymore * `summary_card.dart`: added the `UserPreferences` parameter for dev mode lenient/strong matching switch; not using off's `matched_product.dart` anymore * `user_preferences_dev_mode.dart`: added a "lenient/strong" matching switch (aka "Swiss switch")
"lenient" means @jasmeet0817's version, "strong" means @monsieurtanuki's. Why? Because for @jasmeet0817 it's impossible to be an "unknown" match. For @monsieurtanuki with at least one unknown attribute, you're at best "unknown". New file: * `smooth_matched_product.dart`: replacing off-dart's "MatchedProduct" Impacted files: * `personalized_ranking_page.dart`: added the `UserPreferences` parameter for dev mode lenient/strong matching switch; not using off's `matched_product.dart` anymore * `product_compatibility_helper.dart`: not using off's `matched_product.dart` anymore * `smooth_it_model.dart`: added the `UserPreferences` parameter for dev mode lenient/strong matching switch; not using off's `matched_product.dart` anymore * `smooth_product_card_found.dart`: added the `UserPreferences` parameter for dev mode lenient/strong matching switch; not using off's `matched_product.dart` anymore * `summary_card.dart`: added the `UserPreferences` parameter for dev mode lenient/strong matching switch; not using off's `matched_product.dart` anymore * `user_preferences_dev_mode.dart`: added a "lenient/strong" matching switch (aka "Swiss switch")
"lenient" means @jasmeet0817's version, "strong" means @monsieurtanuki's. Why? Because for @jasmeet0817 it's impossible to be an "unknown" match. For @monsieurtanuki with at least one unknown attribute, you're at best "unknown". New file: * `smooth_matched_product.dart`: replacing off-dart's "MatchedProduct" Impacted files: * `personalized_ranking_page.dart`: added the `UserPreferences` parameter for dev mode lenient/strong matching switch; not using off's `matched_product.dart` anymore * `product_compatibility_helper.dart`: not using off's `matched_product.dart` anymore * `smooth_it_model.dart`: added the `UserPreferences` parameter for dev mode lenient/strong matching switch; not using off's `matched_product.dart` anymore * `smooth_product_card_found.dart`: added the `UserPreferences` parameter for dev mode lenient/strong matching switch; not using off's `matched_product.dart` anymore * `summary_card.dart`: added the `UserPreferences` parameter for dev mode lenient/strong matching switch; not using off's `matched_product.dart` anymore * `user_preferences_dev_mode.dart`: added a "lenient/strong" matching switch (aka "Swiss switch")
I've finally managed to create a proper PR. |
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.
Code looks good nice that we can try both
PreferenceImportance.ID_NOT_IMPORTANT: 0, | ||
}; | ||
|
||
/// Lenient version (monsieurtanuki) (found back in #1046) |
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.
Wasn't it from jasmeet
Thank you @M123-dev for your code review! I've changed the comment you mentioned. |
"lenient" means @jasmeet0817's version, "strong" means @monsieurtanuki's.
Why? Because for @jasmeet0817 it's impossible to be an "unknown" match.
For @monsieurtanuki with at least one unknown attribute, you're at best "unknown".
New file:
smooth_matched_product.dart
: replacing off-dart's "MatchedProduct"Impacted files:
personalized_ranking_page.dart
: added theUserPreferences
parameter for dev mode lenient/strong matching switch; not using off'smatched_product.dart
anymoreproduct_compatibility_helper.dart
: not using off'smatched_product.dart
anymoresmooth_it_model.dart
: added theUserPreferences
parameter for dev mode lenient/strong matching switch; not using off'smatched_product.dart
anymoresmooth_product_card_found.dart
: added theUserPreferences
parameter for dev mode lenient/strong matching switch; not using off'smatched_product.dart
anymoresummary_card.dart
: added theUserPreferences
parameter for dev mode lenient/strong matching switch; not using off'smatched_product.dart
anymoreuser_preferences_dev_mode.dart
: added a "lenient/strong" matching switch (aka "Swiss switch")