feat(preview): add local Office document previews#154
Open
roxi3906 wants to merge 21 commits into
Open
Conversation
…e-preview-research # Conflicts: # src/main/artifacts/repository.test.ts # src/main/artifacts/repository.ts # src/main/uploads/repository.test.ts # src/main/uploads/repository.ts # src/main/windows.ts # src/renderer/index.html # src/renderer/src/pages/workspace/preview-support.ts # src/renderer/src/pages/workspace/previews/pdf-bytes.ts # src/renderer/src/pages/workspace/previews/pdfjs.ts # src/renderer/src/pages/workspace/previews/renderers/PdfPreview.tsx # src/renderer/src/pages/workspace/previews/renderers/PdfThumbnail.tsx # src/shared/artifacts.ts # src/shared/uploads.ts
…preview-research # Conflicts: # package-lock.json # package.json
Keep application-owned loading chrome consistent across spreadsheet parsing phases. Hide the vendor blocking loader before render while preserving compact background progress indicators, with regression coverage for status transitions and cleanup.
Add a primary, status-aware managed download button to unsupported preview states. Shorten the spreadsheet parsing title to describe only the current phase.
…preview-research # Conflicts: # package-lock.json # src/main/ipc.ts # vitest.config.ts
roxi3906
marked this pull request as ready for review
July 23, 2026 03:04
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.
Summary
Add fully local, read-only previews for Word, Excel, and PowerPoint files in the managed file workbench. The implementation uses dedicated open-source renderers for each Office format and integrates with the owner-scoped managed preview resource system.
Highlights
.docx,.xls,.xlsx, and.pptxfiles directly inside the desktop app..doc/.ppt, ZIP64, or unsupported packages.Impact
docx-preview@0.4.0,@file-viewer/renderer-spreadsheet@2.1.29,@aiden0z/pptx-renderer@1.2.4, andsaxes@6.0.0.5.4.624and keeps the range-based PDF preview path compatible with its legacy browser build and bundled worker.Test Results
npm test: 233 test files passed, 1 skipped; 2,173 tests passed, 43 skipped.npm run lint: passed with no warnings.npm run typecheck: passed for main/preload and renderer projects.npm audit --omit=optional: 0 vulnerabilities.npm run build: production Electron/Vite build passed.electron-builder --dir: macOS arm64 application directory generated successfully with ad-hoc signing.app.asarcontains the PDF and spreadsheet workers plus DOCX, spreadsheet, and PPTX renderer chunks.Potential Issues
.docand.pptfiles remain unsupported and require a future conversion path.Related PRs
Authors