Enhance Path Evaluation and Slot Management Features
Deploy Development / deploy (push) Successful in 44s
Test Suite / pytest-backend (push) Successful in 44s
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 44s
Test Suite / pytest-backend (push) Successful in 44s
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
- Introduced `_parse_slot_refs_from_text` to extract and convert slot references from text, improving the handling of user input in path evaluations. - Updated `_problematic_slots_from_path_qa` to utilize the new parsing function, enhancing the identification of problematic slots based on various hints and issues. - Enhanced `ProgressionGraphEditor` and `ProgressionOptimizeCompareModal` to better display identified problem slots and their associated reasons, improving user feedback during evaluations. - Added tests for new parsing functionality and its integration with existing slot management processes, ensuring robustness in slot reference handling.
This commit is contained in:
1 parent
3468b2066e
commit
e9bf5bd1a5
4 files changed
+207
-39
No files matched your search
@@ -507,6 +507,11 @@ export default function ProgressionGraphEditor({ graphId, embedded = false, onSa
|
||||
evaluate_only: false,
|
||||
unified_slot_review: true,
|
||||
baseline_evaluate_steps: slotsToEvaluateSteps(synced),
|
||||
baseline_path_qa_snapshot: baselineRes?.path_qa || null,
|
||||
baseline_quality_score:
|
||||
baselineRes?.path_qa?.quality_score != null
|
||||
? Number(baselineRes.path_qa.quality_score)
|
||||
: null,
|
||||
include_llm_intent: false,
|
||||
auto_rematch_after_qa: false,
|
||||
})
|
||||
|
||||
@@ -222,10 +222,50 @@ export default function ProgressionOptimizeCompareModal({
|
||||
) : null}
|
||||
|
||||
{dialogDiffs.length === 0 ? (
|
||||
<p style={{ fontSize: '12px', color: 'var(--text2)' }}>
|
||||
Keine Verbesserung gefunden — dein Pfad ist für alle Slots bereits optimal bewertet
|
||||
oder es fehlen passende Bibliotheks-Treffer (KI-Angebote im Bewertungs-Panel).
|
||||
</p>
|
||||
<>
|
||||
<p style={{ fontSize: '12px', color: 'var(--text2)' }}>
|
||||
Keine Bibliotheks-Verbesserung mit messbarem Gewinn — Schachstellen siehe unten.
|
||||
KI-Angebote im Bewertungs-Panel oder „Brücke / KI-Angebot“ nutzen.
|
||||
</p>
|
||||
{comparison?.problem_slots && Object.keys(comparison.problem_slots).length > 0 ? (
|
||||
<ul
|
||||
style={{
|
||||
listStyle: 'none',
|
||||
padding: 0,
|
||||
margin: '12px 0 0',
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
gap: '8px',
|
||||
}}
|
||||
>
|
||||
{Object.entries(comparison.problem_slots).map(([midxRaw, reasons]) => {
|
||||
const midx = Number(midxRaw)
|
||||
const reasonList = Array.isArray(reasons) ? reasons : [reasons]
|
||||
return (
|
||||
<li
|
||||
key={`problem-${midxRaw}`}
|
||||
style={{
|
||||
padding: '10px 12px',
|
||||
borderRadius: '8px',
|
||||
border: '1px solid var(--danger)',
|
||||
background: 'var(--surface2)',
|
||||
fontSize: '12px',
|
||||
}}
|
||||
>
|
||||
<strong style={{ color: 'var(--danger)' }}>
|
||||
Schachstelle Slot {midx + 1}
|
||||
</strong>
|
||||
<ul style={{ margin: '6px 0 0', paddingLeft: '16px', color: 'var(--text2)' }}>
|
||||
{reasonList.filter(Boolean).map((text, i) => (
|
||||
<li key={`${midxRaw}-r-${i}`}>{text}</li>
|
||||
))}
|
||||
</ul>
|
||||
</li>
|
||||
)
|
||||
})}
|
||||
</ul>
|
||||
) : null}
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<div style={{ display: 'flex', gap: '8px', marginBottom: '8px', flexWrap: 'wrap' }}>
|
||||
|
||||
Reference in new issue
Block a user