8000 Preserve relationships when renaming package parts by DominikPalo · Pull Request #18 · DominikPalo/OOXML-Toolkit · GitHub
[go: up one dir, main page]

Skip to content

Preserve relationships when renaming package parts - #18

Merged
DominikPalo merged 2 commits into
mainfrom
bugfix/preserve-renamed-part-relationships
Oct 9, 2026
Merged

DominikPalo merged 2 commits into
mainfrom
bugfix/preserve-renamed-part-relationships

Conversation

@DominikPalo
Copy link
Copy Markdown
Owner

Renaming a document part left its outgoing .rels file under the old name. Renames now move that companion file, rewrite incoming and outgoing targets relative to the new owner, and retain URI fragments, absolute targets and external links. Conflicting companion files are rejected before mutation.

The full rename remains one undo step, including at the history limit. Reference planning lives in the framework-free core and continues to update ODF manifests.

Validation: 172 unit tests pass, including same-directory and cross-directory moves, self references, fragments, collision handling, undo/redo at 299/300 history entries, and ODF manifest updates. Type checking and the production build pass.

@chatgpt-codex-connector
chatgpt-codex-connector Bot commented Oct 7, 2026 •
Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-07T09:19:40.101523Z ae564c3 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ae564c3dbe

ℹ️ 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".

Comment thread src/core/package/rename.ts Resolved
OPC part names compare case-insensitively, so a relationship targeting
"Document.xml" still refers to "word/document.xml". Exact matching missed
such self and incoming references, leaving them dangling after the rename.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DominikPalo
DominikPalo merged commit 132a6bd into main Oct 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0