Skip to content

Move missed-goal retry into task planner#29

Open
geokoko wants to merge 10 commits intomasterfrom
feature/planner-task-retry-controls
Open

Move missed-goal retry into task planner#29
geokoko wants to merge 10 commits intomasterfrom
feature/planner-task-retry-controls

Conversation

@geokoko
Copy link
Copy Markdown
Owner

@geokoko geokoko commented May 3, 2026

Summary

  • Move missed-goal retry from the global Study Planner dropdown into each expanded task card
  • Add Today / All Tasks planner view toggle and Reason grouping
  • Fix missed recurring task detection so a completed retry handles the original missed occurrence
  • Update Calendar missed badges/counts to use the same handled-occurrence logic

Test plan

  • ./gradlew compileJava
  • ./gradlew test
  • ./gradlew check (passes with existing Checkstyle warnings)

Notes

  • This intentionally does not implement the future Course/session-linking migration; that should start from clean master after this PR lands.

geokoko and others added 7 commits April 29, 2026 19:34
Goal history cards were rendering every attempt inline, making the
section very tall once goals accumulated multiple retries. Hide the
per-goal timeline by default and add a Show/Hide attempts toggle on
the summary row.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 3, 2026 13:54
@geokoko geokoko self-assigned this May 3, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors “missed goal retry” and goal tracking to be attempt-based (parent goal + per-attempt rows), moves retry actions into task cards, and aligns recurring-task “missed” detection with a handled-occurrence model (where an achieved retry handles the originally missed occurrence).

Changes:

  • Introduces study_goal_attempts and new goal lifecycle fields (status, abandoned_explicitly, achieved_attempt_id) with schema backfill/migration logic.
  • Updates UI panels (Planner / Calendar / Tasks / Profile) to display goal attempts, retries, and new grouping/toggle behaviors.
  • Updates recurring missed-occurrence detection/badges to use “handled task-date pairs” derived from attempt chains.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/test/java/com/studysync/domain/service/StudyServicePersistenceTest.java Adds persistence tests for attempt lifecycle, retries, and handled recurring occurrences.
src/main/resources/styles.css Fixes ComboBox popup ListView sizing behavior.
src/main/resources/schema.sql Adds study_goal_attempts, new goal lifecycle columns, indexes, and a non-destructive backfill.
src/main/java/com/studysync/presentation/ui/components/TaskManagementPanel.java Moves planning/editing/retry/abandon actions into per-task goal history UI.
src/main/java/com/studysync/presentation/ui/components/StudyPlannerPanel.java Adds Today/All Tasks view toggle, “Reason” grouping, attempt overview metrics, and per-task retry section.
src/main/java/com/studysync/presentation/ui/components/ProfileViewPanel.java Replaces “Achieved Goals” section with a filterable/sortable goal attempt history view.
src/main/java/com/studysync/presentation/ui/components/CalendarViewPanel.java Updates missed badges/counts to use handled-occurrence logic and renames goal UI strings to attempts.
src/main/java/com/studysync/presentation/ui/StudySyncUI.java Wires StudyService into TaskManagementPanel and updates delayed-goal processing logs.
src/main/java/com/studysync/domain/service/TaskService.java Switches recurring missed-occurrence checks to handled-occurrence API.
src/main/java/com/studysync/domain/service/StudyService.java Implements attempt-based replanning and simplifies delayed processing to “mark overdue attempts missed”.
src/main/java/com/studysync/domain/entity/StudyGoal.java Major refactor to attempt-view model, handled-occurrence queries, and attempt creation/achievement APIs.
scripts/install.sh Improves install behavior by pruning old app jars and selecting newest jar for launcher.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/main/java/com/studysync/presentation/ui/components/StudyPlannerPanel.java Outdated
Comment thread src/main/java/com/studysync/presentation/ui/components/StudyPlannerPanel.java Outdated
Comment thread src/main/java/com/studysync/domain/service/StudyService.java
Comment thread src/main/java/com/studysync/domain/service/StudyService.java Outdated
@geokoko geokoko force-pushed the feature/planner-task-retry-controls branch from 4fd9a8d to 93d7a76 Compare May 4, 2026 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Completing a delayed Task goal in a day still marks the same Task as missed the following day

2 participants