Let goals carry a done checklist and tasks a done-when note - #45
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved checklist lifecycle and planner task-form issues remain, along with missing calendar progress display.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Adds persisted goal checklists and task “Done when” notes, with UI, migrations, tests, documentation, and version updates.
Changes:
- Added nullable
done_criteriapersistence and migrations. - Added checklist ticking, achievement behavior, and progress displays.
- Added task-note editing/display, tests, and documentation updates.
Review findings:
- Critical (1 vote): Checklist updates can incorrectly clear manually achieved goals.
- Moderate (1 vote): Planner-created tasks do not persist the “Done when” field.
- Nit (2 votes): Calendar checklist cards omit the
n/mprogress indicator.
File summaries
| File | Summary |
|---|---|
src/test/java/com/studysync/domain/service/TaskServicePersistenceTest.java |
Tests task-note persistence. |
src/test/java/com/studysync/domain/service/StudyServicePersistenceTest.java |
Tests checklist persistence and lifecycle behavior. |
src/test/java/com/studysync/domain/service/ScoringServiceTest.java |
Updates schema fixtures. |
src/main/resources/schema.sql |
Adds nullable checklist/note columns and migrations. |
src/main/java/com/studysync/presentation/ui/components/TaskStyleUtils.java |
Adds checklist and progress helpers. |
src/main/java/com/studysync/presentation/ui/components/TaskManagementPanel.java |
Adds task-note and goal-checklist UI. |
src/main/java/com/studysync/presentation/ui/components/StudyPlannerPanel.java |
Adds planner checklist UI and form support. |
src/main/java/com/studysync/presentation/ui/components/CalendarViewPanel.java |
Adds calendar checklist display and goal creation support. |
src/main/java/com/studysync/domain/service/TaskUpdate.java |
Adds task-note update data. |
src/main/java/com/studysync/domain/service/TaskService.java |
Preserves and updates task notes. |
src/main/java/com/studysync/domain/service/StudyService.java |
Manages checklist lifecycle behavior. |
src/main/java/com/studysync/domain/entity/Task.java |
Stores task completion notes. |
src/main/java/com/studysync/domain/entity/StudyGoal.java |
Stores, parses, and ticks goal criteria. |
README.md |
Updates feature and version documentation. |
gradle.properties |
Updates the project version. |
build.gradle |
Updates the project version. |
AGENTS.md |
Documents checklist behavior and schema changes. |
Review details
Suppressed comments (1)
src/main/java/com/studysync/presentation/ui/components/TaskManagementPanel.java:859
- This adds the
Done whenfield only toTaskManagementPanel's task form.StudyPlannerPanel.showCreateTaskDialogis a second task-creation form and still constructs aTaskwithout settingdoneCriteria, so tasks created from the planner cannot use the new feature. Add the field/write path there too, or share the task form implementation.
TextArea doneArea = new TextArea(isNew ? "" : nvl(existingTask.getDoneCriteria()));
doneArea.setPromptText("What done means (optional)");
doneArea.setPrefRowCount(2);
doneArea.setWrapText(true);
- Files reviewed: 16/17 changed files
- Comments generated: 2
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…alendar, share the checklist helpers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds optional goal checklists and task "Done when" notes so completion is defined explicitly instead of guessed at the end of the day.
done_criteriaonstudy_goalsandtasks, nullable, no backfill). Scoring is unchanged.Validation:
./gradlew testpasses (78 tests, including six new persistence tests for tick preservation, last-tick achievement, reopen on untick, invalid-index no-op, duplicate lines, and the task field)../gradlew checkreports only pre-existing Checkstyle warnings. The JavaFX walk-through was not run.Migration: existing databases gain nullable
done_criteriacolumns; existing goals without a checklist behave exactly as before.