Files
Krow-workspace/apps/mobile/packages/features/staff/authentication/feature_manifest.md
Achintha Isuru cf59935ec8 Move apps to mobile directory structure
Relocated all app directories (client, design_system_viewer, staff) and their contents under the new 'apps/mobile' path. This change improves project organization and prepares for future platform-specific structuring.
2026-01-22 10:17:19 -05:00

1020 B

Feature Manifest: Staff Authentication

Overview

Feature Name: Staff Authentication & Onboarding Package Path: packages/features/staff/authentication

Responsibilities

  • Handle user sign-up and log-in via Phone Auth.
  • Verify OTP codes.
  • Manage the Onboarding Wizard for new staff.
  • Persist onboarding progress.

Architecture

  • Domain:
    • AuthRepositoryInterface
    • SignInWithPhoneUseCase
    • VerifyOtpUseCase
  • Data:
    • AuthRepositoryImpl (uses AuthRepositoryMock from krow_data_connect)
  • Presentation:
    • AuthBloc: Manages auth state (phone, otp, user status).
    • OnboardingBloc: Manages wizard steps.
    • Pages: GetStartedPage, PhoneVerificationPage, ProfileSetupPage.

Dependencies

  • krow_domain: User entities.
  • krow_data_connect: Auth mocks.
  • design_system: UI components.

Routes

  • /: Get Started (Welcome)
  • /phone-verification: OTP Entry
  • /profile-setup: Onboarding Wizard