Skip to content

Commit 86fa6ce

Browse files
authored
Merge pull request #1742 from topcoder-platform/PM-4302_ai-config-fixes
PM-4302 ai config fixes
2 parents 74ac44f + 0df49af commit 86fa6ce

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/components/ChallengeEditor/ChallengeReviewer-Field/AiReviewerTab/components/ReviewSettingsSection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const ReviewSettingsSection = ({ configuration, onUpdateConfiguration, readOnly,
2121
className={styles.modeDropdown}
2222
>
2323
<option value='AI_GATING'>AI_GATING</option>
24-
<option value='AI_ONLY'>AI_ONLY</option>
24+
{/* <option value='AI_ONLY'>AI_ONLY</option> */}
2525
</select>
2626
<p className={styles.modeInfo}>
2727
{configuration.mode === 'AI_GATING'

src/components/ChallengeEditor/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2053,6 +2053,7 @@ class ChallengeEditor extends Component {
20532053
const hasRealAiScreeningPhase = phases.some(p => p.name === AI_SCREENING_PHASE_NAME)
20542054
const showVirtualAiScreening = hasAiReviewers(challenge.reviewers) && !hasRealAiScreeningPhase
20552055
const submissionIndex = phases.findIndex(p => p.name === 'Submission')
2056+
const checkpointSubmissionIndex = phases.findIndex(p => p.name === 'Checkpoint Submission')
20562057
return (
20572058
<>
20582059
{phases.map((phase, index) => (
@@ -2065,7 +2066,7 @@ class ChallengeEditor extends Component {
20652066
this.onUpdatePhaseDate(item, index)
20662067
}}
20672068
/>
2068-
{showVirtualAiScreening && index === submissionIndex && (
2069+
{showVirtualAiScreening && (index === submissionIndex || index === checkpointSubmissionIndex) && (
20692070
<PhaseInput
20702071
phase={{ name: AI_SCREENING_PHASE_NAME }}
20712072
readOnly
@@ -2074,7 +2075,7 @@ class ChallengeEditor extends Component {
20742075
)}
20752076
</React.Fragment>
20762077
))}
2077-
{showVirtualAiScreening && submissionIndex === -1 && (
2078+
{showVirtualAiScreening && (submissionIndex === -1 || checkpointSubmissionIndex === -1) && (
20782079
<PhaseInput
20792080
phase={{ name: AI_SCREENING_PHASE_NAME }}
20802081
readOnly

0 commit comments

Comments
 (0)