Skip to content

[Do not merge] List View editing: Combined build for user testing - #86076

Draft
jeryj wants to merge 33 commits into
trunkfrom
try/list-view-editing-preview
Draft

jeryj wants to merge 33 commits into
trunkfrom
try/list-view-editing-preview

Conversation

@jeryj

@jeryj jeryj commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Do not merge. This branch merges the PRs for #85961 so they can be user tested together in WordPress Playground. CI builds a plugin zip from it, and the user test installs that zip.

Merged here:

Review and comment on those PRs, not this one. This branch is closed once testing is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01S1u1vgir2YJpmNhb7h3ESd

jeryj and others added 18 commits October 29, 2026 14:35
Opt the playlist block into the `listView` block support, so the block inspector gains a List View tab listing its tracks. Selecting a row selects that track and shows its settings. Each row is named after the track's title (or custom block name) instead of the generic "Playlist track" label.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QfLcCffRKsyNqAWV8EYUvU
…n them

A Button now renders its content panel (Text, Link to, Open in new tab,
View) in every editing context, not only inside a Navigation block or in
content-only editing. The block inspector therefore opens on a Content tab
like an Image or a Navigation Link, and the block styles, color,
typography, width, and border controls move to the Styles tab. The
Advanced panel (HTML element, Link relation) sits on the Settings tab.

The e2e specs that assumed a flat Button inspector click the Styles or
Settings tab first, and the link popover test scopes its checkboxes to the
popover since the sidebar now has its own "Open in new tab" checkbox.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LsZq1CtjWAJVKoH1RVYdGF
Add a "Track" control to the playlist track's Settings panel that shows the current audio file name and opens the media library to replace it, mirroring the "Track image" control below it. The control is only rendered for a single selected track, like the toolbar replace control, since swapping the source of every selected track with one file makes no sense.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QfLcCffRKsyNqAWV8EYUvU
Replace the hand-built file name and button with the shared `MediaControl` utility that the image, media & text, cover and site logo blocks use in their inspectors, so the track control looks and behaves the same: a replace flow dropdown with Media Library and Upload, plus a drop zone.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QfLcCffRKsyNqAWV8EYUvU
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LsZq1CtjWAJVKoH1RVYdGF
Check both tracks are listed and that clicking the second row selects that Playlist track block, and add a changelog entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S1u1vgir2YJpmNhb7h3ESd
Move the track's inspector controls to the Content tab, in the order
track file, Track image, Alternative text, Title, Artist and Album.
The Track image now uses the shared MediaControl, like the track file
and the Image block's media panel, replacing the hand-rolled
MediaUpload button whose preview borrowed the Video poster's unstyled
class and overflowed the sidebar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S1u1vgir2YJpmNhb7h3ESd
Selecting a Button from its parent Buttons block's List View tab opens
the inspector on the Content tab, and edits to Text and Link to there
reach the block and the canvas. Keep the merged #84854 changelog entry
and give this PR its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S1u1vgir2YJpmNhb7h3ESd
…field

Adds the shared pieces for editing links in a block's Content tab (#85961):

- LinkPicker takes `showSuggestions`. With it off, the popover asks for a
  URL and does not search for suggestions, for blocks like Social Icon.
- MediaLinkControl and MediaLinkNewTabControl in block-library's utils
  offer the media link destinations (None, Media file, Attachment page,
  Custom URL via LinkPicker) and Open in new tab in the inspector. Blocks
  choose which destinations to offer, so File can offer only Media file
  and Attachment page.
- The toolbar's ImageURLInputUI now shares its destination matching and
  new tab rel handling with the inspector fields, through the private
  getMediaLinkDestination and getNewTabLinkAttributes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S1u1vgir2YJpmNhb7h3ESd
The Settings panel gains a URL field above Text and a View button, and
moves to the content group, so it shows in the inspector's content tab
and in the List View popover of a content-only section, where the icon
had no controls at all.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E1o9yTAtStCTHxjhPHeg8P
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E1o9yTAtStCTHxjhPHeg8P
The Link field follows Text so it sits next to the View button, carries
the link icon the DataViews URL control uses, and View only shows once
the URL parses.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E1o9yTAtStCTHxjhPHeg8P
Reuses the URLInput the popover already uses instead of a separate
InputControl build, and lets it shrink to the inspector width.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HbUrKwjxrCRjZzsA1zwvzQ
`ViewLinkButton` now renders the inspector's View button for Navigation Link and Button, so the Social Icon block uses it too instead of its own copy of the markup. The `isURL` guard stays, since the link field accepts partial input while the user types.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017N6SBnzQbqs3yXsiyVbAPh
The inspector's link field took any text and reported nothing. It is now a `ValidatedInputControl` from `@wordpress/ui` with `type="url"`, so leaving the field with something that is not a URL shows the browser's message inline, and the View button still waits for a valid URL. The field is labeled "Social profile link".

`URLInput` was the previous choice. Its own validation goes through the deprecated `ValidatedInputControl` in `@wordpress/components`, and its 300px minimum width needed overriding in the inspector, so the override goes too.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017N6SBnzQbqs3yXsiyVbAPh
The `blockInspectorAnimation` setting lists the Social Icons block but not the Social Icon inside it, so selecting an icon in a menu showed its inspector without the slide the other menu items get.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017N6SBnzQbqs3yXsiyVbAPh
Clearing the field stored `url: ''`, which was serialized into the block comment. The `ValidatedInputControl` suppression also moves onto its import specifier, as trunk's `no-broad-component-suppression` rule now requires.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S1u1vfoubDwESfkKfqMPDj
The Content tab's link field is now the same LinkPicker as Navigation Link and Button, with suggestions off: it shows a preview card, and its popover asks for a URL, normalizing it on Enter. Resetting the field still leaves `url` unset.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S1u1vgir2YJpmNhb7h3ESd
@github-actions github-actions Bot added [Package] Block library /packages/block-library [Package] Block editor /packages/block-editor labels Oct 30, 2026
@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

🤖 PR meta 🤖

Preview in WordPress Playground

🏷️ Labels

This pull request needs exactly one label indicating its type, and has 0.

  • Required: any label starting with [Type].
  • Found: none.

Read more about Type labels in Gutenberg. If you cannot add labels yourself, a reviewer can do it for you.

📦 Bundle size

Size Change: +1.53 kB (+0.02%)

Total Size: 8.57 MB

📦 View Changed
Filename Size Change
build/scripts/block-editor/index.min.js 542 kB +146 B (+0.03%)
build/scripts/block-library/index.min.js 403 kB +1.3 kB (+0.32%)
build/styles/block-library/editor-rtl.css 12.9 kB +19 B (+0.15%)
build/styles/block-library/editor-rtl.min.css 10.6 kB +19 B (+0.18%)
build/styles/block-library/editor.css 13 kB +19 B (+0.15%)
build/styles/block-library/editor.min.css 10.6 kB +19 B (+0.18%)

6120de7 Run

⚡ Performance

Show the results

Client side metrics exclude the server response time.

front-end-block-theme

Metric 134b3f6 trunk % Change
timeToFirstByte 57.4 ms +8.89% -4.36% 54.15 ms +5.17% -3.6% 6%
largestContentfulPaint 92 ms +8.7% -4.35% 88 ms +2.27% -4.55% 4.55%
lcpMinusTtfb 35.05 ms +5.85% -4.71% 32 ms +3.28% -1.25% 9.53%
wpBeforeTemplate 29.39 ms +17.66% -3.98% 28.38 ms +7.96% -2.08% 3.56%
wpTemplate 22.6 ms +3.45% -5.66% 21.69 ms +2.21% -4.61% 4.2%
wpTotal 53.71 ms +8.15% -4.82% 50.38 ms +5.46% -3.49% 6.61%
wpMemoryUsage 7.70 MB +0% -0% 7.67 MB +0% -0% 0.43%
wpDbQueries 16 +0% -0% 16 +0% -0% 0%

front-end-classic-theme

Metric 134b3f6 trunk % Change
timeToFirstByte 46.85 ms +5.34% -2.45% 45.2 ms +7.63% -0.55% 3.65%
largestContentfulPaint 100 ms +4% -0% 100 ms +4% -2% 0%
lcpMinusTtfb 53.7 ms +3.26% -2.61% 54.2 ms +1.85% -5.35% -0.92%
wpBeforeTemplate 26.62 ms +5.63% -1.99% 26.41 ms +0.95% -1.93% 0.8%
wpTemplate 16.77 ms +3.22% -5.19% 15.96 ms +5.14% -1.32% 5.08%
wpTotal 43.7 ms +5.49% -2.24% 42.27 ms +7.88% -0.64% 3.38%
wpMemoryUsage 6.39 MB +0% -0% 6.36 MB +0% -0% 0.53%
wpDbQueries 13 +0% -0% 13 +0% -0% 0%

media-processing

Metric 134b3f6 trunk % Change
mediaProcessingJpeg 405.79 ms +0.72% -0.74% 399.63 ms +0.82% -0.58% 1.54%
mediaProcessingAvif 6153.54 ms +0.74% -0.19% 6135.49 ms +0.56% -0.22% 0.29%
mediaProcessingJpegToAvif 4250.78 ms +0.57% -0.39% 4251.7 ms +0.04% -0.3% -0.02%

media-upload

Metric 134b3f6 trunk % Change
jpegUploadProcessing 1957.83 ms +1.25% -23.84% 1475.13 ms +1.81% -1.28% 32.72%
pngUploadProcessing 228.5 ms +15.58% -28.77% 251.81 ms +16.92% -29.11% -9.26%
largeJpegUploadProcessing 1462.82 ms +0.38% -0.58% 1464.34 ms +0.54% -1.25% -0.1%
multipleImageUploadProcessing 2035.72 ms +0.84% -0.89% 2026.08 ms +0.8% -0.65% 0.48%

post-editor

Metric 134b3f6 trunk % Change
serverResponse 479.29 ms +5.1% -6.48% 499.58 ms +4% -7.61% -4.06%
firstPaint 353.63 ms +41.3% -9.05% 352.29 ms +13.34% -9.36% 0.38%
domContentLoaded 895.3 ms +2% -2.55% 899.49 ms +1.59% -0.33% -0.47%
loaded 896.5 ms +1.99% -2.54% 900.73 ms +1.59% -0.33% -0.47%
firstContentfulPaint 516.68 ms +8.17% -3.29% 517.92 ms +1.32% -1.24% -0.24%
firstBlock 2300.16 ms +2.23% -3.46% 2330.8 ms +0.56% -1.18% -1.31%
type 19.88 ms +15.69% -5.28% 21.09 ms +3.7% -7.3% -5.74%
typeWithoutInspector 20.52 ms +6.24% -8.97% 21.96 ms +5.05% -14.16% -6.56%
typeWithTopToolbar 26.83 ms +12.3% -4.81% 28.35 ms +3.99% -8.85% -5.36%
typeContainer 9.63 ms +12.88% -14.95% 9.1 ms +8.35% -9.89% 5.82%
focus 127.46 ms +8.9% -3.69% 122.49 ms +5.27% -4.29% 4.06%
firstFocus 292.03 ms +0% -0% 249.2 ms +0% -0% 17.19%
selectAll 435.17 ms +5.86% -1.37% 407.27 ms +10.33% -0.12% 6.85%
undo 33.45 ms +4.63% -5.77% 29.7 ms +13.33% -3.54% 12.63%
listViewOpen 89.5 ms +4.22% -4.55% 79.69 ms +8.32% -5.35% 12.31%
inserterOpen 48.71 ms +1.17% -3.94% 42.05 ms +4.85% -2.95% 15.84%
inserterHover 12.27 ms +12.39% -8.15% 11.4 ms +12.98% -8.6% 7.63%
inserterSearch 9.39 ms +4.15% -5.01% 8.93 ms +6.72% -6.38% 5.15%
loadPatterns 726.6 ms +6.06% -6.52% 652.09 ms +3.25% -1.48% 11.43%
wpTotal 469.58 ms +4.97% -6.57% 489.81 ms +3.81% -7.88% -4.13%
wpMemoryUsage 14.73 MB +0% -0% 14.72 MB +0% -0% 0.1%
wpDbQueries 55 +0% -0% 55 +0% -0% 0%

site-editor

Metric 134b3f6 trunk % Change
serverResponse 408.01 ms +1.91% -9.74% 398.75 ms +0.39% -9.65% 2.32%
firstPaint 352.11 ms +7% -20.37% 303.63 ms +18.63% -19.25% 15.97%
domContentLoaded 879.47 ms +9.25% -2.84% 843.45 ms +1.74% -1.02% 4.27%
loaded 880.6 ms +9.23% -2.84% 844.5 ms +1.91% -1.02% 4.27%
firstContentfulPaint 500.98 ms +3.04% -3.26% 477.15 ms +1.28% -1.96% 4.99%
firstBlock 2526.68 ms +9.92% -3.02% 2423.59 ms +1% -0.61% 4.25%
type 17.42 ms +8.38% -2.81% 18.19 ms +3.85% -6.98% -4.23%
navigate 110.64 ms +4.31% -4.79% 108.47 ms +6.2% -1.53% 2%
loadPatterns 1078.96 ms +2.85% -5.18% 1048.25 ms +9.51% -2.55% 2.93%
loadPages 952.52 ms +5.03% -1.32% 962.45 ms +2.28% -4.19% -1.03%
wpTotal 397.21 ms +1.99% -9.98% 388.17 ms +0.42% -9.94% 2.33%
wpMemoryUsage 12.77 MB +0% -0% 12.73 MB +0% -0% 0.27%
wpDbQueries 45 +0% -0% 45 +0% -0% 0%

6120de7 Run

jeryj and others added 9 commits October 30, 2026 16:13
…icker

Drop the Link to dropdown. The field is a single LinkPicker that offers
Media file and Attachment page above its page suggestions, with a Remove
link button beside the preview. LinkPicker gains transformSuggestions,
passed to its LinkControl.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S1u1vgir2YJpmNhb7h3ESd
Move the File block's file, file name, link, new tab and download button
controls to an inspector Content tab, with a Media control to replace the
file. The inline PDF embed settings stay on the Settings tab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S1u1vgir2YJpmNhb7h3ESd
Add Link to and Open in new tab to the Image block's Content tab, so an
image in a Gallery selected from the Gallery's List View can have its
link changed from the sidebar. They reuse MediaLinkControl and
MediaLinkNewTabControl, follow the toolbar's conditions for showing the
link, and turn off the lightbox when a link is set, as the toolbar does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S1u1vgir2YJpmNhb7h3ESd
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S1u1vgir2YJpmNhb7h3ESd
The media Link to field is now a link picker that offers the media file and the attachment page as suggestions, not a dropdown. Open the picker and choose a suggestion, check that only those two are offered with no Remove link button, and anchor the Media button's name so it no longer matches the Link to preview, whose name includes the file URL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S1u1vgir2YJpmNhb7h3ESd
MediaLinkControl no longer has a Link to dropdown. It's a LinkPicker that
offers the media file and attachment page as its first suggestions, with a
Remove link button beside the preview. Update the Gallery jsdom and e2e
tests to open the picker and choose a suggestion, and cover removing the
link, which keeps the lightbox off the same way the toolbar does.

The jsdom editor now provides __experimentalFetchLinkSuggestions, as the
real editor always does, since the link picker can't list suggestions
without it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S1u1vgir2YJpmNhb7h3ESd
…' into try/list-view-editing-preview

# Conflicts:
#	packages/block-library/CHANGELOG.md
jeryj and others added 6 commits October 30, 2026 16:22
…/list-view-editing-preview

# Conflicts:
#	packages/block-library/CHANGELOG.md
…ce' into try/list-view-editing-preview

# Conflicts:
#	packages/block-library/CHANGELOG.md
#	test/e2e/specs/editor/blocks/playlist.spec.js
…ist-view-editing-preview

# Conflicts:
#	packages/block-library/CHANGELOG.md
@jeryj
jeryj force-pushed the try/list-view-editing-preview branch from fddaea0 to 6120de7 Compare October 30, 2026 21:28

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Block editor /packages/block-editor [Package] Block library /packages/block-library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant