UN-1529-add-tables-to-buglist#188
Merged
Merged
Conversation
…us and scores - Implemented AiSuggestion component to fetch and display AI review status with styled indication based on status (approved, refused, need review). - Implemented AiScore component to fetch and display AI score percentage with styled indication based on score range. - Both components utilize the useGetCampaignsByCampaignBugsAndBugIdAiReviewQuery for data retrieval.
There was a problem hiding this comment.
Pull Request Overview
Adds AI review functionality into the bug list by introducing a new API endpoint and corresponding UI components for suggestions and scoring.
- Introduces a new RTK Query endpoint and types for AI review (
/aiReview) - Adds
AiSuggestionandAiScorecomponents to display AI feedback per bug - Updates
BugsTableto include new table columns and an info modal explaining the AI score
Reviewed Changes
Copilot reviewed 4 out of 6 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/services/tryberApi/index.ts | Added getCampaignsByCampaignBugsAndBugIdAiReview endpoint and types |
| src/pages/BugsList/Table/index.tsx | Integrated AI suggestion and score columns; implemented info modal |
| src/pages/BugsList/Table/AiScore.tsx | New component to fetch & render AI score with conditional styling |
| src/pages/BugsList/Table/AISuggestion.tsx | New component to fetch & render AI suggestion with conditional styling |
Comments suppressed due to low confidence (3)
src/pages/BugsList/Table/index.tsx:29
- [nitpick] The state variable
infoModalis ambiguous—consider renaming toisInfoModalOpento clearly indicate it's a boolean and align with theisOpenprop onModal.
const [infoModal, setInfoModal] = useState(false);
src/pages/BugsList/Table/AiScore.tsx:1
- New component
AiScorelacks dedicated tests; consider adding unit tests to cover loading, error, and successful data states.
import { useGetCampaignsByCampaignBugsAndBugIdAiReviewQuery } from "src/services/tryberApi";
src/pages/BugsList/Table/AiScore.tsx:20
- [nitpick] The component accepts
bugIdas a number and then converts it to string. For consistency, consider havingbugIdtyped as a string to match the API argument and avoid thetoString()call.
bugId: bugId.toString(),
Contributor
Contributor
Contributor
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.



No description provided.