Service Layer medium complexity backend
0
Dependencies
0
Dependents
2
Entities
0
Integrations

Description

Backend service that aggregates auditable events from across the system into a unified, chronologically ordered activity feed. Exposes paginated, filterable query endpoints and enforces role-based access so only authorized admins can read the stream.

Feature: Activity Feed

activity-feed-service

Sources & reasoning

Canonical feature listed under admin-dashboard in §8 vocabulary. Depends on dashboard-kpis as both compose the dashboard landing surface. MVP target_release: the admin dashboard is part of MVP admin scope per §5 Fase 1 (aktivitetsoversikt - activity oversight is explicitly MVP).

  • admin-dashboard | Admin Dashboard | Dashboard KPIs, Activity Feed
  • Activity oversight, approval workflows, and corrections ... Coordinator and organization-level dashboards and KPIs

Responsibilities

  • Aggregate events (activities, expenses, approvals, role changes) into a unified feed
  • Serve paginated and entity-type-filtered queries
  • Resolve actor and entity references into displayable metadata
  • Enforce role-based access control on feed reads
  • Produce relative timestamps and deep-link targets for each entry

Interfaces

listActivity(filter: EntityType?, cursor: string?, limit: int): ActivityPage
getEntry(entryId: string): ActivityEntry
recordEvent(event: AuditableEvent): void

Related Data Entities (2)

Data entities managed by this component