Skip to content

Fix build for Windows#1

Closed
mattleibow wants to merge 8 commits intodavidortinau:mainfrom
mattleibow:patch-1
Closed

Fix build for Windows#1
mattleibow wants to merge 8 commits intodavidortinau:mainfrom
mattleibow:patch-1

Conversation

@mattleibow
Copy link
Copy Markdown

No description provided.

@mattleibow mattleibow changed the title Update HowDoYouSayPageModel.cs Fix build for Windows Sep 10, 2024
@mattleibow mattleibow marked this pull request as draft September 10, 2024 14:37
davidortinau added a commit that referenced this pull request Nov 20, 2025
**Critical Fix for Both Issues:**

Issue #1 - "No cached plan found" preventing progress save:
- UpdatePlanItemProgressAsync now updates database FIRST
- No longer requires cache to exist
- Progress saves even if cache is lost

Issue #2 - New plan generated on Dashboard return:
- InitializePlanCompletionRecordsAsync pre-creates all DailyPlanCompletion records
- Called immediately after plan generation
- Ensures database has complete plan structure
- EnrichPlanWithCompletionDataAsync can now restore progress

**How it works:**
1. Plan generated → DailyPlanCompletion records created with 0 minutes
2. User practices → UpdatePlanItemProgressAsync updates DB (cache optional)
3. Return to Dashboard → GetCachedPlanAsync enriches from DB
4. Same plan IDs preserved → progress retained

The cache is now just a performance optimization, not required for correctness.
davidortinau added a commit that referenced this pull request Nov 20, 2025
**Issue #1: Wrong resource being used**
- Plan specified 'General Vocabulary' but activity loaded 'A day in Bali'
- Problem: Resource not in selected resources list, fell back to default
- Solution: Load resource from database if not in selected list

**Issue #2: Activity stalling after answer**
- User enters answer, nothing happens, just keeps rendering
- Added comprehensive logging to CheckAnswer() to diagnose
- Will show exactly where it's failing or hanging

Next step: Run the app and review logs to see where CheckAnswer() is stalling.
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.

2 participants