Repository navigation
Import worksheet data and cached results from XLSB workbooks - #101
Merged
h-a-n-a-s-h-i merged 3 commits intoOct 10, 2026
Merged
Conversation
…tail PhRun is 10 bytes per [MS-XLSB] 2.5.103 (four u16 fields plus a 16-bit phType/alcH/unused1 word), so the documented size is kept; since the RichStr ends its record and phonetic data is not imported, bytes after the documented runs are now ignored instead of rejecting the file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
|
Merged into If you haven't already, please come join us on Discord: https://discord.gg/artcraft — we'd love to have you around. |
This was referenced Oct 11, 2026
Closed
neilcawse
added a commit
to neilcawse/gridcraft
that referenced
this pull request
Oct 12, 2026
GridCraft imports XLSB (storytold#101) and ODS (storytold#100) files, and storytold#321 added both to the Linux and Windows "Open with" lists, but the macOS Info.plist still declared only .xlsx, .xlsm, .csv and .tsv, so Finder's Open With didn't offer GridCraft for them. Add two CFBundleDocumentTypes entries (Editor, rank Alternate) with the UTIs macOS reports for these files, plus an imported UTI for .xlsb like the .xlsm one. A test now checks that the macOS and Windows packaging offer the same file types. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
neilcawse
added a commit
to neilcawse/gridcraft
that referenced
this pull request
Oct 13, 2026
GridCraft imports XLSB (storytold#101) and ODS (storytold#100) files, and storytold#321 added both to the Linux and Windows "Open with" lists, but the macOS Info.plist still declared only .xlsx, .xlsm, .csv and .tsv, so Finder's Open With didn't offer GridCraft for them. Add two CFBundleDocumentTypes entries (Editor, rank Alternate) with the UTIs macOS reports for these files, plus an imported UTI for .xlsb like the .xlsm one. A test now checks that the macOS and Windows packaging offer the same file types. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 11, 2026
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.
Addresses #92 with an initial XLSB worksheet-data import.
XLSB files can be selected or dropped into the app and opened through the CLI/MCP. The reader preserves worksheet names/visibility, scalar values, shared/inline/rich text, cached formula results (including errors), merged ranges and the workbook date system. It resolves package relationships and accepts both documented and commonly used binary-workbook content types. Original Rust fixtures cover malformed/truncated records, limits and extension blocks; no runtime dependencies or vendor fixtures were added.
This is data-only import: formulas become their last saved results, source formatting is omitted, and dates/currencies/percentages may display as raw numbers. Charts, images, macros and other workbook features are not imported. These limits appear in an app warning, returned warnings and CLI stderr. Imported workbooks have no save target; ordinary Save requests a new XLSX destination even if the source had a misleading
.xlsxextension. Explicit XLSB output is rejected.Validation: 113 reader/engine/CLI tests, eight UI checks (including a temporary offscreen import render), and seven CLI end-to-end checks pass. Native compile, WASM, formatting/assets/layers and diff checks pass. An independently generated original fixture was also accepted by LibreOffice, with values and hidden-sheet state verified; native Excel was not available. Full
cargo xtask cistops at the unchangedcore/src/date.rs:100Clippy warning, and scoped Clippy reports only the unchangedxlsx/src/sheet_read.rs:146warning. No suppressions added.Keep #92 open for formula/style fidelity and XLSB writing; this provides initial data access rather than full binary-workbook compatibility.