Activity Types Store
Component Detail
Data Layer
low complexity
mobile
0
Dependencies
0
Dependents
1
Entities
0
Integrations
Description
Local cache and data access layer for organization-specific activity type definitions seeded in Supabase. Fetches and caches activity types on app startup or wizard launch, applying RLS policies to return only types visible to the authenticated user's organization. Supports reactive Riverpod providers for downstream widget consumption.
activity-types-store
Responsibilities
- Fetch activity types from Supabase filtered by organization and RLS policies
- Cache activity types locally to reduce latency on wizard launch
- Expose Riverpod providers for reactive activity type lists
- Invalidate and refresh cache on organization context change
Interfaces
getActivityTypes(organizationId)
getActivityTypeById(typeId)
watchActivityTypes(organizationId)
refreshActivityTypes(organizationId)
getCachedActivityTypes()
clearCache()
Related Data Entities (1)
Data entities managed by this component