Skip to Content
Living documentation — last reviewed 2026-05-28
FeaturesGoalsGoals — Code Map

Goals — Code Map

API

FileRole
apps/api/src/goals/goals.module.tsWiring
apps/api/src/goals/goals.controller.tsPOST/GET/PATCH/DELETE /goals/me, GET /members/:membershipId/goals
apps/api/src/goals/goals.service.tscreate, findMyGoals, update, remove, findMemberGoals, enrichGoal, resolveStartValue
apps/api/src/goals/goals.progress.tsPure functions computeProgress(start, current, target, direction), defaultDirectionFor(dto)
apps/api/src/goals/goals.progress.unit.spec.tsUnit tests for the progress math
apps/api/src/goals/dto/create-goal.dto.ts, update-goal.dto.ts

DB

FileRole
libs/db/src/lib/schema/goals.tsgoals table + CHECK constraints
libs/db/src/lib/schema/enums.tsgoalType, goalStatus, goalDirection

Shared

FileRole
libs/shared/src/lib/schemas/goal.schema.tsZod schemas + types

Web

FileRole
apps/web/src/components/member/goals/Member create/list components
Member detail tabStaff read-only view of a member’s goals