feat(DATAGO-123135): Add ability to preview binary artifacts (PDF. PPTX, DOCX)#850
Draft
amir-ghasemi wants to merge 12 commits intomainfrom
Draft
feat(DATAGO-123135): Add ability to preview binary artifacts (PDF. PPTX, DOCX)#850amir-ghasemi wants to merge 12 commits intomainfrom
amir-ghasemi wants to merge 12 commits intomainfrom
Conversation
…mir/feat-artifact-preview
…mir/feat-artifact-preview
WhiteSource Policy Violation Summary✅︎ No Blocking Whitesource Policy Violations found in solaceai/solace-agent-mesh-ui-pr-850! |
|
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 adds support for previewing Office documents (DOCX, PPTX) and PDF files directly in the web UI by integrating server-side document conversion (using LibreOffice) and a new PDF viewer. It updates both backend dependencies and the frontend to enable seamless in-browser previews, including error handling and user feedback when previews are unavailable.
Document preview support:
libreoffice-writer-nogui,libreoffice-impress-nogui,libreoffice-calc-nogui) in theDockerfileto enable document conversion for DOCX and PPTX files to PDF for previewing.OfficeDocumentRendererReact component to convert DOCX/PPTX files to PDF using a backend API, cache conversions, and render using the PDF viewer. Handles service availability checks and user-friendly errors.previewUtils.tsto detect DOCX, PPTX, and PDF files by filename or MIME type.PDF rendering enhancements:
PdfRendererReact component usingreact-pdffor rich in-browser PDF viewing, including zoom, pan, fit-to-width, and error handling.ContentRendererandArtifactPreviewContentcomponents to route DOCX, PPTX, and PDF files to the appropriate renderer and pass required props. [1] [2] [3]Frontend dependency updates:
react-pdfand its types topackage.jsonto support PDF rendering in the frontend. [1] [2]