Extend lazy persistence to project task views
Priority: Medium
Estimated Effort: S (1-2 days)
User Value
Users get consistent recurring task behavior whether viewing tasks in area or project context.
Dependencies
Blocked by: #12821 (Users see upcoming recurring tasks in area view)
Problem Context
After implementing lazy persistence in area views, users need the same recurring task behavior when viewing tasks within project contexts. This ensures a consistent experience across the application.
Solution Approach
Extend the proven lazy persistence pattern from area views to project task displays, with opportunity to refactor shared logic into reusable utilities.
Acceptance Criteria
- [ ] Project task view shows upcoming instances from recurring templates
- [ ] Behavior matches area view (virtual instances, completion, persistence)
- [ ] Shared logic extracted into reusable utilities from Issue #12821
- [ ] No regression in existing project task functionality
- [ ] Virtual instances in project view can be completed and persist correctly
Technical Scope
- Files:
app/project/[id]/page.tsx, shared utilities inlib/recurring-tasks.ts - Dependencies: Builds on lazy persistence implementation from #12821
- Integration: Project task display, existing task interaction patterns
Out of Scope
- New project-specific recurring task features
- Recurring project templates (different from task templates)
- Changes to project creation or management workflows
Implementation Notes
- Extract shared lazy persistence logic from area implementation into reusable utilities
- Apply the same virtual instance generation and merging pattern to project task queries
- Ensure project task completion triggers work correctly with virtual instances
- Maintain existing project task display and interaction patterns
INVEST Check
✅ Independent - Can be implemented after #12821 without other dependencies
✅ Negotiable - Implementation approach can be refined
✅ Valuable - Provides consistency across user experience
✅ Estimable - Straightforward extension of proven pattern, 1-2 days
✅ Small - Focused on project view context only
✅ Testable - Clear acceptance criteria and regression testing
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗