Service Layer low complexity mobile
1
Dependencies
1
Dependents
2
Entities
0
Integrations

Description

Business logic layer coordinating note retrieval, search, and pagination for the notes list feature. Delegates data access to Notes Repository, applies client-side filtering for small datasets, and exposes a clean API to the BLoC/Riverpod state layer.

Feature: Notes List

notes-service

Responsibilities

  • Fetch paginated notes scoped to the authenticated user's accessible contacts and organisations
  • Route search queries to client-side filter or debounced API call based on dataset size
  • Apply sort ordering before returning results to state layer
  • Resolve contact display names for note card rendering

Interfaces

getNotes(NotesFilter filter, NotesSortOrder sort, int page) → Future<PaginatedResult<Note>>
searchNotes(String query) → Future<List<Note>>
getNoteById(String noteId) → Future<Note>

Relationships

Dependencies (1)

Components this component depends on

Dependents (1)

Components that depend on this component

Related Data Entities (2)

Data entities managed by this component