Skip to content

[CB] Multi-paste support in Data Editor#4271

Open
sergeyteleshev wants to merge 13 commits intodevelfrom
8670-cb-multi-paste-support-in-data-editor-3
Open

[CB] Multi-paste support in Data Editor#4271
sergeyteleshev wants to merge 13 commits intodevelfrom
8670-cb-multi-paste-support-in-data-editor-3

Conversation

@sergeyteleshev
Copy link
Copy Markdown
Contributor

@codacy-production
Copy link
Copy Markdown

codacy-production bot commented Apr 7, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 10 complexity

Metric Results
Complexity 10

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback


const handleCellKeyDown: DataGridProps['onCellKeyDown'] = (_, event) => {
gridSelectedCellCopy.onKeydownHandler(event);
gridSelectedCellPaste.onKeydownHandler(event);
Copy link
Copy Markdown
Member

@devnaumov devnaumov Apr 8, 2026

Choose a reason for hiding this comment

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

The event will be fired in readonly mode and probably will modify result which is not expected. probably should be called after readonly check or inside hook

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

added the check inside paste handler so we dont forget this case if we reuse it somewhere

}

try {
const clipboardText = await navigator.clipboard.readText();
Copy link
Copy Markdown
Member

@devnaumov devnaumov Apr 8, 2026

Choose a reason for hiding this comment

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

please use ClipboardService.read

tableData.editor.setMany(updates);
}
} catch (error) {
notificationService.logException(error as Error, 'ata_grid_table_paste_error');
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ata_grid_table_paste_error -> data_grid_table_paste_error

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

removed since it is handled in ClipboardService.read()

@sergeyteleshev sergeyteleshev requested a review from devnaumov April 8, 2026 09:19
SychevAndrey
SychevAndrey previously approved these changes Apr 8, 2026
Wroud
Wroud previously approved these changes Apr 8, 2026
devnaumov
devnaumov previously approved these changes Apr 8, 2026
@sergeyteleshev sergeyteleshev dismissed stale reviews from devnaumov, Wroud, and SychevAndrey via 309e254 April 8, 2026 13:58
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.

4 participants