Repository navigation
DataViews: add controlled hierarchy expansion - #83311
Closed
dinhtungdu wants to merge 12 commits into
Closed
dinhtungdu wants to merge 12 commits into
dinhtungdu wants to merge 12 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-controlled-expansion
branch
from
September 22, 2026 03:52
d1684b5 to
2337baf
Compare
dinhtungdu
force-pushed
the
fix/80360-controlled-expansion
branch
from
September 22, 2026 04:13
cbb6dc5 to
c163fbf
Compare
Member
Author
|
Recreating this draft from an upstream branch so GitHub can link it as a native stacked PR. |
Member
Author
|
Replaced by #83316, 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. Stacked on #83241.
Adds controlled expand/collapse controls to ungrouped hierarchical DataViews tables.
Why?
Consumers need to own expansion state so it can coordinate with lazy loading without persisting item IDs in
view.How?
getItemHasChildren,expandedItemIds, andonChangeExpandedItemIdsprops.undefinedchild state as expandable so consumers can discover children lazily.Fetching, loading states, errors, and per-parent “load more” controls remain out of scope.
Testing Instructions
Run:
In Storybook, open DataViews → Hierarchical Levels:
showLevelsand confirm the ordinary table returns.Testing Instructions for Keyboard
Screenshots or screencast
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.