Enhance Planning Catalog Context Integration in Progression Path
Deploy Development / deploy (push) Successful in 45s
Test Suite / pytest-backend (push) Successful in 43s
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 1m15s
Deploy Development / deploy (push) Successful in 45s
Test Suite / pytest-backend (push) Successful in 43s
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 1m15s
- Updated `PROJECT_STATUS.md` to reflect the addition of the Planning AI Progression Graph and its context in the roadmap. - Enhanced `DOMAIN_MODEL.md` with details on the new `planning_catalog_context` features, allowing trainers to manage curriculum stages and context. - Added tests in `test_planning_catalog_context.py` to validate the separation of LLM highlights from fix hints during QA processes. - Updated `HANDOVER.md` and `PLANNING_KI_ROADMAP.md` to reflect the latest app version and improvements in the planning context. - Enhanced frontend components to support the new planning catalog context, including updates to `ExerciseProgressionPathBuilder` and `ProgressionGraphEditor`. - Bumped version to 0.8.233 to reflect the new features and improvements.
This commit is contained in:
1 parent
6ab2f20f08
commit
f3710ac0a1
11 files changed
+643
-198
No files matched your search
@@ -141,6 +141,44 @@ export function optimizationHintActionLabel(action) {
|
||||
return OPTIMIZATION_ACTION_LABELS[action] || action || 'Hinweis'
|
||||
}
|
||||
|
||||
/** LLM-Empfehlungen von technischen Fix-Hinweisen trennen (QS-UI). */
|
||||
export function splitPathQaHints(pathQa) {
|
||||
const hints = Array.isArray(pathQa?.optimization_hints) ? pathQa.optimization_hints : []
|
||||
const fixHints = hints.filter((h) => String(h?.issue || '') !== 'llm_recommendation')
|
||||
const highlightHints = hints.filter((h) => String(h?.issue || '') === 'llm_recommendation')
|
||||
const recommendations = Array.isArray(pathQa?.recommendations) ? pathQa.recommendations : []
|
||||
const highlightTexts = []
|
||||
const seen = new Set()
|
||||
for (const rec of recommendations) {
|
||||
const text = String(rec || '').trim()
|
||||
const key = text.toLowerCase()
|
||||
if (text && !seen.has(key)) {
|
||||
seen.add(key)
|
||||
highlightTexts.push({ text, source: 'recommendation' })
|
||||
}
|
||||
}
|
||||
for (const hint of highlightHints) {
|
||||
const text = String(hint.reason || hint.title || '').trim()
|
||||
const key = text.toLowerCase()
|
||||
if (text && !seen.has(key)) {
|
||||
seen.add(key)
|
||||
highlightTexts.push({ text, source: 'hint', hint })
|
||||
}
|
||||
}
|
||||
return { fixHints, highlightTexts }
|
||||
}
|
||||
|
||||
export function pathQaQualityPercent(pathQa) {
|
||||
if (pathQa?.quality_score == null || !Number.isFinite(Number(pathQa.quality_score))) return null
|
||||
return Math.round(Number(pathQa.quality_score) * 100)
|
||||
}
|
||||
|
||||
export function pathQaShowsStrongResult(pathQa) {
|
||||
const pct = pathQaQualityPercent(pathQa)
|
||||
if (pathQa?.overall_ok && pct != null && pct >= 85) return true
|
||||
return Boolean(pathQa?.overall_ok && pct != null && pct >= 80 && !(pathQa?.issues || []).length)
|
||||
}
|
||||
|
||||
/** Slot-Index aus optimization_hint (roadmap_major_step_index oder step_index). */
|
||||
export function resolveHintSlotIndex(hint, draft = null) {
|
||||
if (!hint || typeof hint !== 'object') return null
|
||||
|
||||
Reference in new issue
Block a user