Skip to content

refactor(datagrid-web): layout 1/5: merge sorting and filtering into columns - #2574

Closed
iobuhov wants to merge 15 commits into
iobuhov/datagrid-structure-12-test-utilsfrom
datagrid-layout-1-columns
Closed

iobuhov wants to merge 15 commits into
iobuhov/datagrid-structure-12-test-utilsfrom
datagrid-layout-1-columns

Conversation

@iobuhov

@iobuhov iobuhov commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Part 1/5 of the datagrid-web layout follow-up. Move only: files are moved with git mv and declarations move between files. No logic, names or exports change.

Sorting, filtering and column personalization settings are part of the columns area: ColumnGroupStore owns the ColumnsSortingStore and builds the ColumnFilterStores. This PR moves them into features/columns/ and removes the two file-level import cycles.

Moves

features/sorting/ColumnsSortingStore.ts  -> features/columns/ColumnsSortingStore.ts
features/filtering/ColumnFilterStore.tsx -> features/columns/ColumnFilterStore.tsx
features/filtering/static-info.ts        -> features/columns/static-info.ts

Declarations moved between files:

  • sorting.ts (SortInstruction, SortDirection, SortRule) is folded into columns/GridColumn.ts. This removes the GridColumn.ts <-> sorting.ts cycle.
  • IColumnParentStore moves from ColumnGroupStore.ts to ColumnStore.tsx, its consumer. sortInstructionsToSortRules and sortRulesToSortInstructions move from ColumnsSortingStore.ts to ColumnGroupStore.ts, their only caller. This removes the ColumnGroupStore -> ColumnsSortingStore -> ColumnStore -> ColumnGroupStore cycle.
  • ColumnPersonalizationSettings and ColumnFilterSettings move from personalization/personalization-settings.ts to the new columns/column-settings.ts. The storage format types stay in personalization.

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

iobuhov and others added 15 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>
…lization

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Move features/sorting and features/filtering into features/columns, and
move the column settings types from personalization into
columns/column-settings.ts.

Break the two file-level import cycles by moving declarations:
- sorting.ts types fold into GridColumn.ts (GridColumn <-> sorting)
- IColumnParentStore moves to ColumnStore.tsx and the sort rule
  converters move to ColumnGroupStore.ts, their only caller
  (ColumnGroupStore -> ColumnsSortingStore -> ColumnStore -> ColumnGroupStore)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@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