fraim 2.0.362 → 2.0.363-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -139,7 +139,9 @@ function projectReviewLifecycle(state) {
|
|
|
139
139
|
if (!review)
|
|
140
140
|
return { ...view, displayState: job?.state === 'complete' ? 'complete' : 'working' };
|
|
141
141
|
if (!review.decision || review.decision.status === 'changes_requested')
|
|
142
|
-
return
|
|
142
|
+
return review.revisionWork
|
|
143
|
+
? { ...view, displayState: 'working' }
|
|
144
|
+
: { ...view, displayState: 'waiting', attentionReason: review.decision ? 'Changes requested.' : 'Review the current result.' };
|
|
143
145
|
if (review.outcome?.status === 'failure' || review.outcome?.status === 'incomplete')
|
|
144
146
|
return { ...view, displayState: 'waiting', attentionReason: review.outcome.summary };
|
|
145
147
|
if (review.outcome?.status === 'success' || review.legacyCompletion)
|