Skip to content

feat(mobile): establish error state and retry UI pattern #57

Description

@GRACENOBLE

Problem

There is no established pattern for displaying errors and allowing users to retry. Each screen will handle this ad-hoc.

Acceptance criteria

  • Create a reusable ErrorScreen composable that accepts a message and an optional onRetry callback
  • Define a sealed UiState<T> class (Loading, Success(data: T), Error(message: String)) in a shared location
  • Show an example of the full UiState lifecycle in one screen/ViewModel pair
  • Document the pattern in mobile/docs/architecture.md
  • Add instrumented tests for ErrorScreen

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: mobileAndroid app (Kotlin + Jetpack Compose)priority: highImportant — address in the current sprinttype: featureNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions