Skip to content

Document preview - #45857

Closed
xirothedev wants to merge 31 commits into
anomalyco:devfrom
The-Resonance-Team:document-preview
Closed

Document preview#45857
xirothedev wants to merge 31 commits into
anomalyco:devfrom
The-Resonance-Team:document-preview

Conversation

@xirothedev

Copy link
Copy Markdown

Issue for this PR

Closes #

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Please provide a description of the issue, the changes you made to fix it, and why they work. It is expected that you understand why your changes work and if you do not understand why at least say as much so a maintainer knows how much to value the PR.

If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!

How did you verify your code works?

Screenshots / recordings

If this is a UI change, please include a screenshot or recording.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

xirothedev and others added 30 commits August 25, 2026 18:13
- i18n: PDF iframe title and attachment filename fallback
- document-preview: render-failure fallback for docx/markdown (T4 DoD)
- plugin-invoke: abort timeout on listPlugins/pluginInvoke
- session-ui: docx-preview via workspace catalog
- tests: zero-plugins list case, invoke signal wiring
- office-preview: shared bubble style, named openManaged
Extract duplicated table-building into buildXlsxTable helper:
- Use actual Excel column widths from ws.colWidths/colWidthRanges/defaultColWidth
- Handle ws.mergeCells with colspan/rowspan (skip consumed cells)
- Freeze columns with sticky left positioning (ws.freezeCols)
- Both initial render and sheet-tab switching use the same helper
- Fallback to wb.sheets.map(s.name) when wb.sheetNames is empty
- Cap column widths at 400px to prevent absurd columns
- Extract colPx() helper to deduplicate width resolution
- Remove sheetNames.length guard — always render tab bar
- Fallback to 'Sheet1' when sheetNames is empty at runtime
- Remove debug console.log
- Set explicit color on sheet tab buttons and zoom text
- Was inheriting dark-mode text color from parent container
- DOCX: @silurus/ooxml WASM canvas (Word-fidelity) with docx-renderer fallback
- XLSX: HTML table from XlsxWorkbook model with actual column widths,
  merge cells, freeze columns, sheet tab bar with tab switching
- PPTX: PptxScrollViewer WASM with text selection
- V2 composer accepts office MIME types for drag/drop/paste/file picker
- Side panel tab routing for document previews (desktop)
- Electron vite config: WASM assets, ooxml exclude from optimizeDeps
- Fix: debug marker removed from file-picker.ts
- Fix: hardcoded path replaced with path.resolve in electron config
- Remove 10 narrating comments that state obvious code behavior
- Add OoxmlViewer interface to replace viewer: any in renderers
- Remove CONTEXT.md (skills-repo glossary, doesn't belong in project root)
- Update stories kind type to include xlsx/pptx
- Add XLSX_URL from EPC-Cashflow-Model (14K base64)
- Add Xlsx story export
- Fix Fallback story kind from xlsx to xyz (was misleading)
- Move test fixtures to fixtures/ directory (pdf, docx, xlsx, md)
- Use Vite ?url imports instead of inline base64 data URLs
- Stories load files at build time, cleaner source code
@github-actions github-actions Bot added needs:title needs:compliance This means the issue will auto-close after 2 hours. labels Aug 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hey! Your PR title Document preview doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@github-actions

Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • No "Type of change" checkbox is checked. Please select at least one.
  • No issue referenced. Please add Closes #<number> linking to the relevant issue.
  • "How did you verify your code works?" section is empty. Please explain how you tested.
  • Not all checklist items are checked. Please confirm you have tested locally and have not included unrelated changes.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Based on my search results, I found a potential duplicate:

PR #45853: feat: offline document preview (docx/xlsx/pptx/pdf)
#45853

This PR appears to be directly related to the current PR #45857 "Document preview" - they likely address the same feature for adding document preview functionality. PR #45853 is more specific, mentioning support for offline preview of various document formats (docx, xlsx, pptx, pdf).

@xirothedev xirothedev closed this Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs:compliance This means the issue will auto-close after 2 hours. needs:title

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant