Relationship Goals — define & track intentional relationship growth — Phase 4: Smart suggestions & cadence enforcement #102

Closed
opened 2026-06-09 06:21:20 +00:00 by Mark · 1 comment
Owner

Phase 4: Smart suggestions & cadence enforcement

Surface goal-driven nudges in existing Kin surfaces.

  • Dashboard "Priority Today" should include goal-driven actions
  • When logging an interaction, show goal progress indicator
  • Goal reminders when a cadence goal is near-overdue

Decomposed from kimi_agent_kin_app_sync#80

## Phase 4: Smart suggestions & cadence enforcement Surface goal-driven nudges in existing Kin surfaces. - [ ] Dashboard "Priority Today" should include goal-driven actions - [ ] When logging an interaction, show goal progress indicator - [ ] Goal reminders when a cadence goal is near-overdue --- _Decomposed from [kimi_agent_kin_app_sync#80](https://forgejo.tail018ac4.ts.net/Mark/kimi_agent_kin_app_sync/issues/80)_
Mark 2026-06-11 01:10:28 +00:00
Author
Owner

Phase 4 Complete ✅Implemented Smart suggestions & cadence enforcement for Relationship Goals:### 1. Dashboard Priority Today — Goal-driven actions- Added goalDrivenPriorities computed in PrioritySection (Home.tsx)- Active goals with cadence are checked against lastContact date- Priority cards show "Goal Overdue" (red) or "Goal Due Soon" (amber) badges- Cards display goal title, cadence info, and days remaining- Sorted by urgency (high priority first, then closest to deadline)### 2. Goal progress indicator in LogInteraction- When a person is selected in the interaction logger, their active goals are shown- Each goal displays: title, priority level (P1/P2/P3), step progress bar (e.g. 2/5)- Cadence goals show status: "On track", "Xd left", or "Overdue"- Component uses existing daysSince and cadence-to-days conversion### 3. Goal cadence reminders (native notifications)- Added scheduleGoalReminder, cancelGoalReminder, scheduleAllGoalReminders in notifications.ts- Reminders automatically schedule when goals are loaded (via loadGoals in the store)- Uses Capacitor LocalNotifications (same pattern as event reminders)- Scheduled for tomorrow at 10am if permission granted- Exported through use-native.ts barrel### Files modified:- src/pages/Home.tsx — PrioritySection with goal-driven cards- src/pages/LogInteraction.tsx — Goal progress indicators on person select- src/lib/native/notifications.ts — Goal reminder scheduling functions- src/lib/native/use-native.ts — Export new notification functions- src/lib/store.ts — Auto-schedule reminders on goal load---Issue closed by fixit pipeline overseer

## Phase 4 Complete ✅Implemented **Smart suggestions & cadence enforcement** for Relationship Goals:### 1. Dashboard Priority Today — Goal-driven actions- Added `goalDrivenPriorities` computed in `PrioritySection` (Home.tsx)- Active goals with cadence are checked against lastContact date- Priority cards show "Goal Overdue" (red) or "Goal Due Soon" (amber) badges- Cards display goal title, cadence info, and days remaining- Sorted by urgency (high priority first, then closest to deadline)### 2. Goal progress indicator in LogInteraction- When a person is selected in the interaction logger, their active goals are shown- Each goal displays: title, priority level (P1/P2/P3), step progress bar (e.g. 2/5)- Cadence goals show status: "On track", "Xd left", or "Overdue"- Component uses existing `daysSince` and cadence-to-days conversion### 3. Goal cadence reminders (native notifications)- Added `scheduleGoalReminder`, `cancelGoalReminder`, `scheduleAllGoalReminders` in notifications.ts- Reminders automatically schedule when goals are loaded (via `loadGoals` in the store)- Uses Capacitor LocalNotifications (same pattern as event reminders)- Scheduled for tomorrow at 10am if permission granted- Exported through use-native.ts barrel### Files modified:- src/pages/Home.tsx — PrioritySection with goal-driven cards- src/pages/LogInteraction.tsx — Goal progress indicators on person select- src/lib/native/notifications.ts — Goal reminder scheduling functions- src/lib/native/use-native.ts — Export new notification functions- src/lib/store.ts — Auto-schedule reminders on goal load---_Issue closed by fixit pipeline overseer_
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/kimi_agent_kin_app_sync#102
No description provided.