Skip to content

[Tree-widget]: fix tree widget header skeleton sizes - #1886

Open
MartynasStrazdas wants to merge 12 commits into
masterfrom
mast/fix-layout
Open

MartynasStrazdas wants to merge 12 commits into
masterfrom
mast/fix-layout

Conversation

@MartynasStrazdas

Copy link
Copy Markdown
Contributor

@MartynasStrazdas

Copy link
Copy Markdown
Contributor Author

/update-screenshots

@github-actions github-actions Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tree-Widget benchmark

Benchmark suite Current: 8e8d989 Previous: eadcf7e Deviation Status
models tree 50k 3D elements search > get search paths 908 ms 561 ms 61.85% 🚨
models tree 50k 3D elements search > get search paths (P95 of main thread blocks) 67 ms 37 ms 81.08% 〰️
models tree 50k 3D elements search > load hierarchy from search paths 95838 ms 71037 ms 34.91% 🚨
models tree 50k 3D elements search > load hierarchy from search paths (P95 of main thread blocks) 40 ms 22 ms 81.82% 〰️
models tree 50k categories > collect nodes 2690 ms 1466 ms 83.49% 🚨
models tree 50k categories > collect nodes (P95 of main thread blocks) 95 ms 60 ms 58.33% 〰️
models tree 50k categories > validate initial visibility 2761 ms 1819 ms 51.79% 🚨
models tree 50k categories > validate initial visibility (P95 of main thread blocks) 243 ms 137 ms 77.37% 🚨
models tree 50k categories > change visibility 263 ms 146 ms 80.14% 🚨
models tree 50k categories > change visibility (P95 of main thread blocks) 85 ms 66 ms 28.79% 〰️
models tree 50k categories > validate changed visibility 2969 ms 1673 ms 77.47% 🚨
models tree 50k categories > validate changed visibility (P95 of main thread blocks) 36 ms 0 ms 3600% 〰️
models tree 50k 3D elements > collect nodes 39171 ms 27509 ms 42.39% 🚨
models tree 50k 3D elements > collect nodes (P95 of main thread blocks) 86 ms 61 ms 40.98% 〰️
models tree 50k 3D elements > validate initial visibility 1654 ms 1314 ms 25.88% 🚨
models tree 50k 3D elements > validate initial visibility (P95 of main thread blocks) 38 ms 0 ms 3800% 〰️
models tree 50k 3D elements > change model visibility 114 ms 68 ms 67.65% 〰️
models tree 50k 3D elements > change model visibility (P95 of main thread blocks) 24 ms 0 ms 2400% 〰️
models tree 50k 3D elements > validate changed model visibility 2429 ms 1872 ms 29.75% 🚨
models tree 50k 3D elements > validate changed model visibility (P95 of main thread blocks) 0 ms 0 ms 0% 🟰
models tree 50k 3D elements > change category node visibility 523 ms 340 ms 53.82% 🚨
models tree 50k 3D elements > change category node visibility (P95 of main thread blocks) 50 ms 27 ms 85.19% 〰️
models tree 50k 3D elements > validate changed category visibility 1664 ms 1474 ms 12.89% 🚨
models tree 50k 3D elements > validate changed category visibility (P95 of main thread blocks) 0 ms 58 ms -100% ✅
models tree 50k 3D elements > validate per-model category override 1702 ms 1164 ms 46.22% 🚨
models tree 50k 3D elements > validate per-model category override (P95 of main thread blocks) 0 ms 0 ms 0% 🟰
models tree 50k 3D elements > change element visibility 56 ms 39 ms 43.59% 〰️
models tree 50k 3D elements > change element visibility (P95 of main thread blocks) 0 ms 0 ms 0% 🟰
models tree 50k 3D elements > validate changed element visibility 2491 ms 1517 ms 64.21% 🚨
models tree 50k 3D elements > validate changed element visibility (P95 of main thread blocks) 64 ms 26 ms 146.15% 〰️
models tree 50k 3D child elements with different categories > collect nodes 47579 ms 34984 ms 36.00% 🚨
models tree 50k 3D child elements with different categories > collect nodes (P95 of main thread blocks) 68 ms 29 ms 134.48% 〰️
models tree 50k 3D child elements with different categories > validate initial visibility 2464 ms 1520 ms 62.11% 🚨
models tree 50k 3D child elements with different categories > validate initial visibility (P95 of main thread blocks) 30 ms 0 ms 3000% 〰️
models tree 50k 3D child elements with different categories > change visibility 52 ms 52 ms 0% 🟰
models tree 50k 3D child elements with different categories > change visibility (P95 of main thread blocks) 0 ms 0 ms 0% 🟰
models tree 50k 3D child elements with different categories > validate changed visibility 6182 ms 4090 ms 51.15% 🚨
models tree 50k 3D child elements with different categories > validate changed visibility (P95 of main thread blocks) 89 ms 56 ms 58.93% 〰️
models tree 50k 3D child elements with different categories and excluded classes > collect nodes 53218 ms 31752 ms 67.61% 🚨
models tree 50k 3D child elements with different categories and excluded classes > collect nodes (P95 of main thread blocks) 77 ms 27 ms 185.19% 〰️
models tree 50k 3D child elements with different categories and excluded classes > validate initial visibility 2796 ms 2000 ms 39.80% 🚨
models tree 50k 3D child elements with different categories and excluded classes > validate initial visibility (P95 of main thread blocks) 52 ms 34 ms 52.94% 〰️
models tree 50k 3D child elements with different categories and excluded classes > change visibility 51 ms 52 ms -1.92% 〰️
models tree 50k 3D child elements with different categories and excluded classes > change visibility (P95 of main thread blocks) 0 ms 0 ms 0% 🟰
models tree 50k 3D child elements with different categories and excluded classes > validate changed visibility 8772 ms 5196 ms 68.82% 🚨
models tree 50k 3D child elements with different categories and excluded classes > validate changed visibility (P95 of main thread blocks) 116 ms 58 ms 100% 🚨
categories tree 50k subCategories search > get search paths 1121 ms 661 ms 69.59% 🚨
categories tree 50k subCategories search > get search paths (P95 of main thread blocks) 107 ms 61 ms 75.41% 〰️
categories tree 50k subCategories search > load hierarchy from search paths 6385 ms 3178 ms 100.91% 🚨
categories tree 50k subCategories search > load hierarchy from search paths (P95 of main thread blocks) 68 ms 28 ms 142.86% 〰️
categories tree 50k subCategories > collect nodes 6012 ms 3079 ms 95.26% 🚨
categories tree 50k subCategories > collect nodes (P95 of main thread blocks) 50 ms 0 ms 5000% 〰️
categories tree 50k subCategories > validate initial visibility 1319 ms 1046 ms 26.10% 🚨
categories tree 50k subCategories > validate initial visibility (P95 of main thread blocks) 31 ms 0 ms 3100% 〰️
categories tree 50k subCategories > change visibility 398 ms 301 ms 32.23% 🚨
categories tree 50k subCategories > change visibility (P95 of main thread blocks) 39 ms 0 ms 3900% 〰️
categories tree 50k subCategories > validate changed visibility 1206 ms 1000 ms 20.60% 🚨
categories tree 50k subCategories > validate changed visibility (P95 of main thread blocks) 69 ms 35 ms 97.14% 〰️
categories tree 50k categories > collect nodes 108524 ms 72758 ms 49.16% 🚨
categories tree 50k categories > collect nodes (P95 of main thread blocks) 65 ms 26 ms 150% 〰️
categories tree 50k categories > validate initial visibility 7254 ms 4634 ms 56.54% 🚨
categories tree 50k categories > validate initial visibility (P95 of main thread blocks) 113 ms 72 ms 56.94% 〰️
categories tree 50k categories > change visibility 934 ms 660 ms 41.52% 🚨
categories tree 50k categories > change visibility (P95 of main thread blocks) 83 ms 51 ms 62.75% 〰️
categories tree 50k categories > validate changed visibility 6367 ms
categories tree 50k categories > validate changed visibility (P95 of main thread blocks) 60 ms
categories tree 50k categories and excluded classes > collect nodes 104626 ms 72737 ms 43.84% 🚨
categories tree 50k categories and excluded classes > collect nodes (P95 of main thread blocks) 143 ms 21 ms 580.95% 🚨
categories tree 50k categories and excluded classes > validate initial visibility 7439 ms 4805 ms 54.82% 🚨
categories tree 50k categories and excluded classes > validate initial visibility (P95 of main thread blocks) 189 ms 75 ms 152% 🚨
categories tree 50k categories and excluded classes > change visibility 924 ms 621 ms 48.79% 🚨
categories tree 50k categories and excluded classes > change visibility (P95 of main thread blocks) 98 ms 47 ms 108.51% 🚨
categories tree 50k categories and excluded classes > validate changed visibility 8934 ms 5903 ms 51.35% 🚨
categories tree 50k categories and excluded classes > validate changed visibility (P95 of main thread blocks) 38 ms 0 ms 3800% 〰️
classifications tree 50k classifications search > get search paths 2402 ms 1492 ms 60.99% 🚨
classifications tree 50k classifications search > get search paths (P95 of main thread blocks) 225 ms 150 ms 50% 🚨
classifications tree 50k classifications search > load hierarchy from search paths 51282 ms 37463 ms 36.89% 🚨
classifications tree 50k classifications search > load hierarchy from search paths (P95 of main thread blocks) 28 ms 0 ms 2800% 〰️
classifications tree 50k classifications > collect nodes 19753 ms 9123 ms 116.52% 🚨
classifications tree 50k classifications > collect nodes (P95 of main thread blocks) 55 ms 35 ms 57.14% 〰️
classifications tree 50k classifications > validate initial visibility 11065 ms 5750 ms 92.43% 🚨
classifications tree 50k classifications > validate initial visibility (P95 of main thread blocks) 7368 ms 3591 ms 105.18% 🚨
classifications tree 50k classifications > change visibility 193 ms 108 ms 78.70% 🚨
classifications tree 50k classifications > change visibility (P95 of main thread blocks) 0 ms 0 ms 0% 🟰
classifications tree 50k classifications > validate changed visibility 4179 ms 2358 ms 77.23% 🚨
classifications tree 50k classifications > validate changed visibility (P95 of main thread blocks) 96 ms 40 ms 140% 🚨
classifications tree 50k classifications and excluded classes > collect nodes 21162 ms 9629 ms 119.77% 🚨
classifications tree 50k classifications and excluded classes > collect nodes (P95 of main thread blocks) 54 ms 23 ms 134.78% 〰️
classifications tree 50k classifications and excluded classes > validate initial visibility 12674 ms 5486 ms 131.02% 🚨
classifications tree 50k classifications and excluded classes > validate initial visibility (P95 of main thread blocks) 9593 ms 3210 ms 198.85% 🚨
classifications tree 50k classifications and excluded classes > change visibility 181 ms 109 ms 66.06% 🚨
classifications tree 50k classifications and excluded classes > change visibility (P95 of main thread blocks) 25 ms 0 ms 2500% 〰️
classifications tree 50k classifications and excluded classes > validate changed visibility 3867 ms 2336 ms 65.54% 🚨
classifications tree 50k classifications and excluded classes > validate changed visibility (P95 of main thread blocks) 70 ms 48 ms 45.83% 〰️

This comment was automatically generated by workflow using github-action-benchmark.

@MartynasStrazdas

Copy link
Copy Markdown
Contributor Author

needs #1887

@MartynasStrazdas

Copy link
Copy Markdown
Contributor Author

/update-screenshots

@MartynasStrazdas

Copy link
Copy Markdown
Contributor Author

/update-screenshots

@MartynasStrazdas
MartynasStrazdas marked this pull request as ready for review November 23, 2026 07:44
@MartynasStrazdas
MartynasStrazdas requested review from a team as code owners November 23, 2026 07:44
Copilot AI balanced review requested due to automatic review settings November 23, 2026 07:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The tree-widget loading-placeholder sizing changes have no active review issues.

No open issues 🎉

What changed in this PR

Adjusts tree-widget loading placeholders to better match loaded controls, addressing the layout shift reported in #1817.

Changes:

  • Reduces toolbar skeletons to 24×24 and the header selector skeleton height to 22.
  • Tightens screenshot comparison tolerance from 5% to 2%.
  • Adds a patch release note for the sizing fix.
File Description
packages/​tree-widget/​vitest.config.ts Tightens the screenshot pixel-comparison threshold.
packages/​tree-widget/​src/​tree-widget-react/​TreeWidgetComponentImpl.tsx Resizes initial toolbar skeletons to 24×24.
packages/​tree-widget/​src/​tree-widget-react/​tree-header/​WidgetHeader.tsx Reduces the selector skeleton height to 22.
.changeset/​@itwin-tree-widget-react-fancy-ears-burn.md Records the fix for a tree-widget patch release.

Review effort: Balanced

@MartynasStrazdas
MartynasStrazdas enabled auto-merge (squash) November 23, 2026 11:52
@MartynasStrazdas

Copy link
Copy Markdown
Contributor Author

/update-screenshots

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i guess the darwin screenshots got in by accident?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tree widget: Layout shift as the widget loads

3 participants