Skip to content

Conversation

@nikmel2803
Copy link
Contributor

  • implement logic for operations transformations (text operations only for now)
  • move logic from the Transformer class to the Operation class

@github-actions
Copy link

github-actions bot commented Aug 31, 2024

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

@github-actions
Copy link

github-actions bot commented Aug 31, 2024

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

@github-actions
Copy link

github-actions bot commented Aug 31, 2024

Coverage report for ./packages/dom-adapters

St.
Category Percentage Covered / Total
🟢 Statements 100% 0/0
🟢 Branches 100% 0/0
🟢 Functions 100% 0/0
🟢 Lines 100% 0/0

Test suite run success

1 tests passing in 1 suite.

Report generated by 🧪jest coverage report action from 5038553

@github-actions
Copy link

github-actions bot commented Aug 31, 2024

Coverage report for ./packages/model

St.
Category Percentage Covered / Total
🟢 Statements
96.05% (-0.69% 🔻)
802/835
🟢 Branches
96% (-2.18% 🔻)
216/225
🟢 Functions
87.39% (-0.69% 🔻)
194/222
🟢 Lines
95.91% (-0.72% 🔻)
773/806
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢
... / index.ts
92.31% (-5.31% 🔻)
66.67% (-20.83% 🔻)
96.43% (-3.57% 🔻)
92.22% (-5.4% 🔻)
🔴 EditorJSModel.ts
35% (-0.9% 🔻)
0%
11.11% (-0.43% 🔻)
35% (-0.9% 🔻)

Test suite run success

405 tests passing in 24 suites.

Report generated by 🧪jest coverage report action from 5038553

@github-actions
Copy link

github-actions bot commented Aug 31, 2024

Coverage report for ./packages/collaboration-manager

St.
Category Percentage Covered / Total
🟢 Statements
98% (-2% 🔻)
98/100
🟢 Branches
95% (-5% 🔻)
38/40
🟢 Functions 100% 11/11
🟢 Lines
98% (-2% 🔻)
98/100
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🟢 Operation.ts 100% 100% 100% 100%
🟢 UndoRedoManager.ts 100% 100% 100% 100%
🟢 CollaborationManager.ts 95.35% 86.67% 100% 95.35%

Test suite run success

51 tests passing in 3 suites.

Report generated by 🧪jest coverage report action from 5038553

case (e instanceof TextFormattedEvent):
operation = new Operation(OperationType.Modify, e.detail.index, {
payload: e.detail.data,
prevPayload: undefined,
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe null?

expect(() => receivedOp.transform(localOp)).toThrow('Unsupported operation type');
});

it('should not transform relative the Modify operation', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

unclear test case name

* Previous payload for undo/redo purposes
*/
newValue: string;
prevPayload?: T;
Copy link
Contributor

Choose a reason for hiding this comment

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

T | null ?

}

/**
* Checks if operation needs to be transformed
Copy link
Contributor

Choose a reason for hiding this comment

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

Describe the cases, when it should be transformed

@gohabereg gohabereg added this pull request to the merge queue Apr 7, 2025
Merged via the queue into main with commit dcfde59 Apr 7, 2025
15 checks passed
@gohabereg gohabereg deleted the implement-transformations branch April 7, 2025 23:24
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.

5 participants