Skip to content

Fixes 35890: Bulk edit grid text selection, tags copy/paste and search - #35974

Merged
Rohit0301 merged 17 commits into
mainfrom
Rohit0301/issue-35890-validate
Oct 23, 2026
Merged

Rohit0301 merged 17 commits into
mainfrom
Rohit0301/issue-35890-validate

Conversation

@Rohit0301

@Rohit0301 Rohit0301 commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes #35890

In the bulk edit grid (Preview & Edit), keyboard and mouse input meant for an open cell editor was handled by the grid instead, and copy/paste used the wrong column. While testing I also found that the search box never matched a table's rows, and that editing with a search active dropped every row the search was hiding.

  • Description editor: the grid controller (useGridEditController) now ignores keys and mouse gestures inside an open cell editor. Before, it blocked Ctrl/Cmd+A, ran the grid's undo/redo on Ctrl+Z/Y, and cleared the selection on arrow keys. Delete/Backspace keep their existing handling.
  • Copy/paste of tags: copy and paste looked up the column one place to the right, because the grid shows an Operation column (and frozen columns) first. They now use the columns in the order the grid renders them.
  • Paste reads the system clipboard on Ctrl/Cmd+V: react-data-grid only pastes a cell it copied itself, and closing the tag picker with Escape clears that copy.
    • A copy made in the grid is pasted back cell for cell.
    • Outside text pasted into a single cell stays one value. A description with commas or newlines no longer spills into neighbouring cells or other rows.
    • Outside text pasted onto a range or column header is split into rows and tab-separated columns.
    • A denied clipboard read shows an error toast.
  • Search: matched only bare name/displayName/description keys, so it found nothing in a table's column.* rows. It now matches both forms. The page owns the search text and passes the filtered rows down. The grid controller works on the rows the grid shows and merges every edit back into the full data (mergeGridRows), so hidden rows are kept. The selected range is cleared when the search changes.
  • Labels: a table's bulk edit page reads "Edit N columns" / "Search N columns", and a glossary's reads "glossary terms", instead of the parent entity type.
  • Dev only: the bulk edit page showed an endless loader under yarn start. React StrictMode's test unmount cancelled the export, and the remount never re-sent it. The cleanup now resets that guard.

Type of change:

  • Bug fix

High-level design:

  • BulkEditEntity.utils.ts (new) holds the pure helpers:
    • getBulkEditRenderedColumns: the column order react-data-grid renders (operation column, then frozen, then the rest). Used by both the grid and the page, so cell indices line up.
    • filterBulkEditRows: the search filter.
    • getBulkEditRowsLabelKey: the row label.
  • useGridEditController takes an optional rows (the visible subset). Cell positions index those rows, and writes go through mergeGridRows into the full data. Undo always snapshots the full data.
  • BulkEntityImportPage owns bulkEditSearchText and passes visibleRows to BulkEditEntity, so one array drives both the grid and the controller.
  • I considered matching copy/paste columns by DOM class names and making picker cells select-only on click. I rejected both: the first is fragile, and the second changes a deliberate click-to-open UX.
  • .github/playwright/impact-map.json: useGridEditController.ts and pages/EntityImport/** now map to the bulk-edit specs, including the new spec.

Tests:

Use cases covered

  • Ctrl/Cmd+A selects all text in a Description cell editor, and Backspace clears it.
  • Copying a Column Tags cell and pasting it onto another row's Tags cell puts the tag there, and not in Glossary Terms.
  • Search filters rows by column name. Editing a visible row and then clearing the search keeps every other row.
  • With a search active, paste lands on the visible row, not the row at the same position in the full list.
  • Text with a comma and a newline, copied from outside the grid, pastes into the one selected cell only.
  • Multi-line outside text pasted onto a column header fills one row per line.

Unit tests

  • I added unit tests for the new/changed logic.
  • BulkEditEntity.utils.test.ts (new, 7 tests): column order, row labels, filterBulkEditRows, mergeGridRows.
  • BulkEditEntity.test.tsx: two new tests check that a table's bulk edit title says "columns" and a glossary's says "glossary terms". This file and BulkEntityImportPage.test.tsx are also updated for the new props.
  • Jest: src/components/BulkEditEntity, src/pages/EntityImport/BulkEntityImportPage, src/components/Domain/AddDomainForm (the other user of the hook): 189/189 passed.
  • Coverage on changed files: BulkEditEntity.utils.ts 100% lines, BulkEditEntity.component.tsx 76%, BulkEntityImportPage.tsx 78%. useGridEditController.ts is 3%: it has no unit tests on main, and the page tests mock it. Its changed behavior is covered by the Playwright spec below.

Backend integration tests

  • Not applicable (no backend changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • I added Playwright E2E tests: playwright/e2e/Features/BulkEditTableGridInteractions.spec.ts (new, 6 tests).

Latest run: commit 4892a60 (Chromium, --no-deps, --retries=0, 3 workers, default viewport). UI served by Vite from this branch, against a local OpenMetadata backend.

npx playwright test playwright/e2e/Features/BulkEditTableGridInteractions.spec.ts --project=chromium --no-deps --retries=0 --workers=3
Spec Result
Features/BulkEditTableGridInteractions.spec.ts (new) 6/6 passed (44 s)

The run before that, on fbc2c39, had 2 Tags tests time out. The test helper looked up a row by its name after the grid had scrolled the name column out of view. 4892a60 fixes the helper; the app code didn't change.

Earlier run: commit 3c4b8db. That version of the spec had 7 tests, including the label test that has since moved to Jest.

Spec Result
Features/BulkEditTableGridInteractions.spec.ts 7/7 passed
Features/BulkEditOperationBadges.spec.ts 6/6 passed
Features/BulkEditImportPermissions.spec.ts 4/4 passed
  • Regression tests fail without their fix:
    • Against the hook from the first commit, the outside-text paste test fails (the cell got only Customer id).
    • Against main's src/, the select-all, tags paste and label tests fail.
  • Not run locally: the rest of the impact-mapped selection (BulkImport, MetricBulkImportExportEdit, CsvJobsTray, ClassificationImportExport, CustomMetric and the smoke set). Running them against the local stack overloaded the shared Docker backend. They run in the merge queue. BulkEditEntity.spec.ts is @quarantine.

Manual testing performed

  1. Ran yarn start (Vite) against a local OpenMetadata server and opened Table → Bulk Edit.
  2. Double-clicked a Column Description cell. Cmd+A selected the text and Backspace cleared it. Double-click and drag selected text in Chromium, Firefox and WebKit.
  3. Selected a tagged Column Tags cell, pressed Esc and Cmd+C, then did the same on another row's Tags cell and pressed Cmd+V. The tag appeared in that row's Tags column.
  4. Searched for a column name, which showed one row. Edited its display name and cleared the search. All rows were still there and the edit was kept.
  5. Pasted "Customer id, primary key⏎Second paragraph", copied from outside, into a Description cell. It stayed in that cell.
  6. Checked the header and search placeholder: "Edit 4 columns" and "Search 4 columns".

UI screen recording:

Not applicable: these are bug fixes to existing bulk-edit interactions, not a new UI feature. The behavior is covered by the Playwright spec above.

Checklist:

  • I have read the CONTRIBUTING document.

  • My PR title is Fixes <issue-number>: <short explanation>

  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.

  • I have commented on my code, particularly in hard-to-understand areas.

  • For JSON Schema changes: not applicable, no schema changes.

  • For a UI feature or feature task: not applicable, bug fix (see above).

  • I have added tests (unit / integration / Playwright as applicable) and listed them above.

  • Self-review: I reviewed the final diff against REVIEW.md (the pr-checklist skill runs it) and fixed every 🔴 finding, or answered it on the line below.

    • Pass 1 on 769d821, 🔴 fixed in b9bbcbb: outside clipboard text was split across cells and rows. Also fixed: a denied clipboard read failed silently, and the page and grid filtered rows separately.
    • Pass 2 on b9bbcbb, 🔴 fixed in 3c4b8db: multi-line text pasted onto a header went into one cell. Also fixed: the selected range was not reset on search, the paste test didn't check hidden rows, the error handler covered more than the clipboard read, the import page was missing from the impact map, and a comment was outdated.
    • Not done: the 🟡 to label database / schema / service rows by their child type. This PR only fixes table and glossary labels.
  • Decision check: no durable decision. The column-order and row-merge rules are internal to the bulk edit grid and are documented in code comments.

  • I have added a test that covers the exact scenario we are fixing.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no new actionable issues were found.

Summary

Fixes bulk-edit text selection, clipboard column mapping, search, and edits made while rows are hidden.

  • Open cell editors keep the keys and gestures meant for their text.
  • Bulk edit copy and paste use the grid's displayed cells.
  • Bulk edit search finds child rows and keeps hidden rows intact.
  • Table and glossary bulk edits name the rows they show.
  • The bulk edit page can request its export again after a development remount.

Since the previous review, only import order changed. No new issues were found. All four supplied prior threads are unnumbered and resolved; their fixes remain present.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[Full row list] --> B[Filter by search]
  B --> C[Visible grid rows]
  C --> D[Edit or paste]
  D --> E[Merge changed rows]
  E --> A
Loading

Reviews (11) · Last reviewed commit: "lint fix" · Reviewed by Greptile

…and labels

- Let keys and mouse gestures inside an open cell editor reach the editor
  (select-all, undo/redo, text selection) instead of the grid controller.
- Map copy/paste/delete to the columns in the order the grid renders them
  (operation and frozen columns first) and paste from the system clipboard.
- Search matches column.* fields; edits made while searching merge back into
  the full data so hidden rows are kept.
- Label table bulk edit rows as columns (glossary rows as glossary terms).
- Re-trigger the bulk edit export after a StrictMode remount in dev.
…ied clipboard reads

- Split clipboard text into cells only when it is the grid's own last copy;
  any other text (a description with commas or newlines) fills the selected
  cell instead of overwriting its neighbours and the rows below.
- Show an error toast when the clipboard read is denied.
- Pass the page's filtered rows to BulkEditEntity so the grid and the
  controller index the same rows.
…p the import page

- Outside clipboard text stays one value only for a single selected cell; a
  header or range paste splits it into rows and tab-separated columns.
- Handle only a rejected clipboard read as a denied clipboard.
- Clear the selected range when the search changes the visible rows.
- Map pages/EntityImport to the bulk edit Playwright specs.
@Rohit0301
Rohit0301 requested a review from a team as a code owner October 22, 2026 13:20
@Rohit0301
Rohit0301 requested a review from harsh-vador October 22, 2026 13:20
@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR checks passed

The linked issue has a description and all required Shipping project fields set. Thanks!

@github-actions github-actions Bot added the UI UI specific issues label Oct 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@Rohit0301 Rohit0301 self-assigned this Oct 22, 2026
@Rohit0301 Rohit0301 added the safe to test Add this label to run secure Github workflows on PRs label Oct 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Playwright impact map auto-refreshed

This PR touched specs or UI source that changed the source→spec routing map. I regenerated .github/playwright/impact-map.generated.json and pushed the diff to this branch.

- source entries: 987 → 987
- 0 added, 0 removed, 7 changed spec-list

Entries whose spec list changed:
  openmetadata-ui/src/main/resources/ui/playwright/support/entity/TableClass.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/fixtures/base.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/common.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/importUtils.ts
  openmetadata-ui/src/main/resources/ui/src/components/BulkEditEntity/BulkEditEntity.component.tsx
  openmetadata-ui/src/main/resources/ui/src/generated/entity/data/table.ts
  openmetadata-ui/src/main/resources/ui/src/utils/EntityBulkEdit/EntityBulkEditUtils.tsx

What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing getByTestId strings. Hand-authored routing in impact-map.json always wins on conflict.

What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit:

python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit  # or a separate commit

@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ UI Checkstyle passed — lint findings in changed files

🔍 ESLint findings in this PR's files — 0 error(s), 17 warning(s)

Errors block the build. Warnings do not yet — they are rules whose backlog is still
being worked down, listed so this PR does not add to it. See docs/ui-code-quality-gate.md.

0 error(s), 17 warning(s) across 5 changed file(s).

Count Rule
15 react-hooks/exhaustive-deps
1 openmetadata-imports/no-lower-layer-page-imports
1 openmetadata-imports/no-cross-page-imports
All findings
Location Rule Message
🟡 src/components/BulkEditEntity/BulkEditEntity.component.tsx:260:6 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 'newRowConfig?.defaults'. Either include it or remove the dependency array.
🟡 src/components/BulkEditEntity/BulkEditEntity.interface.ts:17:1 openmetadata-imports/no-lower-layer-page-imports Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here.
🟡 src/components/Domain/AddDomainForm/AddDomainFormExtensionFields.tsx:857:17 react-hooks/exhaustive-deps The ref value 'requestId.current' will likely have changed by the time this effect cleanup function runs. If this ref points to a node rendered by React, copy '
🟡 src/hooks/useGridEditController.ts:166:6 react-hooks/exhaustive-deps React Hook useCallback has an unnecessary dependency: 'selectedRange'. Either exclude it or remove the dependency array.
🟡 src/hooks/useGridEditController.ts:742:6 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 'gridContainer'. Either include it or remove the dependency array.
🟡 src/hooks/useGridEditController.ts:776:6 react-hooks/exhaustive-deps React Hook useCallback has missing dependencies: 'getCellsInRange' and 'gridContainer'. Either include them or remove the dependency array.
🟡 src/hooks/useGridEditController.ts:795:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'gridContainer'. Either include it or remove the dependency array.
🟡 src/hooks/useGridEditController.ts:910:6 react-hooks/exhaustive-deps React Hook useEffect has missing dependencies: 'focusCell', 'getCellIndices', and 'setSelectedRange'. Either include them or remove the dependency array.
🟡 src/hooks/useGridEditController.ts:1007:6 react-hooks/exhaustive-deps React Hook useEffect has missing dependencies: 'getCellIndices' and 'setSelectedRange'. Either include them or remove the dependency array.
🟡 src/hooks/useGridEditController.ts:1089:5 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 'setSelectedRange'. Either include it or remove the dependency array.
🟡 src/hooks/useGridEditController.ts:1143:6 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 'setSelectedRange'. Either include it or remove the dependency array.
🟡 src/hooks/useGridEditController.ts:1170:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'dataSource'. Either include it or remove the dependency array.
🟡 src/hooks/useGridEditController.ts:1170:7 react-hooks/exhaustive-deps React Hook useEffect has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked.
🟡 src/pages/EntityImport/BulkEntityImportPage/BulkEntityImportPage.tsx:141:1 openmetadata-imports/no-cross-page-imports Page features must not import another page feature. Move shared code to components, hooks, interfaces, or pure utilities.
🟡 src/pages/EntityImport/BulkEntityImportPage/BulkEntityImportPage.tsx:871:5 react-hooks/exhaustive-deps React Hook useCallback has an unnecessary dependency: 'entityType'. Either exclude it or remove the dependency array.
🟡 src/pages/EntityImport/BulkEntityImportPage/BulkEntityImportPage.tsx:1371:6 react-hooks/exhaustive-deps React Hook useEffect has missing dependencies: 'handleImportWebsocketResponse' and 'handleResetImportJob'. Either include them or remove the dependency array.
🟡 src/pages/EntityImport/BulkEntityImportPage/BulkEntityImportPage.tsx:1462:6 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 'filterColumns'. Either include it or remove the dependency array.

Fix locally (fast - only checks files changed in this branch):

make ui-checkstyle-changed

@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 79%
79.12% (128402/162279) 65.54% (45098/68803) 68.55% (25720/37518)

…n visible rows change

- Write grid copies tab-separated, matching the paste parser, and compare
  clipboard text with Windows line endings normalised.
- A header selection is never a single cell, even with one visible row.
- Clear the selected range in the grid controller whenever the rendered row
  ids change (search or an edit), not only on a search change.
- Fix the import order that failed UI Checkstyle.
@Rohit0301
Rohit0301 added this pull request to the merge queue Oct 23, 2026
@karanh37
karanh37 removed this pull request from the merge queue due to a manual request Oct 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — manual (2026-10-23T08:11:54Z)

Blocked the queue: playwright-summary

…ndle loads

gridEditors.spec.ts bundles the hook on its own; importing ToastUtils,
LocalUtil and CSVPureUtils grew that bundle from 268 KB to 14.7 MB and the
test page never rendered, failing plan-playwright in the merge queue.
- Move mergeGridRows to the import-free utils/CSV/GridRowsUtils.ts.
- Report clipboard failures through an onClipboardError option; the bulk
  import page passes the toast.
@Rohit0301
Rohit0301 enabled auto-merge October 23, 2026 08:35
@gitar-bot

gitar-bot Bot commented Oct 23, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 4 closed / 4 findings

🔴 High risk · Changing bulk-edit paste and filtered-row merging could route clipboard values to unintended fields or omit hidden rows from saved entity updates.

Fixes bulk edit grid text selection, tag copy/paste column mapping, and search across table column rows while keeping hidden rows intact on edit. Resolved the grid copy/paste round-trip for comma-joined and CRLF text, stable cell locators across search, and the clipboard denial toast in the Add Domain form. No open issues found.

✅ 4 closed
✅ Bug: Grid copies comma-joined text but paste splits outside text on tabs

📄 openmetadata-ui/src/main/resources/ui/src/hooks/useGridEditController.ts:133-134 📄 openmetadata-ui/src/main/resources/ui/src/hooks/useGridEditController.ts:176-183
handleCopy writes a multi-cell range as comma-separated text (rowValues.join(',')). handlePaste only pastes it back cell for cell when the clipboard text is exactly equal to copiedCells.current.text. Any other text is split on . That breaks in several cases: the ref is cleared on remount or reload, the grid lives on another page (each hook instance has its own ref), or the OS rewrites as \r (Windows). In each case a copied 2×2 range such as a,b c,d pastes back as a,b and c,d into single cells and overwrites the wrong data. The comma format also turns cell values that contain commas into ambiguous text, and spreadsheets read it as a single column.

Fix: write the grid copy tab-separated so it matches the paste parser. Compare with newlines normalised, so the copiedCells fast path is only an optimisation and nothing depends on it being hit.

✅ Edge Case: CRLF inside a copied cell breaks the grid's own copy/paste round-trip

📄 openmetadata-ui/src/main/resources/ui/src/hooks/useGridEditController.ts:133-135 📄 openmetadata-ui/src/main/resources/ui/src/hooks/useGridEditController.ts:182-189
handleCopy stores copiedCells.current.text with the raw cell values (lines 133-135), but handlePaste now compares against normalizedText, which has every \r turned into (lines 182-186). If a copied cell holds an embedded CRLF, which papaparse keeps from an uploaded CSV or a description edited on Windows, the strings no longer match. The paste then skips the cell-for-cell path. For a range or header paste, the text is split on newlines and tabs, so the multi-line value spreads across extra rows and columns. To fix this, normalize the stored copy text the same way before comparing.

✅ Bug: getBulkEditGridCell freezes aria-rowindex, so locators break across search

📄 openmetadata-ui/src/main/resources/ui/playwright/utils/importUtils.ts:1324-1337 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/BulkEditTableGridInteractions.spec.ts:146-160 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/BulkEditTableGridInteractions.spec.ts:175-186
getBulkEditGridCell reads the row's aria-rowindex once, when it is called, and builds a locator fixed to that index. The old getGridCell filtered by row text every time the locator was used. Search changes row indices. In the 'keeps hidden rows' test, displayName is resolved while only columnsName[1] is shown (aria-rowindex 2). Once the search is cleared, index 2 is columnsName[0]'s row. So line 161 checks the wrong row: it fails when the code is correct, and passes only if the edit went to the wrong row, which is the bug this test is supposed to catch. In the paste-on-searched-row test, targetTags is resolved right after fill(), before the filter has applied. columnsName[1] is already in the DOM, so the call can capture its unfiltered index (3), and that index has no row after filtering. Fix: keep the locator lazy by scoping it to the row by text instead of storing a numeric index.

✅ Edge Case: Domain form grid no longer toasts on clipboard denial

📄 openmetadata-ui/src/main/resources/ui/src/hooks/useGridEditController.ts:139 📄 openmetadata-ui/src/main/resources/ui/src/hooks/useGridEditController.ts:224 📄 openmetadata-ui/src/main/resources/ui/src/hooks/useGridEditController.ts:661 📄 openmetadata-ui/src/main/resources/ui/src/pages/EntityImport/BulkEntityImportPage/BulkEntityImportPage.tsx:480-483
This commit turned the clipboard error toast into an optional onClipboardError callback. Only BulkEntityImportPage passes it. AddDomainFormExtensionFields.tsx:722-727 also calls useGridEditController but passes no callback. In the previous commit of this PR, a denied clipboard read or write in that table-type custom property editor showed message.clipboard-not-available. Now it fails silently: the paste keystroke is consumed and nothing happens, which goes against the PR's stated rule that "a denied clipboard read shows an error toast". Fix: pass the same showErrorToast(t('message.clipboard-not-available')) callback in the domain form.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@sonarqubecloud

Copy link
Copy Markdown

@Rohit0301
Rohit0301 disabled auto-merge October 23, 2026 10:05
@Rohit0301
Rohit0301 added this pull request to the merge queue Oct 23, 2026
Merged via the queue into main with commit aa1c0b7 Oct 23, 2026
83 of 84 checks passed
@Rohit0301
Rohit0301 deleted the Rohit0301/issue-35890-validate branch October 23, 2026 13:51
Rohit0301 added a commit that referenced this pull request Oct 24, 2026
…h (2.0 backport #35974) (#36116)

* Fixes 35890: Bulk edit grid text selection, tags copy/paste and search (#35974)

* Fixes #35890: Bulk edit grid text selection, tags copy/paste, search and labels

- Let keys and mouse gestures inside an open cell editor reach the editor
  (select-all, undo/redo, text selection) instead of the grid controller.
- Map copy/paste/delete to the columns in the order the grid renders them
  (operation and frozen columns first) and paste from the system clipboard.
- Search matches column.* fields; edits made while searching merge back into
  the full data so hidden rows are kept.
- Label table bulk edit rows as columns (glossary rows as glossary terms).
- Re-trigger the bulk edit export after a StrictMode remount in dev.

* Map useGridEditController and the new bulk edit grid spec in the Playwright impact map

* Paste outside text into one cell, share the filtered rows, report denied clipboard reads

- Split clipboard text into cells only when it is the grid's own last copy;
  any other text (a description with commas or newlines) fills the selected
  cell instead of overwriting its neighbours and the rows below.
- Show an error toast when the clipboard read is denied.
- Pass the page's filtered rows to BulkEditEntity so the grid and the
  controller index the same rows.

* Split outside text pasted onto a range, reset the range on search, map the import page

- Outside clipboard text stays one value only for a single selected cell; a
  header or range paste splits it into rows and tab-separated columns.
- Handle only a rejected clipboard read as a denied clipboard.
- Clear the selected range when the search changes the visible rows.
- Map pages/EntityImport to the bulk edit Playwright specs.

* chore(playwright): auto-refresh impact-map.generated.json

* Create the spec's table in beforeAll and cover the row labels with unit tests

* Copy grid cells as TSV, keep header pastes split, reset the range when visible rows change

- Write grid copies tab-separated, matching the paste parser, and compare
  clipboard text with Windows line endings normalised.
- A header selection is never a single cell, even with one visible row.
- Clear the selected range in the grid controller whenever the rendered row
  ids change (search or an edit), not only on a search change.
- Fix the import order that failed UI Checkstyle.

* Store the grid copy with normalised line endings so CRLF cells paste back cell for cell

* Handle a rejected clipboard write and list setSelectedRange in hook dependencies

* Move bulk edit grid test helpers to importUtils and drop the wide viewport

* Pin bulk edit grid cells to the row's stable test id instead of its row index

* Scroll the bulk edit grid back to the name column before finding a row

* Move mergeGridRows to CSVPureUtils with its tests

* Keep useGridEditController free of app imports so its browser test bundle loads

gridEditors.spec.ts bundles the hook on its own; importing ToastUtils,
LocalUtil and CSVPureUtils grew that bundle from 268 KB to 14.7 MB and the
test page never rendered, failing plan-playwright in the merge queue.
- Move mergeGridRows to the import-free utils/CSV/GridRowsUtils.ts.
- Report clipboard failures through an onClipboardError option; the bulk
  import page passes the toast.

* Show the clipboard error toast in the Add Domain table property grid too

* lint fix

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
(cherry picked from commit aa1c0b7)

* chore(playwright): auto-refresh impact-map.generated.json

* Use @playwright/test in BulkEditTableGridInteractions spec for 2.0

2.0 has no playwright/support/fixtures/base, so test discovery failed.

* Add rowTestId to LazyDataGrid and bulk edit grid for 2.0

BulkEditTableGridInteractions locates rows by their rdg-row-<id> test id,
which main gets from LazyDataGrid's rowTestId (#0b80ff39b2). Backport that
prop and set it on the bulk edit grid.

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bulk edit grid: cannot select text in Description cells, and copy/paste of Tags between rows no longer works

2 participants