Enhance AI Gap Fill Logic and Progression Path Handling
Deploy Development / deploy (push) Successful in 49s
Test Suite / pytest-backend (push) Successful in 45s
Test Suite / lint-backend (push) Successful in 1s
Test Suite / build-frontend (push) Successful in 15s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Successful in 1m14s

- Integrated `try_suggest_ai_stage_step` to suggest AI-generated gap fill steps based on user input, improving the automation of the planning process.
- Updated `_enrich_roadmap_unfilled_gap_offers` to conditionally include AI gap fill proposals, enhancing the offer generation logic.
- Implemented `_merge_gap_fill_offers_from_steps` to consolidate gap fill offers from various steps, ensuring a comprehensive list of available offers.
- Modified `ProgressionGraphEditor` to utilize the new merging logic for gap fill offers, improving the user experience in managing offers.
- Enhanced utility functions to streamline the collection and filtering of gap fill offers from API responses.
- Bumped version to reflect the new features and improvements.
This commit is contained in:
Lars committed 2026-06-13 08:36:53 +02:00
1 parent 3f130aa8ad
commit 89c6780294
3 files changed
+77 -22

No files matched your search

+18 -1
View File
@@ -387,12 +387,29 @@ export function collectGapOffersFromApiResponse(res) {
}
for (const offer of res?.gap_fill_offers || []) add(offer)
for (const offer of res?.path_qa?.gap_fill_offers || []) add(offer)
for (const step of res?.steps || []) {
const stepSources = [
...(res?.steps || []),
...(res?.proposed_steps || []),
...(res?.proposed_steps_pipeline || []),
]
for (const step of stepSources) {
if (step?.gap_offer) add(step.gap_offer)
}
return out
}
/** KI-Angebote aus einer oder mehreren Planungs-Antworten für leere Slots sammeln. */
export function mergeGapOffersForDraft(draft, ...responses) {
const collected = []
for (const res of responses) {
if (res) collected.push(...collectGapOffersFromApiResponse(res))
}
return filterGapOffersForUnfilledSlots(
draft,
dedupeGapOffersBySlot(collected, draft),
)
}
/** Maximal ein Angebot pro Slot — Roadmap-Lücken vor Brücken/QS. */
export function dedupeGapOffersBySlot(offers, draft) {
const bySlot = new Map()