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

Create a general error handler which handles multiple errors - Nia 1435 #1789

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

tjmtic
Copy link
Contributor

@tjmtic tjmtic commented Jan 3, 2025

Fixes #1435

Data layer General Message Handler Interface and Implementation, with Sealed Type Definitions.
Messages are extensible to both simple error messages and those with success/failure callbacks, so it can be used to handle both #1068 as well as any uses of snackbarHostState.showSnackbar(), such as for the Bookmark Saved Notification.

Multiple message sources combined in NiaAppState, which will be a single source of truth for user bound messages via the Snackbar per this conversation

Display values defined by UI via getSnackbarValues helper in NiaApp

Fake ErrorMonitor implemented as EmptyErrorMonitor to remove conflicting with other tests.

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

Successfully merging this pull request may close these issues.

Create a general error handler which handles multiple errors
1 participant