Skip to content

Pages: show ancestor paths in table search - #84116

Closed
dinhtungdu wants to merge 1 commit into
fix/80360-pages-integrationfrom
fix/80360-pages-search-ancestors
Closed

dinhtungdu wants to merge 1 commit into
fix/80360-pages-integrationfrom
fix/80360-pages-search-ancestors

Conversation

@dinhtungdu

@dinhtungdu dinhtungdu commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Summary

Show non-interactive ancestor paths beneath matching page titles in flat table search, in both site editors. Resolve missing ancestors through the existing shared, batched lookup, including draft parents, and render labels with small local components in each Pages screen. No new Admin UI public API.

Depends directly on the Pages hierarchy integration (#83546). Combines the display and search work previously split across #83547 and #83548, with local breadcrumb renderers and the existing shared ancestor loader. The title remains the only navigation target; incomplete or cyclic ancestor paths are not shown. Child counts and manual ordering remain separate.

Verification

  • Six focused tests covering static path rendering and ancestor lookup pass.
  • Production build, full typecheck, focused JavaScript lint, SCSS lint, and commit hooks pass.
  • Both Pages screens verified on the assigned local WordPress site: published and draft-parent paths appear beneath matching titles, with no links inside the path. Screenshots opened and inspected.
  • The existing experimental editor lazy-loader console limitation remains outside this change. New GitHub CI is not claimed as passing.

Screenshots or screencast

Captured from 54060202c12506858ab108bb50eeaa33b6358835 after moving rendering into the local Pages components.

Classic Site Editor search with local ancestor paths

Extensible Site Editor search with local ancestor paths

@github-actions github-actions Bot added [Package] Editor /packages/editor [Package] Edit Site /packages/edit-site labels Oct 6, 2026
@github-actions

github-actions Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

🤖 PR meta 🤖

🏷️ 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.7 kB (+0.02%)

Total Size: 8.22 MB

📦 View Changed
Filename Size Change
build/scripts/edit-site/index.min.js 386 kB +377 B (+0.1%)
build/scripts/editor/index.min.js 614 kB +767 B (+0.13%)
build/styles/edit-site/style-rtl.css 22.3 kB +132 B (+0.59%)
build/styles/edit-site/style-rtl.min.css 18.3 kB +143 B (+0.79%)
build/styles/edit-site/style.css 22.3 kB +133 B (+0.6%)
build/styles/edit-site/style.min.css 18.3 kB +144 B (+0.79%)

5406020 Run

⚡ Performance

Show the results

Client side metrics exclude the server response time.

front-end-block-theme

Metric fa653bf fix/80360-pages-integration % Change
timeToFirstByte 56.55 ms +9.64% -2.39% 56.4 ms +5.32% -1.6% 0.27%
largestContentfulPaint 92 ms +10.87% -4.35% 92 ms +8.7% -4.35% 0%
lcpMinusTtfb 35.35 ms +14.29% -6.51% 33.95 ms +9.72% -4.27% 4.12%
wpBeforeTemplate 28.47 ms +10.05% -2.07% 28.06 ms +10.19% -1.96% 1.46%
wpTemplate 24.28 ms +3.34% -2.59% 24.23 ms +3.3% -3.92% 0.21%
wpTotal 52.66 ms +9.4% -2.09% 52.72 ms +5.71% -1.63% -0.11%
wpMemoryUsage 7.59 MB +0% -0% 7.58 MB +0% -0% 0.1%
wpDbQueries 17 +0% -0% 17 +0% -0% 0%

front-end-classic-theme

Metric fa653bf fix/80360-pages-integration % Change
timeToFirstByte 47.55 ms +9.78% -1.47% 46.8 ms +9.51% -1.28% 1.6%
largestContentfulPaint 104 ms +3.85% -0% 100 ms +6% -0% 4%
lcpMinusTtfb 55.65 ms +2.61% -3.95% 54 ms +3.06% -0.65% 3.06%
wpBeforeTemplate 26.34 ms +7.97% -2.16% 26.16 ms +3.9% -2.71% 0.69%
wpTemplate 18.05 ms +2.11% -0.78% 17.99 ms +1.61% -1.67% 0.33%
wpTotal 44.57 ms +9.76% -1.71% 43.93 ms +8.06% -1.62% 1.46%
wpMemoryUsage 6.21 MB +0% -0% 6.20 MB +0% -0% 0.12%
wpDbQueries 14 +0% -0% 14 +0% -0% 0%

media-processing

Metric fa653bf fix/80360-pages-integration % Change
mediaProcessingJpeg 398.71 ms +2.3% -0.88% 398.54 ms +0.35% -0.93% 0.04%
mediaProcessingAvif 6064.44 ms +0.21% -0.16% 6058.76 ms +0.11% -0.21% 0.09%
mediaProcessingJpegToAvif 4183.48 ms +0.08% -0.18% 4173.95 ms +0.13% -0.21% 0.23%

media-upload

Metric fa653bf fix/80360-pages-integration % Change
jpegUploadProcessing 1434.8 ms +35.48% -1.42% 1432.71 ms +0.88% -1.46% 0.15%
pngUploadProcessing 221.02 ms +1.19% -4.74% 211.02 ms +2.74% -2.17% 4.74%
largeJpegUploadProcessing 1410.02 ms +0.76% -0.63% 1407.38 ms +1.68% -0.77% 0.19%
multipleImageUploadProcessing 1557.12 ms +1.06% -0.56% 1584.27 ms +0.96% -2.94% -1.71%

post-editor

Metric fa653bf fix/80360-pages-integration % Change
serverResponse 254.16 ms +4.06% -2.4% 269.86 ms +5.21% -7.11% -5.82%
firstPaint 164.11 ms +12.84% -28.99% 163.78 ms +20.58% -9.94% 0.2%
domContentLoaded 720.78 ms +0.99% -1.91% 704.74 ms +1.48% -1.06% 2.28%
loaded 721.8 ms +1.01% -1.9% 705.77 ms +1.5% -1.04% 2.27%
firstContentfulPaint 319.84 ms +5.55% -4.33% 307.12 ms +6.23% -2.77% 4.14%
firstBlock 2018.51 ms +1.84% -0.29% 2058.78 ms +1.68% -1.56% -1.96%
type 15.45 ms +4.14% -4.08% 16.51 ms +4.18% -2.79% -6.42%
typeWithoutInspector 15.7 ms +1.91% -4.9% 16.24 ms +1.17% -2.59% -3.33%
typeWithTopToolbar 18.64 ms +8.91% -7.24% 18.61 ms +5.37% -3.28% 0.16%
typeContainer 6.65 ms +8.87% -5.11% 6.67 ms +4.65% -6.9% -0.3%
focus 50.73 ms +5.62% -3.67% 56.61 ms +5.28% -9.89% -10.39%
firstFocus 139.24 ms +0% -0% 146.78 ms +0% -0% -5.14%
selectAll 324.95 ms +1.14% -6.23% 328.81 ms +12.71% -3.29% -1.17%
listViewOpen 45.32 ms +4.26% -12.09% 44.95 ms +8.03% -13.97% 0.82%
inserterOpen 17.22 ms +6.56% -3.37% 17.52 ms +17.98% -10.22% -1.71%
inserterHover 2.55 ms +8.63% -5.49% 2.65 ms +7.92% -4.53% -3.77%
inserterSearch 6.5 ms +3.85% -5.85% 6.56 ms +3.81% -1.98% -0.91%
loadPatterns 436.18 ms +9.28% -0.29% 453.2 ms +4.26% -5.67% -3.76%
wpTotal 246.98 ms +4.22% -2.49% 262.85 ms +5.21% -7.31% -6.04%
wpMemoryUsage 13.13 MB +0% -0% 13.12 MB +0% -0% 0.08%
wpDbQueries 54 +0% -0% 54 +0% -0% 0%

site-editor

Metric fa653bf fix/80360-pages-integration % Change
serverResponse 488.67 ms +2.01% -3.97% 498.05 ms +5.17% -2.77% -1.88%
firstPaint 250.41 ms +12.8% -23.05% 270.93 ms +7.12% -10.3% -7.57%
domContentLoaded 1164.44 ms +1.2% -1.66% 1158.71 ms +1.12% -1.39% 0.49%
loaded 1165.83 ms +1.19% -1.66% 1160.12 ms +1.13% -1.41% 0.49%
firstContentfulPaint 457.36 ms +1.79% -1.43% 462.56 ms +6.04% -3.07% -1.12%
firstBlock 4231.02 ms +1.1% -1.29% 4164.18 ms +0.96% -0.4% 1.61%
type 19.55 ms +7.83% -4.96% 20.99 ms +9% -3.76% -6.86%
navigate 115.91 ms +7.23% -2.08% 111.16 ms +9.66% -5.96% 4.27%
loadPatterns 1421.62 ms +14.92% -2.31% 1387.61 ms +4.04% -2.78% 2.45%
loadPages 1081.26 ms +2.64% -1.15% 1084.89 ms +1.96% -2.77% -0.33%
wpTotal 478.71 ms +1.62% -4.05% 488.17 ms +5.15% -2.9% -1.94%
wpMemoryUsage 12.10 MB +0% -0% 12.10 MB +0% -0% -0.04%
wpDbQueries 43 +2.33% -0% 43.5 +1.15% -1.15% -1.15%

5406020 Run

@dinhtungdu
dinhtungdu added this pull request to stack #84117 October 6, 2026 12:27
@dinhtungdu
dinhtungdu force-pushed the fix/80360-pages-search-ancestors branch from 90f0af8 to 813a3a6 Compare October 12, 2026 03:42
@dinhtungdu
dinhtungdu force-pushed the fix/80360-pages-integration branch from 0a150c7 to 507f788 Compare October 12, 2026 03:42
@dinhtungdu dinhtungdu closed this Oct 12, 2026
@dinhtungdu
dinhtungdu removed this pull request from stack #84117 October 12, 2026 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Edit Site /packages/edit-site [Package] Editor /packages/editor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant