-
-
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
fix: #2773 - appropriate "clear?" and "delete?" messages for user lists #2778
fix: #2773 - appropriate "clear?" and "delete?" messages for user lists #2778
Conversation
… for user lists Impacted files: * `app_en.arb`: labels for user lists (clear? + delete?) * `app_fr.arb`: labels for user lists (clear? + delete?) * `product_list_page.dart`: now using the new "clear?" label for user lists * `product_list_user_dialog_helper.dart`: now localizing with the new "delete?" label for user lists
Codecov Report
@@ Coverage Diff @@
## develop #2778 +/- ##
==========================================
- Coverage 8.86% 7.12% -1.74%
==========================================
Files 161 218 +57
Lines 6623 10650 +4027
==========================================
+ Hits 587 759 +172
- Misses 6036 9891 +3855
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -215,8 +215,9 @@ class ProductListUserDialogHelper { | |||
final bool? deleted = await showDialog<bool>( | |||
context: context, | |||
builder: (final BuildContext context) => SmoothAlertDialog( | |||
title: 'Delete list?', |
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.
Why are we removing the title?
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.
The point of this PR is to put an appropriate label:
- in this particular case, the title was no localized
- we need to be able to say "do you want to clear THIS list?" and/or "do you want to clear the HISTORY?"
- we could keep this title, but that would mean that 1. we should localize it and 2. it would be kind of duplicate with the more detailed message "clear this list" / "clear the history"
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.
In my opinion having a title, even a generic one, could make the decision faster. As a user I'd first like to read "Are you sure?" and then if I need an extended explanation I'm reading the body.
It's a personal preference though, nothing blocking so feel free to merge!
Thank you @VaiTon for your review! |
Impacted files:
app_en.arb
: labels for user lists (clear? + delete?)app_fr.arb
: labels for user lists (clear? + delete?)product_list_page.dart
: now using the new "clear?" label for user listsproduct_list_user_dialog_helper.dart
: now localizing with the new "delete?" label for user listsWhat
Screenshot
Fixes bug(s)