Implement Roadmap Review Features and Enhance Progression Path Management
Deploy Development / deploy (push) Successful in 43s
Test Suite / pytest-backend (push) Successful in 47s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 14s
Test Suite / k6 /health Baseline (push) Successful in 34s
Test Suite / playwright-tests (push) Successful in 1m13s
Deploy Development / deploy (push) Successful in 43s
Test Suite / pytest-backend (push) Successful in 47s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 14s
Test Suite / k6 /health Baseline (push) Successful in 34s
Test Suite / playwright-tests (push) Successful in 1m13s
- Added support for editable major steps in the roadmap, allowing users to modify phase, learning goals, and order before exercise matching. - Introduced a new `roadmap_override` feature to facilitate customized retrieval without re-invoking the roadmap AI. - Updated the `ExerciseProgressionPathBuilder` component to incorporate these new features, enhancing user interaction and flexibility. - Incremented application version to 0.8.207 to reflect these changes.
This commit is contained in:
1 parent
0677663268
commit
f074a8bef0
9 files changed
+514
-76
No files matched your search
@@ -14,6 +14,9 @@ from planning_progression_roadmap import (
|
||||
run_progression_roadmap_pipeline,
|
||||
stage_spec_exercise_kind_filter,
|
||||
stage_spec_retrieval_query,
|
||||
normalize_major_steps_for_override,
|
||||
roadmap_context_from_override,
|
||||
RoadmapOverridePayload,
|
||||
)
|
||||
from planning_exercise_semantics import build_semantic_brief
|
||||
|
||||
@@ -90,6 +93,40 @@ def test_build_roadmap_unfilled_gap_specs():
|
||||
assert specs[0]["phase"] == "anwendung"
|
||||
|
||||
|
||||
def test_normalize_major_steps_reindexes():
|
||||
majors = normalize_major_steps_for_override(
|
||||
[
|
||||
MajorStep(index=9, phase="einstieg", learning_goal="Einstieg", consolidates=[]),
|
||||
MajorStep(index=8, phase="perfektion", learning_goal="Ziel", consolidates=[]),
|
||||
],
|
||||
max_steps=5,
|
||||
)
|
||||
assert len(majors) == 2
|
||||
assert majors[0].index == 0
|
||||
assert majors[1].index == 1
|
||||
|
||||
|
||||
def test_roadmap_context_from_override():
|
||||
brief = build_semantic_brief("Mae Geri Perfektion")
|
||||
override = RoadmapOverridePayload(
|
||||
major_steps=[
|
||||
MajorStep(index=0, phase="einstieg", learning_goal="Mae Geri Einstieg", consolidates=[]),
|
||||
MajorStep(index=1, phase="grundlage", learning_goal="Stand und Hüfte", consolidates=[]),
|
||||
MajorStep(index=2, phase="perfektion", learning_goal="Präzision unter Belastung", consolidates=[]),
|
||||
]
|
||||
)
|
||||
ctx = roadmap_context_from_override(
|
||||
"Mae Geri Perfektion",
|
||||
max_steps=5,
|
||||
semantic_brief=brief,
|
||||
override=override,
|
||||
)
|
||||
assert ctx.pipeline_phase == "roadmap_v1_edited"
|
||||
assert len(ctx.roadmap.major_steps) == 3
|
||||
assert len(ctx.stage_specs) == 3
|
||||
assert ctx.stage_specs[1].learning_goal == "Stand und Hüfte"
|
||||
|
||||
|
||||
def test_api_dict_exposes_prompt_slug_catalog():
|
||||
ctx = run_progression_roadmap_pipeline("Mae Geri", max_steps=3, include_llm_roadmap=False)
|
||||
api = progression_roadmap_to_api_dict(ctx)
|
||||
|
||||
Reference in new issue
Block a user