Repository navigation
Conversation
This was referenced Nov 24, 2026
This comment has been minimized.
This comment has been minimized.
iobuhov
force-pushed
the
datagrid-layout-4-tokens
branch
from
November 24, 2026 15:26
422b4dd to
1a933fd
Compare
iobuhov
force-pushed
the
datagrid-layout-5-boundaries
branch
from
November 24, 2026 15:27
01d7065 to
03cf39c
Compare
This comment has been minimized.
This comment has been minimized.
iobuhov
force-pushed
the
datagrid-layout-4-tokens
branch
from
November 24, 2026 15:35
1a933fd to
711dd6e
Compare
iobuhov
force-pushed
the
datagrid-layout-5-boundaries
branch
from
November 24, 2026 15:35
03cf39c to
dd0b53d
Compare
This comment has been minimized.
This comment has been minimized.
This was referenced Nov 24, 2026
- a feature imports another feature only through its tokens.ts - features/core imports no other feature - ui imports no feature and nothing from the composition root - features import nothing from the composition root (src/*, editor/, src/__tests__), except from tests Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
iobuhov
force-pushed
the
datagrid-layout-4-tokens
branch
from
November 24, 2026 15:40
711dd6e to
07011b1
Compare
iobuhov
force-pushed
the
datagrid-layout-5-boundaries
branch
from
November 24, 2026 15:40
dd0b53d to
6ef9141
Compare
Contributor
AI Code Review
What was reviewed
Skipped (out of scope): CI: pending: triage · unrelated failures: security/snyk (dependency scan on a config-only change) Positives
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Part 4/4 of the datagrid-web restructure. Config only. No source files change.
This PR adds
import-x/no-restricted-pathstodatagrid-web/eslint.config.mjs. The shared config already shipseslint-plugin-import-x, so there is no new dependency. The rule needs a resolver that knows.ts/.tsx, so the config setsimport-x/resolver: { node: { extensions } }forsrc. Without it the rule silently skips every relative import. There is no allow-list.Boundaries
Allowed:
src/*.ts(x),src/editor/,src/__tests__/) may import anything.editor/is the Studio Pro preview composition, so it counts as root.features/core.tokens.ts.Forbidden:
features/coreimporting any other feature.ui/importing features or the composition.There is one exception. Specs under
__tests__/may import the composition, because feature specs usesrc/__tests__/test-utils.tsxandcreateDatagridContainer. Specs still may not import another feature's internals.Crossings resolved earlier in the stack
columns/GridHeader->selection/CheckboxColumnHeader,paginationhooksdatasource/loader/RowSkeletonLoader->columns/SelectorCellGridBody-> src root (#2579)selection/CheckboxCell->row-interactionhooksrow-interaction/tokens.ts(#2577)columns/HeaderSkeletonLoader->datasource/loader/SkeletonLoadercolumns/grid.model->pagination/GridSize.storepagination/tokens.ts(#2577)data-export/useDataExport(+ spec),datasource/DerivedLoaderController->columns/ColumnGroupStorecolumns/tokens.ts(#2577)datasource/DatasourceParamsController->columns/GridColumncolumns/tokens.ts(#2577)personalization/*->columns/{ColumnGroupStore,GridColumn,column-settings}columns/tokens.ts(#2577)I checked that the rule fires by adding temporary imports for each forbidden direction. Each one was reported, and the allowed ones (another feature's
tokens.ts,features/core) were not. The forbidden imports I tried:features/core, to the src root and toeditor/editor/and tosrc/__tests__Chain
srcto the feature layout (move only): refactor(datagrid-web): move src to feature layout #2579Checks
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) andpnpm turbo build. A dependency-graph check oversrcfinds no import cycles. No changelog entry, because there is no user-facing change.🤖 Generated with Claude Code