Skip to content

UN-1529-add-tables-to-buglist#188

Merged
marcbon merged 6 commits into
developfrom
UN-1529-add-tables-to-buglist
Jul 3, 2025
Merged

UN-1529-add-tables-to-buglist#188
marcbon merged 6 commits into
developfrom
UN-1529-add-tables-to-buglist

Conversation

@iDome89
Copy link
Copy Markdown
Contributor

@iDome89 iDome89 commented Jul 1, 2025

No description provided.

iDome89 added 2 commits June 30, 2025 17:06
…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.
@marcbon marcbon requested a review from Copilot July 2, 2025 10:55
marcbon
marcbon previously requested changes Jul 2, 2025
Copy link
Copy Markdown
Contributor

@marcbon marcbon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixare test e2e

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 AiSuggestion and AiScore components to display AI feedback per bug
  • Updates BugsTable to 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 infoModal is ambiguous—consider renaming to isInfoModalOpen to clearly indicate it's a boolean and align with the isOpen prop on Modal.
  const [infoModal, setInfoModal] = useState(false);

src/pages/BugsList/Table/AiScore.tsx:1

  • New component AiScore lacks 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 bugId as a number and then converts it to string. For consistency, consider having bugId typed as a string to match the API argument and avoid the toString() call.
    bugId: bugId.toString(),

Comment thread src/pages/BugsList/Table/index.tsx
@marcbon
Copy link
Copy Markdown
Contributor

marcbon commented Jul 3, 2025

image

@marcbon
Copy link
Copy Markdown
Contributor

marcbon commented Jul 3, 2025

image

@marcbon
Copy link
Copy Markdown
Contributor

marcbon commented Jul 3, 2025

image

@marcbon marcbon merged commit d07fba0 into develop Jul 3, 2025
3 of 5 checks passed
@marcbon marcbon deleted the UN-1529-add-tables-to-buglist branch July 3, 2025 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants