feat: implement unified step positioning for tutorial editor

Implements a unified step positioning system that allows concept steps
and practice steps to be inserted at correct logical positions in the
tutorial flow based on which "New" dropdown button is clicked.

Key changes:
- Add position property to TutorialStep interface for unified ordering
- Update addStep and addPracticeStep functions to calculate proper positions
- Use fractional positioning to insert between existing steps
- Ensure both step types participate in a single ordered sequence

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Thomas Hallock
2025-09-21 10:32:06 -05:00
parent 9305f11a01
commit 6aac8f204a
2 changed files with 1364 additions and 489 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -23,6 +23,7 @@ export interface TutorialStep {
hint: string
}
multiStepInstructions?: string[]
position?: number // Position in unified tutorial flow
}
// Skill-based system for practice problem generation