feat: add knowledge status#53
Merged
lucaseduoli merged 15 commits intomainfrom Sep 24, 2025
Merged
Conversation
mfortman11
approved these changes
Sep 23, 2025
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 support for displaying and managing document processing status in the knowledge management UI. It adds a new
StatusBadgecomponent, tracks task-related files and their statuses, and ensures that both backend and in-progress files are shown with accurate status indicators. The changes improve user feedback and make the UI more robust when handling asynchronous document processing and deletion.Status tracking and UI enhancements:
StatusBadgecomponent (frontend/src/components/ui/status-badge.tsx) and an animated processing icon (frontend/src/components/ui/animated-processing-icon.tsx) to visually indicate document status such as "processing", "active", "failed", etc. [1] [2]Fileinterface inuseGetSearchQuery.tsto include an optionalstatusfield, and made several fields optional to better support files in different states.frontend/src/app/knowledge/page.tsx) to merge backend results with in-progress task files, display their status, and use the newStatusBadgefor each file. Also improved table rendering and formatting for chunk counts and scores. [1] [2] [3]Task context and file state management:
TaskContextto track files associated with tasks, including their status and metadata, and to update or remove files based on task completion or failure. This ensures the UI reflects both backend and in-progress files accurately. [1] [2] [3] [4] [5]API and mutation improvements:
onSettledwith a delay for query invalidation, ensuring UI updates after deletions are more reliable. Also made minor API parameter and error handling tweaks. [1] [2] [3] [4]