Skip to content

Domain Layer - use cases - business rules setup #29

Closed

Description

@AlexisTercero55

Core: Domain Layer

Support Reactive Navigation: Utilize the Domain Layer as the catalyst for routing. Use Cases drive session state changes in SessionManager, which MainActivity observes to perform reactive Compose Navigation transitions.

[NEW] Result.kt

  • Standardized success/failure wrapper for Use Cases.

[NEW] BaseUseCase.kt

  • Represents a single business transaction or user action.

[NEW] LoginUseCase.kt - Atomic Business Transaction:

  • Validate input using the Credentials domain model.
  • Execute authentication via the Data layer.
  • Apply Domain transformations (e.g., name formatting).
  • Commit the session state to the Single Source of Truth (SessionManager).

[NEW] LogoutUseCase.kt

  • Atomic termination of user session, triggering the reactive navigation flow.

Rho.Studio® - Engineering Department - Contact alexis.tercero@rho.studio

Activity

  1. added this to the Domain Layer milestone on Aug 3, 2026
  2. moved this from Backlog to In progress in UI-Rho-Studio-Componentson Aug 3, 2026
  3. added a commit that references this issue on Aug 5, 2026
  4. AlexisTercero55 commented on Aug 5, 2026

    @AlexisTercero55
    CollaboratorAuthor

    Added a session manager interface in ba7cf1c

    package com.rho.studio.ui.core.domain.usecase
    
    import com.rho.studio.ui.core.domain.model.User
    
    interface SessionManagerInterface {
        fun updateSession(user: User)
        fun clearSession()
        fun extractNameFromEmail(email: String): String
    }

    Rho.Studio® - Engineering Department - Contact alexis.tercero@rho.studio

  5. added 2 commits that reference this issue on Aug 6, 2026
  6. 2 remaining items

  7. added 3 commits that reference this issue on Aug 6, 2026
  8. added 2 commits that reference this issue on Aug 7, 2026
  9. linked a pull request that will close this issueDomain Layer & Use Case Implementation #31on Aug 7, 2026
  10. moved this from Backlog to In progress in UI-Rho-Studio-Componentson Aug 7, 2026
  11. moved this from In progress to In review in UI-Rho-Studio-Componentson Aug 7, 2026
  12. linked a pull request that will close this issuePre release v102 Done #34on Aug 11, 2026
  13. moved this from In review to In progress in UI-Rho-Studio-Componentson Aug 11, 2026
  14. linked a pull request that will close this issueRelease v1.0.2 - Rho Studio UI #35on Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Auth-featureUI compose feature - LoginViewModelDomain layerUse cases of business flowHome-featureCompose Home screen.

Type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions