-
Notifications
You must be signed in to change notification settings - Fork 51
PM-3851 ai review configuration #1733
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
vas3a
merged 16 commits into
PM-3813_ai-reviewer-configs
from
PM-3851_ai-review-configuration
Feb 23, 2026
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
758e5c3
PM-3851 #time 5h Split reviews in 2 tabs: human & ai
vas3a 4dfa263
PM-3851 #time 3h ai tab split into template, manual config
vas3a 8c4214a
PM-3851 #time 4h mock reviewers API servies
vas3a 4419e7b
PM-3851 #time 3h use template view
vas3a ff154a2
PM-3851 #3.5h manual config for ai reviewers
vas3a 126a57a
PM-3851 - #4.5h start integration
vas3a da740a9
PM-3851 #time 2h refactor manual & template views
vas3a 4fa4d79
PM-3851 #time 1h cleanup
vas3a 1b601cf
PM-3851 #time 1h more cleanup
vas3a 5a32ff8
PM-3851 #30m render ai & human reviewers tabs from start, to keep sta…
vas3a 3f71798
PM-3851 #time 1h autosave ai review config
vas3a 7e375bc
PM-3851 #time 4h work on integration
vas3a 2cb88bd
small updates
vas3a ca0fcc0
PM-3851 #time 30m update weights validation
vas3a 5cee3cb
PM-3851 - #time 1h review configuration summary (in readonly mode)
vas3a a4998fc
sast fix
vas3a File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "challengeId": "97701509-f4ee-4a03-9bd1-bad7413d2274", | ||
| "minPassingThreshold": 15, | ||
| "mode": "AI_ONLY", | ||
| "templateId": "template_001", | ||
| "autoFinalize": false, | ||
| "formula": {}, | ||
| "workflows": [ | ||
| { | ||
| "workflowId": "1lROGgC0jANqJL", | ||
| "weightPercent": 80, | ||
| "isGating": false | ||
| }, | ||
| { | ||
| "workflowId": "J0aZLgbf9NUvnZ", | ||
| "weightPercent": 20, | ||
| "isGating": false | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,171 @@ | ||
| { | ||
| "templates": [ | ||
| { | ||
| "id": "template_001", | ||
| "challengeTrack": "Development", | ||
| "challengeType": "Challenge", | ||
| "title": "Development Code Challenge - Standard", | ||
| "description": "Standard AI review configuration for development track code challenges. Combines code quality and security checks with gating mechanism.", | ||
| "minPassingThreshold": 75.00, | ||
| "mode": "AI_GATING", | ||
| "autoFinalize": false, | ||
| "formula": { | ||
| "type": "gating", | ||
| "gates": [ | ||
| { | ||
| "workflowId": "wf_001_security", | ||
| "threshold": 80, | ||
| "isMandatory": true | ||
| } | ||
| ], | ||
| "scoring": { | ||
| "type": "weighted", | ||
| "weights": { | ||
| "wf_001_security": 0.4, | ||
| "wf_002_quality": 0.6 | ||
| } | ||
| } | ||
| }, | ||
| "workflows": [ | ||
| { | ||
| "id": "tcwf_001", | ||
| "configId": "template_001", | ||
| "workflowId": "wf_001_security", | ||
| "weightPercent": 40.00, | ||
| "isGating": true, | ||
| "workflow": { | ||
| "id": "wf_001_security", | ||
| "name": "Security Code Review", | ||
| "description": "Analyzes code for security vulnerabilities", | ||
| "scorecardId": "scorecard_sec_001" | ||
| } | ||
| }, | ||
| { | ||
| "id": "tcwf_002", | ||
| "configId": "template_001", | ||
| "workflowId": "wf_002_quality", | ||
| "weightPercent": 60.00, | ||
| "isGating": false, | ||
| "workflow": { | ||
| "id": "wf_002_quality", | ||
| "name": "Code Quality Check", | ||
| "description": "Evaluates code quality metrics", | ||
| "scorecardId": "scorecard_quality_001" | ||
| } | ||
| } | ||
| ], | ||
| "createdAt": "2026-01-15T10:30:00Z", | ||
| "createdBy": "admin_user_001", | ||
| "updatedAt": "2026-02-10T14:20:00Z", | ||
| "updatedBy": "admin_user_002" | ||
| }, | ||
| { | ||
| "id": "template_002", | ||
| "challengeTrack": "Design", | ||
| "challengeType": "Challenge", | ||
| "title": "Design Challenge - AI Only", | ||
| "description": "AI-only review for design challenges. No human review required - AI makes final decisions.", | ||
| "minPassingThreshold": 70.00, | ||
| "mode": "AI_ONLY", | ||
| "autoFinalize": true, | ||
| "formula": { | ||
| "type": "weighted", | ||
| "weights": { | ||
| "wf_003_design": 0.5, | ||
| "wf_004_usability": 0.5 | ||
| } | ||
| }, | ||
| "workflows": [ | ||
| { | ||
| "id": "tcwf_003", | ||
| "configId": "template_002", | ||
| "workflowId": "wf_003_design", | ||
| "weightPercent": 50.00, | ||
| "isGating": false, | ||
| "workflow": { | ||
| "id": "wf_003_design", | ||
| "name": "Design Review", | ||
| "description": "Reviews design assets and composition", | ||
| "scorecardId": "scorecard_design_001" | ||
| } | ||
| }, | ||
| { | ||
| "id": "tcwf_004", | ||
| "configId": "template_002", | ||
| "workflowId": "wf_004_usability", | ||
| "weightPercent": 50.00, | ||
| "isGating": false, | ||
| "workflow": { | ||
| "id": "wf_004_usability", | ||
| "name": "Usability Assessment", | ||
| "description": "Evaluates usability and UX principles", | ||
| "scorecardId": "scorecard_usability_001" | ||
| } | ||
| } | ||
| ], | ||
| "createdAt": "2026-01-20T09:00:00Z", | ||
| "createdBy": "admin_user_001", | ||
| "updatedAt": "2026-02-05T16:45:00Z", | ||
| "updatedBy": "admin_user_001" | ||
| }, | ||
| { | ||
| "id": "template_003", | ||
| "challengeTrack": "Data Science", | ||
| "challengeType": "Marathon Match", | ||
| "title": "Data Science Challenge - Gating", | ||
| "description": "Data science challenge with AI gating for submissions. AI filters low-quality submissions; humans review the rest.", | ||
| "minPassingThreshold": 80.00, | ||
| "mode": "AI_GATING", | ||
| "autoFinalize": false, | ||
| "formula": { | ||
| "type": "gating", | ||
| "gates": [ | ||
| { | ||
| "workflowId": "wf_005_accuracy", | ||
| "threshold": 75, | ||
| "isMandatory": true | ||
| } | ||
| ], | ||
| "scoring": { | ||
| "type": "weighted", | ||
| "weights": { | ||
| "wf_005_accuracy": 0.5, | ||
| "wf_006_methodology": 0.5 | ||
| } | ||
| } | ||
| }, | ||
| "workflows": [ | ||
| { | ||
| "id": "tcwf_005", | ||
| "configId": "template_003", | ||
| "workflowId": "wf_005_accuracy", | ||
| "weightPercent": 50.00, | ||
| "isGating": true, | ||
| "workflow": { | ||
| "id": "wf_005_accuracy", | ||
| "name": "Model Accuracy Validator", | ||
| "description": "Validates machine learning model accuracy", | ||
| "scorecardId": "scorecard_accuracy_001" | ||
| } | ||
| }, | ||
| { | ||
| "id": "tcwf_006", | ||
| "configId": "template_003", | ||
| "workflowId": "wf_006_methodology", | ||
| "weightPercent": 50.00, | ||
| "isGating": false, | ||
| "workflow": { | ||
| "id": "wf_006_methodology", | ||
| "name": "Methodology Review", | ||
| "description": "Reviews data science methodology", | ||
| "scorecardId": "scorecard_methodology_001" | ||
| } | ||
| } | ||
| ], | ||
| "createdAt": "2026-02-01T11:15:00Z", | ||
| "createdBy": "admin_user_002", | ||
| "updatedAt": "2026-02-15T13:30:00Z", | ||
| "updatedBy": "admin_user_002" | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -52,4 +52,10 @@ | |
| color: $tc-gray-40; | ||
| } | ||
| } | ||
|
|
||
| &.minWidth { | ||
| width: min-content; | ||
| padding-left: 16px; | ||
| padding-right: 16px; | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
src/components/ChallengeEditor/ChallengeReviewer-Field/AIWorkflowCard.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| import React from 'react' | ||
| import PropTypes from 'prop-types' | ||
| import styles from './AiWorkflowCard.module.scss' | ||
|
|
||
| const AIWorkflowCard = ({ workflow, scorecardId, description, onRemove, readOnly = false }) => { | ||
| return ( | ||
| <div className={styles.workflowCard}> | ||
| <div className={styles.workflowcardHeader}> | ||
| <div className={styles.workflowInfo}> | ||
| <div className={styles.workflowName}> | ||
| <span className={styles.workflowIcon}>🤖</span> | ||
| <span className={styles.workflowTitle}>{workflow.name}</span> | ||
| </div> | ||
| </div> | ||
| {!readOnly && onRemove && ( | ||
| <button | ||
| className={styles.workflowRemoveBtn} | ||
| onClick={onRemove} | ||
vas3a marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| title='Remove workflow' | ||
| aria-label='Remove workflow' | ||
| > | ||
| ✕ | ||
| </button> | ||
| )} | ||
| </div> | ||
|
|
||
| <div className={styles.workflowcardContent}> | ||
| {description && ( | ||
| <div className={styles.workflowDescription}> | ||
| <strong>Description:</strong> | ||
| <p>{description}</p> | ||
| </div> | ||
| )} | ||
|
|
||
| {scorecardId && ( | ||
| <div className={styles.workflowScorecard}> | ||
| <strong>Scorecard:</strong> | ||
| {scorecardId} | ||
| </div> | ||
| )} | ||
| </div> | ||
| </div> | ||
| ) | ||
| } | ||
|
|
||
| AIWorkflowCard.propTypes = { | ||
| workflow: PropTypes.shape({ | ||
| id: PropTypes.string, | ||
vas3a marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| name: PropTypes.string.isRequired | ||
| }).isRequired, | ||
| scorecardId: PropTypes.string, | ||
| description: PropTypes.string, | ||
| onRemove: PropTypes.func, | ||
| readOnly: PropTypes.bool | ||
| } | ||
|
|
||
| export default AIWorkflowCard | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.