Skip to content

Goals feature implementation plans#318

Draft
jhodapp wants to merge 4 commits intomainfrom
docs/goals-implementation-plans
Draft

Goals feature implementation plans#318
jhodapp wants to merge 4 commits intomainfrom
docs/goals-implementation-plans

Conversation

@jhodapp
Copy link
Member

@jhodapp jhodapp commented Feb 27, 2026

Summary

  • Adds the master implementation plan for the goals feature, covering all layers (backend schema, frontend API, dashboard, goals page, coaching session) with a PR dependency graph
  • Adds a backend questions document (Q1–Q4) to resolve with the backend team before frontend work begins: goal scoping model, action-goal FK, SSE events, and note annotation persistence

Context

These planning docs establish the roadmap for turning the goals prototypes (src/app/prototype/) into production code across 10 PRs organized in 5 layers. No code changes — documentation only.

Add two planning documents for the goals feature implementation:
- goals-feature-master-plan.md: framing doc with PR dependency graph,
  API gap analysis, and layer-by-layer implementation plan
- goals-backend-questions.md: four architectural questions (goal scoping,
  action-goal FK, SSE events, annotation persistence) to resolve with the
  backend team before frontend work begins
@jhodapp jhodapp self-assigned this Feb 27, 2026
@jhodapp jhodapp added documentation Improvements or additions to documentation feature work Specifically implementing a new feature labels Feb 27, 2026
@jhodapp jhodapp moved this to 🏗 In progress in Refactor Coaching Platform Feb 27, 2026
@jhodapp jhodapp changed the title docs: goals feature implementation plans Goals feature implementation plans Feb 27, 2026
All four backend questions (Q1–Q4) are now resolved:
- Q1: Join table (coaching_sessions_goals) confirmed
- Q2: Direct goal_id FK on actions confirmed
- Q3: Renamed SSE events + two new join table events
- Q4: Both SSE + load-time validation with per-entity-type endpoints

Also incorporates rename decisions: overarching_goals → goals,
coaching_session_id → created_in_session_id, and backend 5-PR plan.
- Rename GET /goals/{id}/health_metrics → GET /goals/{id}/health
  to match backend's GoalsFeatureEndpointReference contract
- Clarify health heuristics: momentum-only when target_date is null
- Incorporate created_in_session_id nullable decision
- Incorporate target_date field decision
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation feature work Specifically implementing a new feature

Projects

Status: 🏗 In progress

Development

Successfully merging this pull request may close these issues.

1 participant