Enhance Roadmap Slot Matching and Gap Offer Logic
Deploy Development / deploy (push) Successful in 45s
Test Suite / pytest-backend (push) Successful in 45s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 13s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Successful in 1m22s
Deploy Development / deploy (push) Successful in 45s
Test Suite / pytest-backend (push) Successful in 45s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 13s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Successful in 1m22s
- Introduced `_roadmap_step_passes_post_match_gate` to validate steps after matching, ensuring only relevant steps proceed. - Enhanced `_enrich_roadmap_unfilled_gap_offers` to generate AI gap offers for unfilled roadmap slots, improving exercise suggestions. - Updated `suggest_progression_path` to incorporate new gap offer logic and streamline the handling of roadmap steps. - Refined frontend logic in `applyMatchStepsToSlots` to better manage step assignments and improve clarity in slot handling. - Bumped version to 0.8.231 to reflect the new features and improvements.
This commit is contained in:
1 parent
d448c3191f
commit
63c99b0ec5
5 files changed
+245
-93
No files matched your search
@@ -207,8 +207,29 @@ def rematch_roadmap_slots(
|
||||
}
|
||||
)
|
||||
else:
|
||||
goal = (stage_spec.learning_goal or "").strip()
|
||||
major = None
|
||||
if roadmap_ctx.roadmap:
|
||||
major = next(
|
||||
(m for m in roadmap_ctx.roadmap.major_steps if int(m.index) == int(major_idx)),
|
||||
None,
|
||||
)
|
||||
steps_by_major[int(major_idx)] = {
|
||||
"exercise_id": None,
|
||||
"variant_id": None,
|
||||
"title": goal or f"Slot {major_idx + 1}",
|
||||
"is_ai_proposal": False,
|
||||
"roadmap_major_step_index": int(major_idx),
|
||||
"roadmap_phase": major.phase if major else None,
|
||||
"roadmap_learning_goal": goal or None,
|
||||
"roadmap_match_source": "unfilled",
|
||||
"slot_status": "unfilled",
|
||||
"reasons": ["Keine passende Übung für Roadmap-Stufe"],
|
||||
}
|
||||
if unfilled_spec is not None:
|
||||
new_unfilled.append((step_index, unfilled_spec))
|
||||
elif stage_spec is not None:
|
||||
new_unfilled.append((step_index, stage_spec))
|
||||
rematch_log.append(
|
||||
{
|
||||
"roadmap_major_step_index": int(major_idx),
|
||||
|
||||
Reference in new issue
Block a user