Skip to content

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

Merged
serge-rider merged 17 commits into
develfrom
8670-cb-multi-paste-support-in-data-editor-3
Apr 9, 2026
Merged

[CB] Multi-paste support in Data Editor#4271
serge-rider merged 17 commits into
develfrom
8670-cb-multi-paste-support-in-data-editor-3

Conversation

@sergeyteleshev

Copy link
Copy Markdown
Contributor

@codacy-production

codacy-production Bot commented Apr 7, 2026

Copy link
Copy Markdown

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);

@devnaumov devnaumov Apr 8, 2026

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.

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();

@devnaumov devnaumov Apr 8, 2026

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.

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
devnaumov
devnaumov previously approved these changes Apr 8, 2026
@serge-rider
serge-rider merged commit 4b9ba00 into devel Apr 9, 2026
9 of 10 checks passed
@serge-rider
serge-rider deleted the 8670-cb-multi-paste-support-in-data-editor-3 branch May 3, 2026 19:50
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.

6 participants