Repository navigation
Release packages - #1863
Merged
Merged
Release packages#1863
Conversation
Contributor
There was a problem hiding this comment.
Tree-Widget benchmark
| Benchmark suite | Current: aac3a11 | Previous: 73b443f | Deviation | Status |
|---|---|---|---|---|
models tree 50k 3D elements search > get search paths |
849 ms |
576 ms |
47.40% |
🚨 |
models tree 50k 3D elements search > get search paths (P95 of main thread blocks) |
55 ms |
32 ms |
71.88% |
〰️ |
models tree 50k 3D elements search > load hierarchy from search paths |
85901 ms |
79630 ms |
7.88% |
〰️ |
models tree 50k 3D elements search > load hierarchy from search paths (P95 of main thread blocks) |
39 ms |
30 ms |
30% |
〰️ |
models tree 50k categories > collect nodes |
2476 ms |
1697 ms |
45.90% |
🚨 |
models tree 50k categories > collect nodes (P95 of main thread blocks) |
101 ms |
62 ms |
62.90% |
〰️ |
models tree 50k categories > validate initial visibility |
2507 ms |
1725 ms |
45.33% |
🚨 |
models tree 50k categories > validate initial visibility (P95 of main thread blocks) |
220 ms |
127 ms |
73.23% |
🚨 |
models tree 50k categories > change visibility |
203 ms |
165 ms |
23.03% |
〰️ |
models tree 50k categories > change visibility (P95 of main thread blocks) |
57 ms |
50 ms |
14.00% |
〰️ |
models tree 50k categories > validate changed visibility |
2685 ms |
1801 ms |
49.08% |
🚨 |
models tree 50k categories > validate changed visibility (P95 of main thread blocks) |
23 ms |
0 ms |
2300% |
〰️ |
models tree 50k 3D elements > collect nodes |
33752 ms |
30883 ms |
9.29% |
〰️ |
models tree 50k 3D elements > collect nodes (P95 of main thread blocks) |
52 ms |
31 ms |
67.74% |
〰️ |
models tree 50k 3D elements > validate initial visibility |
1418 ms |
1258 ms |
12.72% |
🚨 |
models tree 50k 3D elements > validate initial visibility (P95 of main thread blocks) |
0 ms |
0 ms |
0% |
🟰 |
models tree 50k 3D elements > change model visibility |
110 ms |
75 ms |
46.67% |
〰️ |
models tree 50k 3D elements > change model visibility (P95 of main thread blocks) |
0 ms |
0 ms |
0% |
🟰 |
models tree 50k 3D elements > validate changed model visibility |
2147 ms |
1747 ms |
22.90% |
🚨 |
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 |
467 ms |
346 ms |
34.97% |
🚨 |
models tree 50k 3D elements > change category node visibility (P95 of main thread blocks) |
41 ms |
0 ms |
4100% |
〰️ |
models tree 50k 3D elements > validate changed category visibility |
1683 ms |
1153 ms |
45.97% |
🚨 |
models tree 50k 3D elements > validate changed category visibility (P95 of main thread blocks) |
40 ms |
0 ms |
4000% |
〰️ |
models tree 50k 3D elements > validate per-model category override |
1552 ms |
1073 ms |
44.64% |
🚨 |
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 |
46 ms |
34 ms |
35.29% |
〰️ |
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 |
2304 ms |
1663 ms |
38.54% |
🚨 |
models tree 50k 3D elements > validate changed element visibility (P95 of main thread blocks) |
60 ms |
33 ms |
81.82% |
〰️ |
models tree 50k 3D child elements with different categories > collect nodes |
43310 ms |
38824 ms |
11.55% |
🚨 |
models tree 50k 3D child elements with different categories > collect nodes (P95 of main thread blocks) |
53 ms |
49 ms |
8.16% |
〰️ |
models tree 50k 3D child elements with different categories > validate initial visibility |
2253 ms |
1647 ms |
36.79% |
🚨 |
models tree 50k 3D child elements with different categories > validate initial visibility (P95 of main thread blocks) |
29 ms |
0 ms |
2900% |
〰️ |
models tree 50k 3D child elements with different categories > change visibility |
46 ms |
51 ms |
-9.80% |
〰️ |
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 |
5677 ms |
3762 ms |
50.90% |
🚨 |
models tree 50k 3D child elements with different categories > validate changed visibility (P95 of main thread blocks) |
133 ms |
62 ms |
114.52% |
🚨 |
models tree 50k 3D child elements with different categories and excluded classes > collect nodes |
43135 ms |
39124 ms |
10.25% |
🚨 |
models tree 50k 3D child elements with different categories and excluded classes > collect nodes (P95 of main thread blocks) |
52 ms |
32 ms |
62.50% |
〰️ |
models tree 50k 3D child elements with different categories and excluded classes > validate initial visibility |
2692 ms |
1918 ms |
40.35% |
🚨 |
models tree 50k 3D child elements with different categories and excluded classes > validate initial visibility (P95 of main thread blocks) |
116 ms |
0 ms |
11600% |
🚨 |
models tree 50k 3D child elements with different categories and excluded classes > change visibility |
45 ms |
45 ms |
0% |
🟰 |
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 |
7203 ms |
4775 ms |
50.85% |
🚨 |
models tree 50k 3D child elements with different categories and excluded classes > validate changed visibility (P95 of main thread blocks) |
92 ms |
45 ms |
104.44% |
〰️ |
categories tree 50k subCategories search > get search paths |
959 ms |
676 ms |
41.86% |
🚨 |
categories tree 50k subCategories search > get search paths (P95 of main thread blocks) |
79 ms |
66 ms |
19.70% |
〰️ |
categories tree 50k subCategories search > load hierarchy from search paths |
5757 ms |
3751 ms |
53.48% |
🚨 |
categories tree 50k subCategories search > load hierarchy from search paths (P95 of main thread blocks) |
62 ms |
35 ms |
77.14% |
〰️ |
categories tree 50k subCategories > collect nodes |
5489 ms |
3622 ms |
51.55% |
🚨 |
categories tree 50k subCategories > collect nodes (P95 of main thread blocks) |
47 ms |
24 ms |
95.83% |
〰️ |
categories tree 50k subCategories > validate initial visibility |
1194 ms |
951 ms |
25.55% |
🚨 |
categories tree 50k subCategories > validate initial visibility (P95 of main thread blocks) |
28 ms |
0 ms |
2800% |
〰️ |
categories tree 50k subCategories > change visibility |
344 ms |
324 ms |
6.17% |
〰️ |
categories tree 50k subCategories > change visibility (P95 of main thread blocks) |
23 ms |
0 ms |
2300% |
〰️ |
categories tree 50k subCategories > validate changed visibility |
1052 ms |
822 ms |
27.98% |
🚨 |
categories tree 50k subCategories > validate changed visibility (P95 of main thread blocks) |
28 ms |
23 ms |
21.74% |
〰️ |
categories tree 50k categories > collect nodes |
90274 ms |
84174 ms |
7.25% |
〰️ |
categories tree 50k categories > collect nodes (P95 of main thread blocks) |
59 ms |
34 ms |
73.53% |
〰️ |
categories tree 50k categories > validate initial visibility |
6288 ms |
4736 ms |
32.77% |
🚨 |
categories tree 50k categories > validate initial visibility (P95 of main thread blocks) |
103 ms |
75 ms |
37.33% |
〰️ |
categories tree 50k categories > change visibility |
808 ms |
664 ms |
21.69% |
🚨 |
categories tree 50k categories > change visibility (P95 of main thread blocks) |
56 ms |
47 ms |
19.15% |
〰️ |
categories tree 50k categories > validate changed visibility |
5738 ms |
4223 ms |
35.87% |
🚨 |
categories tree 50k categories > validate changed visibility (P95 of main thread blocks) |
33 ms |
28 ms |
17.86% |
〰️ |
categories tree 50k categories and excluded classes > collect nodes |
95230 ms |
85039 ms |
11.98% |
🚨 |
categories tree 50k categories and excluded classes > collect nodes (P95 of main thread blocks) |
171 ms |
33 ms |
418.18% |
🚨 |
categories tree 50k categories and excluded classes > validate initial visibility |
7114 ms |
5006 ms |
42.11% |
🚨 |
categories tree 50k categories and excluded classes > validate initial visibility (P95 of main thread blocks) |
143 ms |
100 ms |
43% |
〰️ |
categories tree 50k categories and excluded classes > change visibility |
872 ms |
647 ms |
34.78% |
🚨 |
categories tree 50k categories and excluded classes > change visibility (P95 of main thread blocks) |
70 ms |
48 ms |
45.83% |
〰️ |
categories tree 50k categories and excluded classes > validate changed visibility |
8062 ms |
5591 ms |
44.20% |
🚨 |
categories tree 50k categories and excluded classes > validate changed visibility (P95 of main thread blocks) |
31 ms |
25 ms |
24% |
〰️ |
classifications tree 50k classifications search > get search paths |
2256 ms |
1541 ms |
46.40% |
🚨 |
classifications tree 50k classifications search > get search paths (P95 of main thread blocks) |
200 ms |
158 ms |
26.58% |
〰️ |
classifications tree 50k classifications search > load hierarchy from search paths |
48533 ms |
43096 ms |
12.62% |
🚨 |
classifications tree 50k classifications search > load hierarchy from search paths (P95 of main thread blocks) |
27 ms |
0 ms |
2700% |
〰️ |
classifications tree 50k classifications > collect nodes |
18157 ms |
14209 ms |
27.79% |
🚨 |
classifications tree 50k classifications > collect nodes (P95 of main thread blocks) |
62 ms |
25 ms |
148% |
〰️ |
classifications tree 50k classifications > validate initial visibility |
9954 ms |
6387 ms |
55.85% |
🚨 |
classifications tree 50k classifications > validate initial visibility (P95 of main thread blocks) |
6673 ms |
4234 ms |
57.61% |
🚨 |
classifications tree 50k classifications > change visibility |
152 ms |
121 ms |
25.62% |
〰️ |
classifications tree 50k classifications > change visibility (P95 of main thread blocks) |
0 ms |
0 ms |
0% |
🟰 |
classifications tree 50k classifications > validate changed visibility |
3643 ms |
2504 ms |
45.49% |
🚨 |
classifications tree 50k classifications > validate changed visibility (P95 of main thread blocks) |
67 ms |
56 ms |
19.64% |
〰️ |
classifications tree 50k classifications and excluded classes > collect nodes |
18674 ms |
14812 ms |
26.07% |
🚨 |
classifications tree 50k classifications and excluded classes > collect nodes (P95 of main thread blocks) |
44 ms |
23 ms |
91.30% |
〰️ |
classifications tree 50k classifications and excluded classes > validate initial visibility |
12409 ms |
6981 ms |
77.75% |
🚨 |
classifications tree 50k classifications and excluded classes > validate initial visibility (P95 of main thread blocks) |
4911 ms |
4734 ms |
3.74% |
〰️ |
classifications tree 50k classifications and excluded classes > change visibility |
151 ms |
121 ms |
24.79% |
〰️ |
classifications tree 50k classifications and excluded classes > change visibility (P95 of main thread blocks) |
24 ms |
0 ms |
2400% |
〰️ |
classifications tree 50k classifications and excluded classes > validate changed visibility |
3484 ms |
2393 ms |
45.59% |
🚨 |
classifications tree 50k classifications and excluded classes > validate changed visibility (P95 of main thread blocks) |
77 ms |
38 ms |
102.63% |
〰️ |
This comment was automatically generated by workflow using github-action-benchmark.
imodeljs-admin
force-pushed
the
changeset-release/master
branch
from
November 6, 2026 15:05
bb3f128 to
e567f9c
Compare
JonasDov
approved these changes
Nov 6, 2026
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.
Releases
@itwin/tree-widget-react@4.0.0
Major Changes
#1795: Tree Widget v4 is here. This release introduces a new design system, powerful ways to explore and customize iModel content, more reliable visibility controls, and broad performance and stability improvements. Here is why you should upgrade.
Why upgrade?
1. A modern, accessible design system
Tree Widget has been rebuilt with MUI and StrataKit, bringing it in line with the latest iTwin application design system. The new foundation provides a cleaner visual language, accessible labels, consistent keyboard and focus behavior, and semantic controls supplied by MUI and StrataKit.
2. New features
Tree Widget v4 introduces several new features for both end users and applications building custom tree workflows:
Flexible node actions can display frequently used actions inline, place additional commands in an overflow menu, and provide contextual actions when a user opens a node's context menu.
Clearer loading, warning, and error states with skeleton placeholders, actionable hierarchy warnings, and a Retry action when loading fails.
A new Classifications tree for applications that work with classification systems, including selection, visibility controls, node actions, label editing, and search.
Easier integration with different viewports. Tree Widget is now less tightly coupled to the iTwin.js viewport, making it much easier to integrate with different viewport implementations (e.g., Unity).
More configurable Models and Categories hierarchies. New options provide greater control over the contents of each tree. For example, the Categories tree can now include element nodes.
New customization building blocks including exported node type guards, renderer props, actions, and icons.
3. Reliable and consistent visibility controls
Visibility controls now behave consistently across complete, nested, and filtered hierarchies:
4. Performance improvements
Version 4 includes extensive performance work across hierarchy queries, search, visibility calculations, and rendering. These improvements reduce repeated work when loading and expanding large trees, searching Models and Categories trees, and updating visibility throughout nested content.
5. Bug fixes and improved resilience
In addition to the larger improvements above, v4 resolves issues that could affect everyday use of v3. Some highlights include:
These are only a few of the bug fixes and stability improvements included in v4.
Breaking changes and migrating from v3
Migrating to v4 should be straightforward for most applications. In the vast majority of cases, only sections 1–3 of the migration guide are needed. Applications with more extensive customization or direct use of lower-level components may also require changes from sections 4–8. The guide is comprehensive: it covers every breaking change and provides instructions and examples for migrating each one.
Application setup
@itwin/itwinui-react; rendering now depends on compatible MUI and StrataKit themes and peer dependencies. (migration, PRs: #1169, #1320, #1748)@itwin/presentation-components6, MUI, and StrataKit—and an ESM-compatible application and test setup.@stratakit/foundationsis a new peer dependency that the application must install and configure. The package no longer publishes a CommonJS build. (migration, PRs: #1642, #1748, #1811, #1813, #1835, #1843)TreeWidgetContextProvider. TheTreeWidgetclass and its initialization, termination, and localization helpers were removed.TreeWidgetContextProvider,createTreeWidget, andTreeWidgetComponentnow receive localization and optional logging services, and the widget APIs add the provider automatically. (migration, PRs: #1303, #1617, #1783)onFeatureUsedwas removed from standard header-button props, and custom-tree telemetry is now supplied throughTelemetryContextProvider. (migration, PRs: #1783)treeLabel. The label is required by standard tree components,TreeRenderer, andVisibilityTreeRenderer, and widget tree definitions receive it through their render callback. (migration, PRs: #1495)densityandgetSchemaContextprops were removed.densityis no longer accepted by tree components, header-button renderer props, orTreeDefinition.renderprops, and the schema context is now created internally. (migration, PRs: #1186, #1331)Widget and tree composition
SelectableTreename was reused. The v3 tree selectorSelectableTreeis nowTreeWidgetComponent, and the v3 header containerTreeWithHeaderis nowSelectableTree.SelectableTreeDefinitionwas replaced byTreeDefinition, whosegetLabelreceives{ standardLabels }and whoserenderreceivestreeLabeland, for searchable definitions,searchText. (migration, PRs: #1186)TreeWithHeader.filteringPropswas removed, widget-header search is now controlled byTreeDefinition.isSearchable, and directly rendered standard trees accept search text throughsearchText. (migration, PRs: #1186, #1289)useModelsTreeanduseCategoriesTreereturntreePropsandgetTreeItemPropsinstead ofmodelsTreePropsorcategoriesTreePropstogether withrendererProps. (migration, PRs: #1540)models.CategoriesTreeHeaderButtonPropsgained a requiredmodelsproperty, andonCategoriesFilterednow receives{ categories, models }instead of a categories array.useCategoriesTreeButtonPropssupplies both. (migration, PRs: #1265)Tree renderer and action APIs
getTreeItemProps. The single callback supersedes the v3getLabel,getIcon, andgetSublabelrenderer props through itslabel,decorations, anddescriptionresults. ItsonClick,onKeyDown, andonDoubleClickhandlers supersede the corresponding v3 node handlers. Callback nodes now useTreeNodefrom@itwin/presentation-hierarchies-reactv2, and click handlers no longer receive the v3isSelectedargument. ThefilterButtonsVisibility,size, andenableVirtualizationrenderer props were removed without replacement. (migration, PRs: #1540, #1557)getActionscallback was replaced bygetInlineActions,getMenuActions, andgetContextMenuActions. These callbacks receive{ targetNode, selectedNodes }and return React elements: up to twoTreeActionBaseelements inline, andTreeActionBaseor divider elements in the menus. Standard tree components additionally supply the current renderer props as a second argument; callbacks passed directly toTreeRendererorVisibilityTreeRendererreceive only the action context. (migration, PRs: #1394, #1485, #1522, #1534)onFilterClickrenderer prop is nowfilterHierarchyLevel. (migration, PRs: #1557)getCheckboxStateandonCheckboxClickedbecamegetVisibilityButtonStateandonVisibilityButtonClick, the"on"and"off"states became"visible"and"hidden", and the click callback now receives the node's current state instead of the state to apply. (migration, PRs: #1320)Search APIs
filterbecamesearchText,getFilteredPathsbecamegetSearchPaths, andFilterLimitExceededErrorbecameSearchLimitExceededError. Localized keys under*tree.filteringmoved to*tree.search, includingtooManySearchMatchesandunknownSearchError. (migration, PRs: #1539)getSearchPathsandgetSubTreePathsnow returnHierarchySearchTree[]instead of the v3HierarchyFilteringPath[]representation, and the path optionautoExpandbecamereveal. Configuration APIs that accept full EC class names now useEC.FullClassNameDotNotationand require dot notation such asBisCore.GeometricElement3d; colon notation is no longer accepted. (migration, PRs: #1636)highlightobject prop onTreeandVisibilityTreewas replaced by thehighlightTextstring prop. The tree props returned by the standard-tree hooks use the same name. (migration, PRs: #1408)emptyTreeContent. The v3noDataMessageprop onTree,VisibilityTree, standard tree components, and standard-tree hook results was renamed toemptyTreeContent. (migration, PRs: #1214)Visibility APIs
TreeWidgetViewport. Models, Categories, and Classifications tree components accept an optionalTreeWidgetViewportand otherwise use AppUI's active viewport. Hooks and header-button APIs that previously accepted an iTwin.jsViewportnow use the narrower abstraction, andcreateTreeWidgetViewportadapts an iTwin.js viewport. (migration, PRs: #1466)HierarchyVisibilityHandlernow extendsDisposable, and its disposal API changed fromdispose()to[Symbol.dispose](). (migration, PRs: #1320)ModelsTreeVisibilityHandlerOverridescallbacks now useget*VisibilityStatusandchange*VisibilityStatusnames, accept entity-specificId64Argparameters, and allowmodelIdto be omitted from category callbacks. (migration, PRs: #1401, #1403)VisibilityStatus.tooltipwas removed from custom hierarchy visibility handlers. Renderer-specific visibility button state may still supply a tooltip. (migration, PRs: #1286)Hierarchy
enableWithCountsgrouping value is nowenable-with-counts. Omitted settings continue to preserve the v3 defaults. (migration, PRs: #1738)Minor Changes
#1795: #### Search and loading
TreeDefinition.isSearchable, and the debounced value is delivered throughsearchText. The UI includes no-results, too-many-results, and instance-focus warning states. (PRs: #1186, #1235, #1240, #1289)SkeletonTreelets custom trees use the same placeholder. (PRs: #1252, #1299, #1504)useCategoriesTree,useModelsTree, anduseClassificationsTreeacceptsearchLimitas a number or"unbounded". Searches supplied touseClassificationsTreeDefinitionsupport the same values throughsearch.limit. (PRs: #1636)Customization
ModelsTreeNode,CategoriesTreeNode, andClassificationsTreeNodenamespaces provide type guards for individual node types and agetTypehelper for identifying any supported type from node metadata. (PRs: #1548, #1742)Tree.RootandTree.Itemelements. (PRs: #1540)TreeActionBaseandTreeActionBaseAttributesdefine custom actions,TreeNodeRenameAction,TreeNodeFilterAction, andVisibilityActionprovide the standard ones, andModelsTreeIcon,CategoriesTreeIcon,ClassificationsTreeIcon,IModelContentTreeIcon, andExternalSourcesTreeIconrender the standard node icons. (PRs: #1534, #1557)Treeaccepts an optionalonNodeExpandedcallback, and the tree props returned byuseModelsTree,useCategoriesTree, anduseClassificationsTreeinclude it. (PRs: #1804)Hierarchies
Configurable Categories tree hierarchy. The new
hierarchyConfigprop controls which nodes are included in a Categories tree:elements.nodesincludes or excludes element nodes. Element nodes are excluded by default.elements.excludedClassesomits elements whose class is, or derives from, one of the supplied EC class names. Descendants of omitted elements are also omitted from the hierarchy. This option is available whenelements.nodesis"include".categories.withoutElementsincludes or excludes categories that contain no elements. Empty categories are excluded by default.subCategories.nodesincludes or excludes sub-category nodes. Sub-category nodes are included by default.Excluding elements changes only the hierarchy: those elements may still be rendered in the viewport. The visibility handler therefore accounts for omitted elements when calculating ancestor state and updates omitted descendants when an ancestor's visibility changes. (PRs: #1247, #1265, #1735, #1738)
Models tree hierarchies can exclude element classes. Set
hierarchyConfig.elements.excludedClassesto omit elements whose class is, or derives from, one of the supplied EC class names. Descendants of an omitted element are omitted from the hierarchy as well. (PRs: #1735)New Classifications tree. v4 introduces a complete Classifications tree for displaying classification tables, classifications, and the 3D geometric elements assigned to them:
ClassificationsTreeComponentprovides the ready-to-use tree with selection, visibility controls, node actions, label editing, and search.hierarchyConfig.rootClassificationSystemCodeselects the classification system to display, whilehierarchyConfig.elements.excludedClassesomits specified element classes and their subclasses.visibilityHandlerConfig.classificationToCategoriesRelationshipSpecificationcan specify a custom classification-to-category relationship.useClassificationsTreeexposes the building blocks for custom rendering.useClassificationsTreeDefinitionreturns agetHierarchyDefinition({ imodelAccess })callback that creates the hierarchy definition for fully custom trees, can operate on one or multiple versions of an iModel, and reports matching paths throughonSearchPathsChanged.@beta.(PRs: #1331, #1334, #1342, #1361, #1380, #1524, #1529, #1536, #1579, #1610, #1626, #1710, #1790, #1835)
Patch Changes
#1795: #### Search
Visibility handling
CategoriesTreeComponentno longer logs a "no current row" error while loading category data, interrupted visibility queries no longer crash the application, and transient element IDs are not sent to backend visibility queries. (PRs: #1505, #1543, #1728)Hierarchies
Loading and extensibility
data-visibility-stateattribute for styling, testing, and inspection. (PRs: #1788)Performance improvements
v4 loads the Models tree significantly faster and keeps the UI responsive, with the largest gains in large iModels.
What was improved
Faster loading
Load times were measured for the Models tree on more than 40 real-world iModels of various sizes, opened both locally and through a remote backend. Each iModel was loaded three times in both v3 and v4, and its fastest time was kept. v3 and v4 show the total of those times across all iModels, and negative values mean v4 is faster. Worst slowdown and Best improvement show the largest change for a single iModel.
Initial view: loading the nodes displayed when the tree first opens.
First branch: expanding the first node at every level, from the root down to elements. Faster iModels and Slower iModels show how many iModels loaded faster or slower in v4.
More responsive UI
In v3, users could encounter the UI being blocked for 400 ms or more at a time while visibility was updated in large hierarchies, making the tree feel sluggish and unresponsive. In v4, the longest measured block is around 110 ms, and the UI should never be blocked for long periods of time.
The following PRs improve tree loading, visibility, and search performance:
#1280, #1492, #1527, #1532, #1537, #1571, #1572, #1578, #1584, #1586, #1588, #1593, #1597, #1599, #1600, #1610, #1620, #1629, #1646, #1652, #1661, #1662, #1667, #1673, #1680, #1681, #1682, #1726, #1730, #1731, #1794, #1799, #1801, #1804 and #1847.