This repository was archived by the owner on Sep 3, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 642
feat(ui): adds genai suggestions for tags #6073
Merged
Merged
Conversation
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
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces GenAI-powered tag suggestions to the TagPicker component by integrating an AI plugin, updating both backend and frontend code to generate and display intelligent tag recommendations. Key changes include:
- Adding a new "genai_suggestions" field to the TagType model and corresponding Pydantic schema.
- Creating new API endpoints and updating the AI service to fetch tag recommendations.
- Updating the Vuex store, UI components, and styles to handle and display the AI-generated suggestions.
Reviewed Changes
Copilot reviewed 16 out of 17 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/dispatch/tag_type/models.py | Added a new Boolean field "genai_suggestions" to TagType and updated the Pydantic schema. |
| src/dispatch/tag/views.py | Introduced new endpoints for fetching tag recommendations for cases and incidents. |
| src/dispatch/tag/models.py | Added new Pydantic models to support tag recommendation responses. |
| src/dispatch/static/dispatch/src/tag_type/Table.vue | Updated table slot templates including a new slot for GenAI suggestions. |
| src/dispatch/static/dispatch/src/tag_type/NewEditSheet.vue | Added UI elements for enabling GenAI suggestions in tag type configurations. |
| src/dispatch/static/dispatch/src/tag/store.js | Refactored Vuex store with actions and mutations to handle suggested tags and AI recommendations. |
| src/dispatch/static/dispatch/src/tag/api.js | Updated API calls to support new endpoints for case and incident recommendations. |
| src/dispatch/static/dispatch/src/tag/TableFilterDialog.vue | Introduced a new dialog component for improved tag filtering. |
| src/dispatch/static/dispatch/src/tag/Table.vue | Updated table component to incorporate filtering changes and new syntax for slots. |
| src/dispatch/static/dispatch/src/styles/tagpicker.scss | Added new styles for the GenAI suggestions panel and tag picker enhancements. |
| src/dispatch/database/service.py | Enhanced filtering and pagination logic for handling DISTINCT queries on Tag models. |
| src/dispatch/ai/service.py | Extended the AI service with a new method to generate tag recommendations using external AI resources. |
| src/dispatch/database/revisions/tenant/versions/2025-06-04_7fc3888c7b9a.py | Added migration for the new "genai_suggestions" column. |
aaronherman
reviewed
Jun 23, 2025
aaronherman
approved these changes
Jun 23, 2025
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 GenAI-powered tag suggestions to the existing TagPicker component, significantly enhancing the user experience by providing intelligent and context-aware recommendations for classifying incidents and cases.
Key Features & Enhancements
artificial-intelligenceplugin, enabling the generation of relevant tag suggestions for incidents and cases.genai_suggestionsboolean field has been added to theTagTypemodel, allowing admins to specify which tag types should be considered for AI suggestions.TagPickercomponent has been updated to display these AI-generated suggestions in a user-friendly panel./api/v1/tag/recommendations/{project_id}/case/{case_id}/api/v1/tag/recommendations/{project_id}/incident/{incident_id}src/dispatch/static/dispatch/src/tag/store.js). This improves maintainability and separation of concerns.Tag TypeandDiscoverablestatus.Screenshots
genai-tag-suggestions-demo.mov
New attribute for each tag type:
