Enhance Path Quality Assessment and Slot Management Features
Deploy Development / deploy (push) Successful in 42s
Test Suite / pytest-backend (push) Successful in 44s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 13s
Test Suite / k6 /health Baseline (push) Successful in 34s
Test Suite / playwright-tests (push) Successful in 1m13s

- Added new functions for computing assignment quality scores and counting step assignment statistics, improving the evaluation of steps in path quality assessments.
- Updated existing methods to incorporate the new scoring logic, enhancing the robustness of path evaluations.
- Introduced UI components in the frontend to display detailed quality assessment results, including handling of split dimensions in path evaluations.
- Enhanced tests to cover new functionalities and ensure accuracy in quality scoring and slot management processes.
This commit is contained in:
Lars committed 2026-06-13 17:13:35 +02:00
1 parent 7265cd5a01
commit 313d613b7c
8 files changed
+427 -55

No files matched your search

+21 -3
View File
@@ -173,8 +173,19 @@ export function pathQaQualityPercent(pathQa) {
return Math.round(Number(pathQa.quality_score) * 100)
}
export function pathQaSubsectionPercent(subsection) {
if (subsection?.quality_score == null || !Number.isFinite(Number(subsection.quality_score))) return null
return Math.round(Number(subsection.quality_score) * 100)
}
export function pathQaHasSplitDimensions(pathQa) {
return Boolean(pathQa?.roadmap_qa || pathQa?.assignment_qa)
}
export function pathQaShowsStrongResult(pathQa) {
const pct = pathQaQualityPercent(pathQa)
const assignmentOk = pathQa?.assignment_qa ? pathQa.assignment_qa.overall_ok !== false : true
if (!assignmentOk) return false
if (pathQa?.overall_ok && pct != null && pct >= 85) return true
return Boolean(pathQa?.overall_ok && pct != null && pct >= 80 && !(pathQa?.issues || []).length)
}
@@ -1073,9 +1084,16 @@ export function compareDiffsForDialog(comparison) {
export function defaultSelectedCompareDiffs(comparison) {
const reviews = compareSlotReviews(comparison)
if (reviews.length > 0) {
return reviews
.filter((review) => review?.library_alternative?.auto_select)
.map((review) => slotReviewSelectionKey(review.roadmap_major_step_index, 'library'))
const keys = []
for (const review of reviews) {
const midx = review.roadmap_major_step_index
if (review?.ai_alternative?.auto_select) {
keys.push(slotReviewSelectionKey(midx, 'ai'))
} else if (review?.library_alternative?.auto_select) {
keys.push(slotReviewSelectionKey(midx, 'library'))
}
}
return keys
}
return compareDiffsForDialog(comparison).map((d) => Number(d.roadmap_major_step_index))
}