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

Description

Riverpod provider encapsulating all business logic for the notes list. Queries the local Drift DAO with user-scoped filtering, exposes reactive streams for the UI, and routes mutations through the mutation outbox for offline-safe writes.

Feature: Notes List

notes-service

Responsibilities

  • Fetch notes for current user from local Drift database with pagination support
  • Apply client-side search filtering against note title and body text
  • Route create/update/delete operations through the mutation outbox
  • Resolve associated contact display names from the local contacts cache

Interfaces

watchNotesList(String userId) → Stream<List<NoteListItem>>
searchNotes(String userId, String query) → List<NoteListItem>
sortNotes(List<NoteListItem> notes, NotesSortOrder order) → List<NoteListItem>
deleteNote(String noteId) → Future<void>

Relationships

Dependencies (1)

Components this component depends on

Dependents (3)

Components that depend on this component