Add AI Suggestion Handling for Roadmap Gaps and Enhance Progression Graph Components
Deploy Development / deploy (push) Successful in 44s
Test Suite / pytest-backend (push) Successful in 45s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 15s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Successful in 1m17s
Deploy Development / deploy (push) Successful in 44s
Test Suite / pytest-backend (push) Successful in 45s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 15s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Successful in 1m17s
- Implemented functions to resolve neighboring steps based on major indices and build AI context for unfilled roadmap stages. - Enhanced `try_suggest_ai_stage_step` to generate AI proposals for empty roadmap stages, improving user experience in gap filling. - Updated `build_gap_fill_offer` to utilize major step neighbors for better context in offers related to unfilled slots. - Added tests to ensure correct functionality of AI suggestion handling in the context of roadmap gaps. - Incremented application version to reflect these updates.
This commit is contained in:
1 parent
ee22b22970
commit
e0ddfa6ce5
5 files changed
+490
-48
No files matched your search
@@ -136,6 +136,39 @@ def test_build_gap_fill_goal_text_includes_expected_skills():
|
||||
assert "Timing" in text
|
||||
|
||||
|
||||
def test_build_gap_fill_offer_roadmap_unfilled_uses_major_step_neighbors():
|
||||
"""Leere Stufe 2 zwischen Stufe 1 und 3 — Nachbarn per roadmap_major_step_index."""
|
||||
brief = build_semantic_brief("Kumite Beinarbeit")
|
||||
steps = [
|
||||
{
|
||||
"title": "Explosive Angriffe",
|
||||
"exercise_id": 10,
|
||||
"roadmap_major_step_index": 0,
|
||||
},
|
||||
{
|
||||
"title": "Kumite-Anwendung",
|
||||
"exercise_id": 30,
|
||||
"roadmap_major_step_index": 2,
|
||||
},
|
||||
]
|
||||
offer = build_gap_fill_offer(
|
||||
spec={
|
||||
"source": "roadmap_unfilled",
|
||||
"roadmap_major_step_index": 1,
|
||||
"phase": "grundlage",
|
||||
"title_hint": "Grundlegende Kumite-Steppbewegungen",
|
||||
"gap": {"learning_goal": "Grundlegende Kumite-Steppbewegungen", "expected_phase": "grundlage"},
|
||||
},
|
||||
steps=steps,
|
||||
goal_query="Kumite Beinarbeit",
|
||||
brief=brief,
|
||||
)
|
||||
assert offer["roadmap_major_step_index"] == 1
|
||||
assert "Explosive Angriffe" in offer["from_title"]
|
||||
assert "Kumite-Anwendung" in offer["to_title"]
|
||||
assert "Stufen-Lernziel" in offer["goal_for_ai"] or "Roadmap-Stufe" in offer["goal_for_ai"]
|
||||
|
||||
|
||||
def test_build_gap_fill_offer_exposes_context_preview():
|
||||
brief = build_semantic_brief("Kumite Beinarbeit")
|
||||
offer = build_gap_fill_offer(
|
||||
|
||||
Reference in new issue
Block a user