Skip to content

refactor(datagrid-web): structure 11/12: ui - #2570

Closed
iobuhov wants to merge 1 commit into
iobuhov/datagrid-structure-10-data-exportfrom
iobuhov/datagrid-structure-11-ui
Closed

iobuhov wants to merge 1 commit into
iobuhov/datagrid-structure-10-data-exportfrom
iobuhov/datagrid-structure-11-ui

Conversation

@iobuhov

@iobuhov iobuhov commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Part 11/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.

The remaining generic components (Widget*, Grid, GridBody, Row, RowsRenderer, CellElement, DataCell, PseudoModal, icons/) and their tests move from components/ to ui/. Placement: features/base/WidgetRoot.viewModel.ts moves next to WidgetRoot.tsx, its only view, and typings/CellComponent.ts moves here because Row and DataCell are its only importers. After this PR, components/, model/, helpers/, features/base/ and src/typings/ are gone.

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
  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 ← this PR
  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

typings/CellComponent.ts -> ui/CellComponent.ts
components/CellElement.tsx -> ui/CellElement.tsx
components/DataCell.tsx -> ui/DataCell.tsx
components/Grid.tsx -> ui/Grid.tsx
components/GridBody.tsx -> ui/GridBody.tsx
components/PseudoModal.tsx -> ui/PseudoModal.tsx
components/Row.tsx -> ui/Row.tsx
components/RowsRenderer.tsx -> ui/RowsRenderer.tsx
components/Widget.tsx -> ui/Widget.tsx
components/WidgetContent.tsx -> ui/WidgetContent.tsx
components/WidgetFooter.tsx -> ui/WidgetFooter.tsx
components/WidgetHeader.tsx -> ui/WidgetHeader.tsx
components/WidgetRoot.tsx -> ui/WidgetRoot.tsx
features/base/WidgetRoot.viewModel.ts -> ui/WidgetRoot.viewModel.ts
components/WidgetTopBar.tsx -> ui/WidgetTopBar.tsx
components/__tests__/Grid.spec.tsx -> ui/__tests__/Grid.spec.tsx
components/__tests__/WidgetFooter.spec.tsx -> ui/__tests__/WidgetFooter.spec.tsx
components/__tests__/WidgetTopBar.spec.tsx -> ui/__tests__/WidgetTopBar.spec.tsx
components/__tests__/__snapshots__/Grid.spec.tsx.snap -> ui/__tests__/__snapshots__/Grid.spec.tsx.snap
components/icons/CloseIcon.tsx -> ui/icons/CloseIcon.tsx
components/icons/FaArrowsAltV.tsx -> ui/icons/FaArrowsAltV.tsx
components/icons/FaEye.tsx -> ui/icons/FaEye.tsx
components/icons/FaLongArrowAltDown.tsx -> ui/icons/FaLongArrowAltDown.tsx
components/icons/FaLongArrowAltUp.tsx -> ui/icons/FaLongArrowAltUp.tsx
components/icons/WarningIcon.tsx -> ui/icons/WarningIcon.tsx

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-10-data-export branch from 746deb4 to 6fb04e7 Compare November 24, 2026 15:08
@iobuhov
iobuhov force-pushed the iobuhov/datagrid-structure-11-ui branch from 22aa6f6 to 2a46c50 Compare November 24, 2026 15:08
@github-actions

Copy link
Copy Markdown
Contributor

AI Code Review

✅ Approved — no issues found


What was reviewed

File Change
packages/pluggableWidgets/datagrid-web/src/ui/** Generic components (Widget*, Grid, GridBody, Row, RowsRenderer, CellElement, DataCell, PseudoModal, icons/), CellComponent.ts, WidgetRoot.viewModel.ts and their tests and snapshot moved into ui/
src/Datagrid.tsx, Datagrid.editorPreview.tsx, core/**, features/** Import path updates only

Skipped (out of scope): dist/, lockfiles

CI: pending: triage · unrelated failures: security/snyk (external scanner)


Questions

  • The archived openspec notes under openspec/changes/** still mention src/components/... and src/helpers/.... Those are historical records, so leaving them is fine. fix-custom-content-label-double-click/design.md is an active change, so you may want to update its src/helpers/state/column/ColumnStore.tsx reference.

Positives

  • The PR is moves and import edits only. The description lists every move, so it is easy to verify.
  • No stale imports of components/, features/base, model/, helpers/ or typings/CellComponent remain in src.
  • No changelog entry is needed, because nothing user-facing changes.

@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