Repository navigation
DataViews: Add parent relationship support - #83241
Closed
dinhtungdu wants to merge 8 commits into
Closed
dinhtungdu wants to merge 8 commits into
dinhtungdu wants to merge 8 commits into
Conversation
🤖 PR meta 🤖🏷️ LabelsThis pull request needs exactly one label indicating its type, and has 0.
Read more about Type labels in Gutenberg. If you cannot add labels yourself, a reviewer can do it for you. |
dinhtungdu
force-pushed
the
fix/80360
branch
from
September 22, 2026 02:58
1d3246e to
7f336fb
Compare
Member
Author
|
Recreating this draft from an upstream branch so GitHub can link it as a native stacked PR. |
Member
Author
|
Replaced by #83315, which uses GitHub’s native stacked PR support. |
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.
What?
Part of #80360.
Adds an optional
getItemParentIdcallback to DataViews. When table levels are enabled, loaded items are ordered from their parent relationships and their indentation depth is calculated automatically.Why?
getItemLevelcan indent rows but cannot describe relationships between items. DataViews needs a generic parent contract before later changes can add expansion, lazy loading, and branch pagination.How?
getItemLevelas the fallback when no parent callback is provided and for grouped views.This PR does not add parent-based hierarchy to grouped views, expansion, fetching, persistence, or pagination.
Testing Instructions
Run:
In Storybook, open DataViews → Hierarchical Levels:
showLevelsand confirm items return to the normal sorted order.Testing Instructions for Keyboard
No interactive behavior changed.
Screenshots or screencast
Not applicable; this changes row ordering and existing indentation behavior.
Use of AI Tools
OpenAI Codex through Pi was used to investigate the existing code, draft the implementation and tests, and run verification. The author remains responsible for the changes.