feat(studio): edit nested sub-blocks inside container blocks (closes #1499)#1500
Merged
Conversation
…1499) - Extend the block-path helpers (parsePath/readAt/writeAt/readSiblings/ writeSiblings) to support object-key hops, so nested children at …components[0].properties.items[0].children[0] are addressable; built on a generic immutable getByPath/setByPath. Slot ids gain an optional nested sub-path (slot:tabs:0.properties.items[0].children[0]). - Canvas surfaces a container's child groups (tabs/accordion items, card body, section children) as indented selectable rows with per-group Add block; nested add writes via the shared path utils (regions + slots). Verified e2e on showcase_project_detail (slotted): page:tabs nested children (record:details / record:line_items) surfaced; selected record:details configured via inspector + field pickers; section-label edit round-trips; add nested block works. 149 metadata-admin tests pass (incl. nested path). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
❌ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
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.
Closes #1499 — the last gap in the page editor. Blocks NESTED inside a container (a page:tabs/page:accordion tab's children, a page:card/page:section body) are now surfaced as indented, selectable sub-blocks: select → configure (inspector + object/field pickers) → edit → remove → add — in both full and slotted pages.
Foundation: the block-path helpers now support object-key hops (so …components[0].properties.items[0].children[0] is addressable), built on a generic immutable getByPath/setByPath. Slot ids gain an optional nested sub-path (slot:tabs:0.properties.items[0].children[0]). The canvas renders each container's child groups with per-group Add block.
Verified e2e on app-showcase showcase_project_detail (a slotted page — the hardest case): the tabs slot's page:tabs surfaces its nested children (record:details / record:line_items); selecting record:details configures it via the inspector with field pickers resolving showcase_project fields; a section-label edit round-trips through the nested slot path; adding a nested block works. 149 metadata-admin tests pass (incl. nested-path unit tests).
🤖 Generated with Claude Code