feat: Add file name display in WebUI

Backend:
- Add file_path field to DocStatusResponse
- Update document status response creation

Frontend:
- Remove metadata column
- Improve filename display with truncation and tooltips
- Add show/hide filename toggle with proper styling
- Update translations for all supported languages"
This commit is contained in:
yangdx
2025-03-25 22:42:46 +08:00
parent e36cc87633
commit d456269718
7 changed files with 109 additions and 16 deletions

View File

@@ -91,6 +91,7 @@ class DocStatusResponse(BaseModel):
chunks_count: Optional[int] = None
error: Optional[str] = None
metadata: Optional[dict[str, Any]] = None
file_path: str
class DocsStatusesResponse(BaseModel):
@@ -890,6 +891,7 @@ def create_document_routes(
chunks_count=doc_status.chunks_count,
error=doc_status.error,
metadata=doc_status.metadata,
file_path=doc_status.file_path,
)
)
return response