Skip to Content
Living documentation — last reviewed 2026-05-28
FeaturesDashboardCode map — dashboard overview

Code map — dashboard overview

Shared

PathResponsibility
libs/shared/src/lib/types/insights.types.tsRule-id contract, five categories, severity, nullable root href
libs/shared/src/lib/i18n/dictionaries/{en,he,ru}.jsoninsights.items, all-clear/Ask Spotter; dashboard panel copy; members.ribbon; reports

API

PathResponsibility
apps/api/src/insights/insights.service.tsRule catalog, RULE_ROLES, counts and sample destinations
apps/api/src/insights/insights.controller.tsActive membership + staff gate; forwards caller role
apps/api/src/class-sessions/class-sessions.service.tsfindUpcomingToday, whole-day scope and session/workout data; staff access
apps/api/src/workout-assignments/workout-assignments.service.tsCoaching overview and enrollment-scoped roster
apps/api/src/analytics/analytics.service.tsExisting member/revenue trend readers
apps/api/src/analytics/analytics-reports.service.tsReport projections
apps/api/src/payments/services/receipts.sql.tsCanonical signed receipt semantics reused by finance/report readers

Overview composition

PathResponsibility
apps/web/src/app/[lang]/(protected)/dashboard/overview/page.tsxStaff data prefetch; permission-gated analytics/tasks/leads reads; renders OverviewV2
apps/web/src/components/overview/v2/overview-v2.tsxAction Center → Today/tasks → permission/capability-owned trends → coaching roster
apps/web/src/components/overview/v2/action-center.tsxNull-aware feed, sample links, inline queues, Ask Spotter
apps/web/src/components/overview/v2/today-panel.tsxWhole-day schedule panel and coaching roster with its own header metrics
apps/web/src/components/overview/v2/tasks-panel.tsxOpen tasks and existing task detail sheet
apps/web/src/components/overview/v2/{growth-panel,revenue-panel,leads-funnel-panel}.tsxTrend panels
apps/web/src/components/overview/v2/overview-tile.tsxShared panel framing
apps/web/src/components/overview/coach-roster.tsxCoaching member roster
apps/web/src/components/overview/coach-overview.tsxCoachOverviewData contract
apps/web/src/components/overview/check-ins/check-in-review-queue.tsxExisting embedded check-in review queue
apps/web/src/components/overview/forms/outstanding-forms-queue.tsxExisting embedded compliance follow-up queue
apps/web/src/providers/agent-provider.tsxopenWith / optional agent access

There is no Pulse-strip component or standalone Overview KPI-strip file.

Owning destinations

PathResponsibility
apps/web/src/app/[lang]/(protected)/dashboard/tasks/page.tsxSupported tab/type/filter URL hydration and history
apps/web/src/components/overview/tasks/task-detail-sheet.tsxShared task work; no per-task route
apps/web/src/components/dashboard/urgent-tasks-prompt.tsxOnce-a-day urgent tasks dialog in the dashboard shell; see leads behavior
apps/api/src/urgent-prompt/GET/POST /organizations/:orgId/urgent-prompt[/seen,/snooze]; state in staff_prompt_states
apps/web/src/components/payments/payment-tabs.tsxValidated payment-tab hydration, including Debt
apps/web/src/app/[lang]/(protected)/dashboard/schedule/page.tsxValidated program/week/session redirect or Programs fallback
apps/web/src/app/[lang]/(protected)/dashboard/programs/[id]/page.tsxProgram-owned schedule tab
apps/web/src/components/overview/schedule/weekly-calendar.tsxExisting calendar/session detail
apps/web/src/hooks/use-week-url-state.tsShared week hydration
apps/web/src/app/[lang]/(protected)/dashboard/members/members-ribbon.tsxTotal/commercial donut, trained/new/churned, imported and at-risk callouts; no Ending soon tile
apps/web/src/components/overview/members/retention-case-panel.tsxPer-subscription case actions
apps/web/src/components/analytics/{reports-screen,studio-kpi-snapshot}.tsxReports-only KPI snapshot and attendance/revenue/retention workspace
apps/web/src/components/analytics/use-reports-access.tsAnalytics permission + backend status gate; independent of Insights

Existing coverage

  • Overview, Action Center, Today, tasks, growth, revenue, and leads panel specs and drivers live in apps/web/src/components/overview/v2/.
  • Insight service/controller and population specs live in apps/api/src/insights/; see Insights code map.
  • These are coverage locations, not claims that this documentation pass ran validation.