Enhance Progression Path Suggestion with Stage Specification Refinement
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 1m16s
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 1m16s
- Introduced `auto_refine_stage_spec` to `ProgressionPathSuggestRequest`, enabling optional refinement of stage specifications during the rematch process. - Updated `_run_roadmap_rematch_loop` to incorporate stage specification refinements, logging changes for better tracking of adjustments made during rematching. - Enhanced `suggest_progression_path` to include refine logs in the output, providing clearer insights into the refinement process. - Added utility functions for formatting refine log entries, improving the display of refinement actions in the frontend components. - Updated frontend components to display refine logs, enhancing user feedback on stage specification adjustments during progression analysis. - Bumped version to 0.8.227 to reflect the new features and improvements.
This commit is contained in:
1 parent
de9fdf3ac0
commit
f36a747efa
7 files changed
+417
-4
No files matched your search
@@ -8,6 +8,7 @@ import {
|
||||
offerSourceLabel,
|
||||
optimizationHintActionLabel,
|
||||
formatRematchLogEntry,
|
||||
formatRefineLogEntry,
|
||||
hasRematchSlotHints,
|
||||
resolveHintSlotIndex,
|
||||
resolveOfferSlotIndex,
|
||||
@@ -165,6 +166,7 @@ export default function ProgressionFindingsPanel({
|
||||
}) {
|
||||
const optimizationHints = Array.isArray(pathQa?.optimization_hints) ? pathQa.optimization_hints : []
|
||||
const rematchLog = Array.isArray(pathQa?.rematch_log) ? pathQa.rematch_log : []
|
||||
const refineLog = Array.isArray(pathQa?.refine_log) ? pathQa.refine_log : []
|
||||
const showRematchAction = hasRematchSlotHints(pathQa) && typeof onRematchSlots === 'function'
|
||||
|
||||
return (
|
||||
@@ -246,6 +248,20 @@ export default function ProgressionFindingsPanel({
|
||||
</ul>
|
||||
</>
|
||||
) : null}
|
||||
{pathQa.refine_applied && refineLog.length > 0 ? (
|
||||
<>
|
||||
<p style={{ margin: '8px 0 4px', fontWeight: 600, color: 'var(--text2)' }}>
|
||||
Stufen-Spec verfeinert ({refineLog.length})
|
||||
</p>
|
||||
<ul style={{ margin: 0, paddingLeft: '16px', color: 'var(--text2)' }}>
|
||||
{refineLog.map((entry, i) => (
|
||||
<li key={`refine-${i}-${entry.roadmap_major_step_index}`}>
|
||||
{formatRefineLogEntry(entry)}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</>
|
||||
) : null}
|
||||
{optimizationHints.length > 0 ? (
|
||||
<>
|
||||
<p style={{ margin: '8px 0 4px', fontWeight: 600, color: 'var(--text2)' }}>
|
||||
|
||||
@@ -446,6 +446,10 @@ export default function ProgressionGraphEditor({ graphId, embedded = false, onSa
|
||||
`Auto-Rematch: ${rematchLog.length} Anpassung(en) in ${rematchRounds} Runde(n).`,
|
||||
)
|
||||
}
|
||||
const refineLog = res?.path_qa?.refine_log
|
||||
if (Array.isArray(refineLog) && refineLog.length > 0) {
|
||||
parts.push(`Stufen-Spec: ${refineLog.length} Slot(s) verfeinert.`)
|
||||
}
|
||||
setMatchNotice(parts.join(' '))
|
||||
}
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user