Skip to content

refactor(datagrid-web): layout 3/5: move misplaced files - #2576

Closed
iobuhov wants to merge 1 commit into
datagrid-layout-2-rootfrom
datagrid-layout-3-misplaced
Closed

iobuhov wants to merge 1 commit into
datagrid-layout-2-rootfrom
datagrid-layout-3-misplaced

Conversation

@iobuhov

@iobuhov iobuhov commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Part 3/5 of the datagrid-web layout follow-up. Move only: files are moved with git mv, plus one type-only move. The only other edits are import paths.

Moves

features/selection/SelectorCell.tsx  -> features/columns/SelectorCell.tsx
features/data-export/ExportAlert.tsx -> ui/ExportAlert.tsx
features/preview/                    -> editor/
  • SelectorCell is the filler cell under the column-selector header.
  • ExportAlert is a generic progress alert. It is used by the export dialog and by the select-all progress dialog.
  • features/preview is Studio Pro editor-only code, imported only by Datagrid.editorPreview.tsx.
  • HeaderSkeletonLoader stays in features/datasource/loader/, because it is built on that folder's SkeletonLoader.

Type-only move: SelectionMethod moves from features/row-interaction/base.ts to features/core/configs/Datagrid.config.ts, next to DatagridConfig.selectionMethod. This removes the features/core -> row-interaction import.

Stack

Built on top of the structure stack, #2571 (iobuhov/datagrid-structure-12-test-utils).

  1. merge sorting and filtering into columns: refactor(datagrid-web): layout 1/5: merge sorting and filtering into columns #2574
  2. composition to the src root, core to features/core: refactor(datagrid-web): layout 2/5: composition to src root, core to features/core #2575
  3. move misplaced files: refactor(datagrid-web): layout 3/5: move misplaced files #2576
  4. tokens.ts as each feature's public surface: refactor(datagrid-web): layout 3/4: tokens.ts as each feature's public surface #2577
  5. boundary lint rule: refactor(datagrid-web): layout 4/4: boundary lint rule #2578

Checks

Verified locally at this commit in packages/pluggableWidgets/datagrid-web: tsc --noEmit, pnpm run lint (0 errors, the same 10 warnings as the base), pnpm run test (22 suites, 263 tests pass) and pnpm turbo build. A dependency-graph check over src finds no import cycles. No changelog entry, because there is no user-facing change.

🤖 Generated with Claude Code

@github-actions

This comment has been minimized.

- SelectorCell: features/selection -> features/columns
- ExportAlert: features/data-export -> ui
- features/preview -> editor
- SelectionMethod type: features/row-interaction/base.ts ->
  features/core/configs/Datagrid.config.ts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@iobuhov
iobuhov force-pushed the datagrid-layout-2-root branch from f77a4e9 to 5c9cf11 Compare November 24, 2026 15:26
@iobuhov
iobuhov force-pushed the datagrid-layout-3-misplaced branch from 1bda427 to e350d0c Compare November 24, 2026 15:26
@github-actions

Copy link
Copy Markdown
Contributor

AI Code Review

✅ Approved — no issues found


What was reviewed

File Change
datagrid-web/src/editor/* Moved ColumnBase.ts, ColumnPreview.tsx and DatagridPreview.scss from features/preview. Relative imports were updated.
datagrid-web/src/features/columns/SelectorCell.tsx Moved from features/selection. Row.tsx and RowSkeletonLoader.tsx import it from the new path.
datagrid-web/src/ui/ExportAlert.tsx Moved from features/data-export. ExportProgressDialog.tsx and SelectionProgressDialog.tsx import it from the new path.
Datagrid.config.ts, row-interaction/*, WidgetRoot.viewModel.ts SelectionMethod now lives in Datagrid.config.ts. This removes the dependency from config to row-interaction/base. All consumers, including three specs, were updated.

Skipped (out of scope): dist/, pnpm-lock.yaml

CI: not checked in detail (refactor only)


Positives

  • Pure file moves, with 100% rename similarity for SelectorCell.tsx and DatagridPreview.scss. Grepping the package found no stale imports of the old paths.
  • Moving SelectionMethod into the config file removes an inverted dependency, so the config no longer imports from row-interaction.
  • No behavior change, so no changelog entry is needed.

@iobuhov

iobuhov commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator Author

Replaced by #2579, which moves datagrid-web/src straight to the final feature layout in one move-only PR on top of #2560. The follow-ups continue in #2577 → #2578.

@iobuhov iobuhov closed this Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant