PM-3786 ai assisted skills suggestions#1725
Merged
Conversation
…s input in challenge & engagement forms
| while (attempt < maxAttempts) { | ||
| try { | ||
| const response = await axiosInstance.get( | ||
| `${TC_AI_API_BASE_URL}/workflows/${workflowId}/runs/${runId}` |
There was a problem hiding this comment.
[correctness]
Consider adding a check for the response status code to ensure it is 200 before processing the response data. This can prevent issues if the API returns an error status with a valid JSON body.
| */ | ||
| export async function checkAIAPIHealth () { | ||
| try { | ||
| const response = await axiosInstance.get('/health', { timeout: 5000 }) |
There was a problem hiding this comment.
[❗❗ correctness]
The health check endpoint is being called without a base URL. Ensure that the axiosInstance is configured with the correct base URL, or prepend the base URL here to avoid potential issues in different environments.
kkartunov
approved these changes
Feb 11, 2026
| const showRequiredError = !readOnly && skillsRequired && challenge.submitTriggered && (!selectedSkills || !selectedSkills.length) | ||
|
|
||
| // Check if description exists to show AI button | ||
| const hasDescription = challenge.description && challenge.description.trim().length > 0 |
Contributor
There was a problem hiding this comment.
We need to up this to logical value. Can't find skills from a desc with 1 character, right!?
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request introduces AI-powered skill extraction to the Challenge & Engagement Editors, allowing users to automatically suggest and add relevant skills to a challenge/engagement based on the description.
-> Added a new service (
src/services/workflowAI.js) that interacts with an external AI workflow API to extract skills from challenge descriptions. This service handles starting workflow runs, polling for completion, and error handling.-> Updated configuration files (
config/constants/development.js,config/constants/production.js,src/config/constants.js) to include new environment variables and constants for the AI workflow service, such as API base URL, workflow ID, and polling intervals.-> Enhanced the
SkillsFieldcomponent to add an "AI Suggest" button, which triggers the AI skill extraction workflow. The UI provides loading feedback, disables interactions during processing, and displays success or error toasts based on the outcome.