-
Notifications
You must be signed in to change notification settings - Fork 577
feat(ui): adds genai suggestions for tags #6073
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
base: main
Are you sure you want to change the base?
Conversation
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. |
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-intelligence
plugin, enabling the generation of relevant tag suggestions for incidents and cases.genai_suggestions
boolean field has been added to theTagType
model, allowing admins to specify which tag types should be considered for AI suggestions.TagPicker
component 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 Type
andDiscoverable
status.Screenshots
genai-tag-suggestions-demo.mov
New attribute for each tag type:
