medium complexity extracted Admin Dashboard Confidence: 100%
8
Components
106
Shared
0
User Stories
Yes
Analyzed

Description

The Activity Feed feature presents a chronological stream of recent activity events across the organization, giving administrators and coordinators live visibility into what peer mentors are doing. Each feed item shows the activity type, the peer mentor, the associated contact, timestamp, and current status (pending, approved, flagged). The feed supports filtering by date range, peer mentor, activity type, and status, allowing coordinators to quickly locate specific records that require attention or follow-up.

User Flow

Activity Feed user flow
Click to expand

Analysis

Business Value

Without a live activity feed, coordinators must proactively search for new activity submissions, leading to delayed approvals, missed flags, and poor oversight of the peer mentor program. This feature transforms the admin portal from a passive reporting tool into an active operational dashboard, enabling coordinators to respond quickly to new registrations and flag anomalies before they propagate into Bufdir reports. For organization administrators, the feed provides accountability and transparency across the entire program. The ability to filter and scan recent activity also reduces the time spent on manual audits, directly lowering administrative costs and improving the quality of submitted data.

Implementation Notes

The activity feed is implemented as a paginated, filterable list component in the Next.js admin portal, backed by a `/api/v1/activities?organizationId=&page=&filters=` REST endpoint. PostgreSQL queries use cursor-based pagination on `activities.created_at` for stable ordering under concurrent inserts. Feed items join `activities`, `users` (peer mentor), `contacts`, and `activity_approvals` tables. Filters are applied as parameterized WHERE clauses to prevent SQL injection. The component uses React Query or SWR for client-side data fetching with optimistic UI for approval actions. Real-time updates can be layered via polling or WebSocket in a later phase. Role scoping mirrors the KPI dashboard: coordinators see their local association, org admins see the full organization.

Components (114)

User Interface (3)

Service Layer (3)

Data Layer (1)

Infrastructure (1)

Shared Components

These components are reused across multiple features

Service Layer (34)

Data Layer (22)

Infrastructure (38)

infrastructure Keychain/Keystore Adapter low Shared infrastructure JWT Claims Extractor low Shared infrastructure Organization Labels Adapter low Shared infrastructure Keychain/Keystore Adapter low Shared infrastructure Auth API Client medium Shared infrastructure REST API Client medium Shared infrastructure WCAG Accessibility Adapter low Shared infrastructure Registration API Client low Shared infrastructure Accounting API Client high Shared infrastructure PDF Renderer Adapter medium Shared infrastructure File Share Adapter low Shared infrastructure FCM/APNs Adapter high Shared infrastructure Share Sheet Adapter low Shared infrastructure Share Plus Adapter low Shared infrastructure Platform Accessibility Bridge medium Shared infrastructure Semantics Override Adapter high Shared infrastructure URL Launcher Adapter low Shared infrastructure Markdown Content Renderer low Shared infrastructure Network Connectivity Monitor low Shared infrastructure Expense Receipt Storage Adapter low Shared infrastructure Audit Log Writer low Shared infrastructure Feature Flag Checker low Shared infrastructure Logo Upload Adapter low Shared infrastructure Terminology Constants Registry low Shared infrastructure Feature Flag Cache Adapter low Shared infrastructure Org Scope JWT Resolver medium Shared infrastructure Association Audit Logger low Shared infrastructure Token Blocklist medium Shared infrastructure Analytics Tracker low Shared infrastructure SEO Metadata Config low Shared infrastructure Analytics Tracker low Shared infrastructure Analytics Tracker low Shared infrastructure Sales Analytics Tracker low Shared infrastructure Email Provider Adapter low Shared infrastructure Terms of Service Content Provider low Shared infrastructure Legal PDF Asset Provider low Shared infrastructure Consent-Gated Script Loader low Shared infrastructure Legal Page Layout low Shared

User Stories

No user stories have been generated for this feature yet.