Skip to content

Tree: Increase child page size to 100 - #23585

Merged
nielslyngsoe merged 12 commits into
v17/devfrom
v17/bugfix/tree-paging-size
Aug 12, 2026
Merged

nielslyngsoe merged 12 commits into
v17/devfrom
v17/bugfix/tree-paging-size

Fix tree item keys for stable rendering

e43777e
Select commit
Loading
Failed to load commit list.
CodeScene Delta Analysis / CodeScene Code Health Review (v17/dev) failed Aug 7, 2026 in 1m 5s

CodeScene PR Check

Quality Gate Failed

Gates Failed
Enforce advisory code health rules (1 file with Excess Number of Function Arguments)

Gates Passed
3 Quality Gates Passed

See analysis details in CodeScene

Reason for failure
Enforce advisory code health rules Violations Code Health Impact
tree-active-manager.test.ts 1 advisory rule 10.00 → 9.69 Suppress

Quality Gate Profile: Clean Code Collective
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.

Details

🚩 Declining Code Health (highest to lowest):

  • Excess Number of Function Arguments tree-active-manager.test.ts: 'is added while the host is connected and removed again when it disconnects'

✅ Improving Code Health:

  • Complex Method tree-item-api-context-base.ts: UmbTreeItemApiContextBase.checkIsActive

Annotations

Check notice on line 302 in src/Umbraco.Web.UI.Client/src/packages/core/tree/tree-item-api/tree-item-api-context-base.ts

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Code Health Review (v17/dev)

✅ No longer an issue: Complex Method

UmbTreeItemApiContextBase.checkIsActive is no longer above the threshold for cyclomatic complexity

This function has many conditional statements (e.g. if, for, while), leading to lower code health. Avoid
adding more conditionals and code to it without refactoring.

Check warning on line 90 in src/Umbraco.Web.UI.Client/src/packages/core/tree/active-manager/tree-active-manager.test.ts

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Code Health Review (v17/dev)

❌ New issue: Excess Number of Function Arguments

'is added while the host is connected and removed again when it disconnects' has 8 arguments, max arguments
= 4

This function has too many arguments, indicating a lack of encapsulation. Avoid adding more arguments.