Skip to content

refactor(datagrid-web): structure 5/12: columns - #2564

Closed
iobuhov wants to merge 1 commit into
iobuhov/datagrid-structure-04-filteringfrom
iobuhov/datagrid-structure-05-columns
Closed

iobuhov wants to merge 1 commit into
iobuhov/datagrid-structure-04-filteringfrom
iobuhov/datagrid-structure-05-columns

Conversation

@iobuhov

@iobuhov iobuhov commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Part 5/12 of the datagrid-web src restructure into feature folders. Moves only: files are moved with git mv, and the only edits are import paths, with prettier and import-x/order re-wrapping and re-sorting those import lines. No logic, names or exports change.

Column stores, columns.model, GridColumn, and the column components (ColumnProvider, ColumnResizer, ColumnSelector, GridHeader, Header) move to features/columns/ with their tests and snapshots. Placement: grid.model.ts moves here because it builds the grid-template-columns style from ColumnGroupStore and GridColumn.

Stack

  1. core: refactor(datagrid-web): structure 1/12: core #2559
  2. personalization: refactor(datagrid-web): structure 2/12: personalization #2560
  3. sorting: refactor(datagrid-web): structure 3/12: sorting #2562
  4. filtering: refactor(datagrid-web): structure 4/12: filtering #2563
  5. columns: refactor(datagrid-web): structure 5/12: columns #2564 ← this PR
  6. preview: refactor(datagrid-web): structure 6/12: preview #2565
  7. datasource: refactor(datagrid-web): structure 7/12: datasource #2566
  8. pagination: refactor(datagrid-web): structure 8/12: pagination #2567
  9. selection: refactor(datagrid-web): structure 9/12: selection #2568
  10. data-export: refactor(datagrid-web): structure 10/12: data-export #2569
  11. ui: refactor(datagrid-web): structure 11/12: ui #2570
  12. test-utils: refactor(datagrid-web): structure 12/12: test-utils #2571

The combined result, with the full tree and all deviations, is in #2556, which is left open.

Moves in this PR

helpers/state/column/BaseColumnInfo.ts -> features/columns/BaseColumnInfo.ts
helpers/state/ColumnGroupStore.ts -> features/columns/ColumnGroupStore.ts
components/ColumnProvider.tsx -> features/columns/ColumnProvider.tsx
components/ColumnResizer.tsx -> features/columns/ColumnResizer.tsx
components/ColumnSelector.tsx -> features/columns/ColumnSelector.tsx
helpers/state/column/ColumnStore.tsx -> features/columns/ColumnStore.tsx
typings/GridColumn.ts -> features/columns/GridColumn.ts
components/GridHeader.tsx -> features/columns/GridHeader.tsx
components/Header.tsx -> features/columns/Header.tsx
components/__tests__/ColumnResizer.spec.tsx -> features/columns/__tests__/ColumnResizer.spec.tsx
components/__tests__/ColumnSelector.spec.tsx -> features/columns/__tests__/ColumnSelector.spec.tsx
components/__tests__/Header.spec.tsx -> features/columns/__tests__/Header.spec.tsx
components/__tests__/__snapshots__/ColumnResizer.spec.tsx.snap -> features/columns/__tests__/__snapshots__/ColumnResizer.spec.tsx.snap
components/__tests__/__snapshots__/ColumnSelector.spec.tsx.snap -> features/columns/__tests__/__snapshots__/ColumnSelector.spec.tsx.snap
components/__tests__/__snapshots__/Header.spec.tsx.snap -> features/columns/__tests__/__snapshots__/Header.spec.tsx.snap
model/models/columns.model.ts -> features/columns/columns.model.ts
model/models/grid.model.ts -> features/columns/grid.model.ts

Checks

Verified locally at this commit: tsc --noEmit, pnpm run lint (0 errors), pnpm run test (263 tests pass). No changelog entry, because there is no user-facing change.

🤖 Generated with Claude Code

@github-actions

This comment has been minimized.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@iobuhov
iobuhov force-pushed the iobuhov/datagrid-structure-04-filtering branch from fb1c676 to d7f26d9 Compare November 24, 2026 15:07
@iobuhov
iobuhov force-pushed the iobuhov/datagrid-structure-05-columns branch from 04c911a to 5d9e735 Compare November 24, 2026 15:07
@github-actions

Copy link
Copy Markdown
Contributor

AI Code Review

✅ Approved — no issues found


What was reviewed

File Change
packages/pluggableWidgets/datagrid-web/src/features/columns/* Column stores, models, GridColumn, grid.model and column components moved into the feature folder. Their tests and snapshots moved with them.
datagrid-web/src/components/{DataCell,Row,Widget}.tsx, core/*, features/{data-export,personalization,sorting}/*, helpers/ColumnPreview.tsx, model/services/DerivedLoaderController.ts, utils/test-utils.tsx Import path updates only

Skipped (out of scope): __snapshots__ (moved unchanged)

CI: pending: triage · unrelated failures: security/snyk (external scanner; the code and license Snyk checks passed). The PR description says tsc, lint and 263 unit tests passed locally. No unit-test or lint check was listed on the PR.


Positives

  • The PR is a pure move. The diff contains only import path and ordering changes, with no logic, name or export changes.
  • Tests and snapshots moved together with the code they cover.
  • The description lists every move and links the neighbouring PRs in the stack.

@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