Add findings_stale field to GraphPlanningRoadmapArtifact and update ProgressionGraphEditor for state management
Deploy Development / deploy (push) Successful in 43s
Test Suite / pytest-backend (push) Successful in 45s
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 1m34s
Deploy Development / deploy (push) Successful in 43s
Test Suite / pytest-backend (push) Successful in 45s
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 1m34s
- Introduced `findings_stale` field in `GraphPlanningRoadmapArtifact` to track the freshness of findings. - Updated `ProgressionGraphEditor` to manage `findingsStale` state across various functions, ensuring accurate representation of evaluation status. - Modified related utility functions and tests to accommodate the new state, enhancing overall functionality and user feedback in the progression graph management process.
This commit is contained in:
1 parent
5e5f4ca8d4
commit
7265cd5a01
4 files changed
+38
-24
No files matched your search
@@ -835,6 +835,7 @@ export function hydrateProgressionGraphDraft({
|
||||
progressionRoadmap: artifact?.progression_roadmap || null,
|
||||
planningCatalogContext: parsePlanningCatalogContextFromArtifact(artifact),
|
||||
lastFindings: artifact?.last_findings || null,
|
||||
findingsStale: Boolean(artifact?.findings_stale),
|
||||
primaryChainEdgeIds: primaryChain?.edges?.map((e) => e.id) || [],
|
||||
siblingEdgeIds: siblingEdges.map((e) => e.id),
|
||||
dirty: false,
|
||||
@@ -871,6 +872,7 @@ export function buildPlanningArtifactFromDraft(draft, { lastFindings = undefined
|
||||
|
||||
const findings = lastFindings !== undefined ? lastFindings : draft.lastFindings
|
||||
if (findings) artifact.last_findings = findings
|
||||
artifact.findings_stale = Boolean(draft.findingsStale)
|
||||
|
||||
return artifact
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user