Repository navigation
DataViews: collapse/expand parent row - #83316
dinhtungdu wants to merge 1 commit into
Conversation
c163fbf to
585385b
Compare
🤖 PR meta 🤖🎉 PropsUnlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @ampagent. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
Updated as activity occurs, without notifying anyone named here. Add the 📦 Bundle sizeSize Change: +4.44 kB (+0.05%) Total Size: 8.71 MB 📦 View Changed
⚡ PerformanceShow the resultsClient side metrics exclude the server response time. front-end-block-theme
front-end-classic-theme
media-processing
media-upload
post-editor
site-editor
🏁 Flaky testsSome tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information. should select synced pattern in
|
094e860 to
8048085
Compare
8048085 to
a634737
Compare
a634737 to
4e7f72b
Compare
4e7f72b to
831d4fb
Compare
831d4fb to
f793908
Compare
f793908 to
cc8391c
Compare
cc8391c to
e4d51f7
Compare
e4d51f7 to
466d447
Compare
466d447 to
c280cc0
Compare
Co-authored-by: Amp <amp@ampcode.com> Amp-Thread-ID: https://ampcode.com/threads/T-01a1a42f-8223-7623-a09b-7f8342758e3e
c280cc0 to
eae54fb
Compare
What?
Part of #80360. Stacked on #83315.
Adds expand and collapse to hierarchical DataViews tables. The consumer controls which rows are expanded.
Why?
With #83315, a table shows every loaded item in its place in the tree. A big tree becomes one long list, so users need to hide and show a parent's children.
How?
Flat and grouped tables do not change. Loading children in batches comes in #83320.
Testing Instructions
npm run test:unit:vitest -- packages/dataviews.showLevelscontrol. The flat table comes back, with its checkbox column.Testing Instructions for Keyboard
Screenshots or screencast
Captured before the rebase onto #86829. On the current head, the checkbox, Expand all and the bulk actions bar sit at the same positions in LTR and RTL, at 375, 782 and 1280 px.
Use of AI Tools
OpenAI Codex through Pi drafted the first implementation and tests. Amp reviewed and simplified the stack, rebased it on trunk, and checked it in a browser.