Skip to content

refactor(datagrid-web): structure 1/12: core - #2559

Merged
iobuhov merged 3 commits into
mainfrom
iobuhov/datagrid-structure-01-core
Nov 24, 2026
Merged

iobuhov merged 3 commits into
mainfrom
iobuhov/datagrid-structure-01-core

Conversation

@iobuhov

@iobuhov iobuhov commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

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

Widget-wide model code moves to core/: tokens.ts, containers/, configs/, hooks/ (injection-hooks, useDatagridContainer, useDataGridJSActions) and services/ (DatagridSetup, MainGateProvider, Texts). useDataGridJSActions goes to core because it wires both the reset-filters and clear-selection events, so it serves the whole widget.

Depends on #2554. Its changes are merged into this branch so the moves could be made, and this diff will shrink once #2554 merges. #2553 is already in main.

Stack

  1. core: refactor(datagrid-web): structure 1/12: core #2559 ← this PR
  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
  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

model/configs/Datagrid.config.ts -> core/configs/Datagrid.config.ts
model/configs/__tests__/config.spec.ts -> core/configs/__tests__/config.spec.ts
model/containers/Datagrid.container.ts -> core/containers/Datagrid.container.ts
model/containers/Root.container.ts -> core/containers/Root.container.ts
model/containers/__tests__/createDatagridContainer.spec.ts -> core/containers/__tests__/createDatagridContainer.spec.ts
model/containers/createDatagridContainer.ts -> core/containers/createDatagridContainer.ts
model/hooks/injection-hooks.ts -> core/hooks/injection-hooks.ts
model/hooks/useDataGridJSActions.ts -> core/hooks/useDataGridJSActions.ts
model/hooks/useDatagridContainer.ts -> core/hooks/useDatagridContainer.ts
model/services/DatagridSetup.service.ts -> core/services/DatagridSetup.service.ts
model/services/MainGateProvider.service.ts -> core/services/MainGateProvider.service.ts
model/services/Texts.service.ts -> core/services/Texts.service.ts
model/tokens.ts -> core/tokens.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

iobuhov and others added 3 commits November 24, 2026 14:08
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@iobuhov
iobuhov requested a review from a team as a code owner November 24, 2026 14:38
@github-actions

Copy link
Copy Markdown
Contributor

AI Code Review

✅ Approved — no issues found


What was reviewed

File Change
packages/pluggableWidgets/datagrid-web/src/core/** DI container, config, tokens, services and hooks now live under core/ (configs, containers, hooks, services)
packages/pluggableWidgets/datagrid-web/src/components/**, features/**, helpers/**, model/**, typings/** Import paths updated to the new core/ locations
packages/pluggableWidgets/datagrid-web/src/**/__tests__/*.spec.ts(x) Test imports updated, with no behavior changes

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

CI: pending: Plan E2E matrix, Run code quality check, sigridci · unrelated failures: security/snyk (external scanner, no new code or license issues reported)


Positives

  • The diff is a move and import rewrite only. I found no XML, props or runtime logic changes, so there is no breaking change for apps and no changelog entry is needed.
  • A grep over src/ found no import left pointing at a moved file. The remaining helpers/state/* and model/services/* imports point at files that still exist, which fits the "1/12" series.

@iobuhov
iobuhov merged commit 1bf5a4f into main Nov 24, 2026
21 of 23 checks passed
@iobuhov
iobuhov deleted the iobuhov/datagrid-structure-01-core branch November 24, 2026 15:04
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.

3 participants