Skip to content

Enable full keypath support for write operations#132

Open
gohabereg wants to merge 2 commits intofix/inputs-registrationfrom
feature/keypath-support
Open

Enable full keypath support for write operations#132
gohabereg wants to merge 2 commits intofix/inputs-registrationfrom
feature/keypath-support

Conversation

@gohabereg
Copy link
Copy Markdown
Member

All BlockNode operations now support keypath:

blockNode.insertText('compound.key.path', 'text') // serialized value gonna look like { compound: { key: { path: 'text' } }

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2026

⏭️ No files to mutate for ./packages/dom-adapters

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2026

Coverage report for ./packages/dom-adapters

St.
Category Percentage Covered / Total
🟢 Statements 96.43% 27/28
🟢 Branches 86.96% 20/23
🟢 Functions 100% 5/5
🟢 Lines 96.43% 27/28

Test suite run success

11 tests passing in 2 suites.

Report generated by 🧪jest coverage report action from ca053ca

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2026

⏭️ No files to mutate for ./packages/core

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2026

Coverage report for ./packages/model

St.
Category Percentage Covered / Total
🟢 Statements 100% 930/930
🟢 Branches
99.64% (+0.02% 🔼)
280/281
🟢 Functions
97.77% (+0.02% 🔼)
219/224
🟢 Lines 100% 894/894

Test suite run success

511 tests passing in 25 suites.

Report generated by 🧪jest coverage report action from ca053ca

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2026

Coverage report for ./packages/ot-server

St.
Category Percentage Covered / Total
🟡 Statements 70.97% 22/31
🔴 Branches 20% 1/5
🟡 Functions 75% 6/8
🟡 Lines 68.97% 20/29

Test suite run success

4 tests passing in 1 suite.

Report generated by 🧪jest coverage report action from ca053ca

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2026

Coverage report for ./packages/collaboration-manager

St.
Category Percentage Covered / Total
🟢 Statements 92.51% 358/387
🟢 Branches 85.51% 118/138
🟢 Functions 98.15% 53/54
🟢 Lines 92.41% 353/382

Test suite run success

117 tests passing in 7 suites.

Report generated by 🧪jest coverage report action from ca053ca

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2026

Coverage report for ./packages/core

St.
Category Percentage Covered / Total
🟢 Statements 100% 128/128
🟢 Branches 100% 46/46
🟢 Functions 100% 27/27
🟢 Lines 100% 119/119

Test suite run success

73 tests passing in 7 suites.

Report generated by 🧪jest coverage report action from ca053ca

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2026

⏭️ No files to mutate for ./packages/model

…taNode

- Add insert() to keypath utils: splices a value into an array at the
  given index, shifting existing elements right (symmetric with remove())
- Update BlockNode.createDataNode to detect the parent container type:
  * Array parent → insert() (splice in, no duplicate guard)
  * Object parent → existing has() guard + set() semantics
- Add tests for insert() in keypath.spec.ts (8 cases)
- Add tests for array-insert behavior in BlockNode.spec.ts (3 cases)
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