Repository navigation
Add first-class OpenDocument (ODF) package support - #5
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
ODF files are ZIP + XML but have no relationships or content types. Teach the core about their conventions: - detect every ODF media type (also templates, master documents, charts, formulas, databases, images) and use content.xml as the main part - parse META-INF/manifest.xml; derive part media types from it and refresh the package analysis when it changes - read meta.xml (title, author, keywords, dates, statistics, custom properties) and turn it into overview rows - package check: mimetype first / stored / no trailing whitespace / matches the manifest, manifest versus parts, encrypted entries - helpers to add and rename manifest entries - always store the mimetype entry uncompressed when writing a package - show mimetype as text Includes an ODP fixture builder, tests and samples/sample.odp. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- overview: properties and statistics from meta.xml, ODF-specific package check description - explorer: a Manifest view replaces the empty Relations view for ODF, with missing and unlisted files marked - part header: say "not in the manifest" instead of "no content type" and hide the Relationships tab, which has no meaning in ODF - adding a part adds a manifest entry; renaming a part updates it (one undo step); the delete confirmation mentions the manifest Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- smoke test opens a copy of sample.odp and checks its metadata and the Manifest view - two new screenshots (overview and manifest) taken from the real app - README, user guide and changelog describe what works for ODF files and what does not (no slide / text / cell previews yet) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
DominikPalo
force-pushed
the
feature/odf-support
branch
from
October 7, 2026 08:43
12de46e to
9ed130c
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 12de46ea7b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Review feedback on the ODF support: - A manifest, meta.xml or mimetype entry that cannot be read (bad CRC, unsupported compression) no longer aborts opening the document: the readers return nothing and the package check reports the damaged part. - A manifest that is well-formed XML but not a manifest is reported (odf-manifest-invalid) instead of passing silently. - mimetype must precede directory entries as well: the order is taken from the entries that will be written (PackageModel.entryOrder), not from the list of part names. - Adding a manifest entry works for manifests that use the default namespace or bind it to another prefix: attributes get a prefix bound to the manifest namespace, declared on the new entry when there is none. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
What
OpenDocument files (
.odt,.ods,.odp, templates, …) already opened as plain ZIP packages. This PR makes them first-class: ODF has no relationships or content types, so the app now follows ODF's own conventions instead of showing empty OOXML views. This is "Tier 1" from the earlier ODP discussion — no slide/text/cell previews yet (those would be separate PRs).Core (
src/core)package/odf.ts: ODF media types,META-INF/manifest.xmlparsing,meta.xmlreading (title, author, keywords, dates, editing time, custom properties, statistics), manifest edit helpers, and the ODF package check.[Content_Types].xml); the package analysis refreshes when the manifest changes.mimetypeis always written first and stored (it used to be deflated on save, which breaks ODF consumers) and is shown as text.mimetypemissing / not first / compressed / trailing whitespace / disagrees with the manifest; manifest missing; manifest lists a missing file; files not in the manifest; nocontent.xml; encrypted entries (info).UI
meta.xmlproperties and statistics; main part iscontent.xml.Tests / docs
buildOdpfixture,tests/odf.test.ts,tests/odf-tree.test.ts;samples/sample.odp.sample.odpand checks metadata and the Manifest view.Notes for reviewers
mainmoved while this was in progress (Percent-encode and decode PartName in [Content_Types].xml #4, content-types percent-encoding), so the branch is rebased onto it (linear history, no merge commit) — the only conflicts were import lines inopc.tsandactions.ts..odptab.🤖 Generated with Claude Code