Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 489b04e27c
ℹ️ 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".
packages/super-editor/src/core/super-converter/v3/handlers/w/tbl/tbl-translator.js
Outdated
Show resolved
Hide resolved
|
Based on my review of the code and understanding of OOXML specifications, I can now provide a comprehensive review. Let me analyze the key changes: Status: PASS I've reviewed this PR for OOXML spec compliance, focusing on the SummaryThe changes correctly implement table cell spacing according to ECMA-376 specifications. The implementation properly handles the Key Changes Reviewed1. tbl-translator.js:90 - Cell spacing conversion['tableCellSpacing', ({ value, type }) => ({ value: twipsToPixels(value), type })]✅ Correct: The spec defines 2. tbl-translator.test.js:154 - Test expectation updateexpect(result.attrs.tableCellSpacing).toEqual({ value: 0.5, type: 'dxa' });✅ Correct: With input UPDATE: Looking at the diff, the original test returned 3. legacy-handle-table-cell-node.js:58,308 - Border spacing logichasBorderSpacing: !!tableProperties?.tableCellSpacing✅ Correct: According to ECMA-376, when 4. contracts/index.ts - Type definition updatecellSpacing?: CellSpacing;
// where CellSpacing = { type: string; value: number; }✅ Correct: Properly represents OOXML measurement with both value and type (e.g., OOXML Spec ComplianceThe implementation correctly follows ECMA-376 Part 1 §17.4.19 (
For detailed spec information, see: https://ooxml.dev/spec?q=tblCellSpacing No Issues FoundAll attributes, elements, and default values align with the ECMA-376 specification. The conversion logic properly handles the measurement type pattern used consistently across other table properties. |
caio-pizzol
left a comment
There was a problem hiding this comment.
nice work @VladaHarbour!
just a few nit pick comments
packages/layout-engine/painters/dom/src/table/renderTableFragment.ts
Outdated
Show resolved
Hide resolved
packages/layout-engine/painters/dom/src/table/renderTableFragment.ts
Outdated
Show resolved
Hide resolved
packages/super-editor/src/core/super-converter/v3/handlers/w/tbl/tbl-translator.js
Show resolved
Hide resolved
packages/layout-engine/painters/dom/src/table/renderTableFragment.ts
Outdated
Show resolved
Hide resolved
1af9e81 to
9702ea5
Compare
|
Hi @harbournick! After rebasing with the latest main unit tests fail (for main branch as well) |
4de4869 to
ac681e7
Compare
caio-pizzol
left a comment
There was a problem hiding this comment.
LGTM - let's just upload file to rendering
Adds cell spacing support