Service Layer medium complexity mobile
0
Dependencies
0
Dependents
1
Entities
0
Integrations

Description

BLoC state management controller for the contacts list screen. Handles search, filter, view-mode, and pagination events, maintaining a single reactive state stream consumed by the UI. Enforces role-based filtering client-side in coordination with Supabase RLS.

Feature: Contact List & Search

contact-list-bloc

Responsibilities

  • Process search query, filter change, and pagination events
  • Maintain and emit consistent ContactListState to the UI
  • Coordinate role-based client-side filtering with server-side RLS enforcement

Interfaces

add(ContactListEvent event)
stream Stream<ContactListState>
onSearchQueryChanged(query: String)
onFiltersChanged(filters: ContactFilters)
onViewModeChanged(mode: ViewMode)
onLoadNextPage()
onRefreshRequested()

Related Data Entities (1)

Data entities managed by this component