Skip to content

feat: Integrate pool creation with backend API #32

Description

@rafamiziara

Description

Integrate the mobile app pool creation UI with the backend Cloud Functions API to enable end-to-end pool creation functionality.

Acceptance Criteria

  • Create API service for pool creation calls
  • Implement proper error handling and retry logic
  • Add transaction status polling
  • Integrate with existing authentication system
  • Add proper loading states during API calls
  • Implement offline handling and queue
  • Add comprehensive error categorization

Technical Requirements

  • Use existing Firebase Functions integration
  • Follow current API calling patterns
  • Implement proper TypeScript interfaces
  • Add comprehensive error handling
  • Include network retry logic
  • Support for transaction status updates

API Integration

  • POST request to createPool endpoint
  • Authentication header management
  • Request payload validation
  • Response data handling
  • Error response processing
  • Transaction hash tracking

Status Tracking

  • Poll transaction status from backend
  • Display real-time creation progress
  • Handle transaction confirmation delays
  • Show gas fee information
  • Provide transaction hash for reference

Error Handling

  • Network connectivity errors
  • Authentication failures
  • Contract interaction failures
  • Validation errors from backend
  • Transaction failure scenarios
  • Timeout handling

User Feedback

  • Real-time status updates
  • Progress indicators during creation
  • Success confirmation with pool details
  • Clear error messages with recovery options
  • Transaction details and blockchain links

Definition of Done

  • Pool creation API integration is fully functional
  • Proper error handling covers all scenarios
  • Transaction status tracking works correctly
  • User experience is smooth and informative
  • Integration tests pass for all scenarios
  • Error recovery flows are documented

Metadata

Metadata

Assignees

Labels

comp: backendIssues for the Firebase Cloud Functions in packages/backendcomp: frontendIssues for the mobile app UI/UX in packages/mobile-app

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions