-
Notifications
You must be signed in to change notification settings - Fork 175
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
Support displaying user visible error messages #935
Conversation
Pushing one additional commit here. Returning |
5df50b7
to
e85693f
Compare
24b59d5
to
1c095b2
Compare
Dropped the asynchronous implementation of |
1c095b2
to
eebe9d3
Compare
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.
Thanks! LGTM except one nit below.
lib/widgets/app.dart
Outdated
action: (details == null) ? null : SnackBarAction( | ||
label: localizations.snackBarDetails, | ||
onPressed: () => showErrorDialog(context: navigatorKey.currentContext!, |
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.
nit: indentation
eebe9d3
to
c5f7073
Compare
Thanks! Updated the PR. |
The first commit has a |
Yeah, this is for preventing GitHub from auto-linking the upstream on pushes. |
c5f7073
to
d6aaceb
Compare
d6aaceb
to
169ba47
Compare
Also generalize ValueNotifierChecks to ValueListenableChecks. We can't write checks-extensions for ZulipApp.scaffoldMessenger or ZulipApp.ready, though, because Dart doesn't have extensions for static members. Apparently they're currently working on them: dart-lang/language#723 Co-authored-by: Zixuan James Li <[email protected]>
The motivation of having this indirection, rather than using `showErrorDialog` and `showSnackBar` directly, is to keep dependencies of `lib/log.dart` from relying on widget code. Co-authored-by: Zixuan James Li <[email protected]> Signed-off-by: Zixuan James Li <[email protected]>
169ba47
to
e36f984
Compare
Thanks! Looks good; merging, with some commit-message edits:
and a doc/comment commit added on top: |
Fixes part of #555. The UX needs to be completed in #868.