feat(web-awesome): virtual scrolling for test results tree#684
Open
todti wants to merge 6 commits into
Open
Conversation
…t mode Render only visible rows (~30 items) instead of all 500+ DOM nodes. Uses a lightweight custom virtualizer (no external dependency) with per-item height measurement and scroll-based window computation. The VirtualTreeList component replaces the recursive Tree in split mode, driven by a new flatVirtualRows computed signal that pre-flattens the filtered tree with full rendering data (name, status, duration, etc.). Group expand/collapse and subtree toggle are fully supported.
…st and flattenTreeWithData tests
…web-commons in TrSteps
…tid in VirtualTree
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.
Summary
Treecomponent in the test results panel with a flat virtual list (VirtualTreeList) that renders only visible rows (~20-30 DOM nodes instead of 500+)[data-tree-scroll-container]ancestor)treeSubtreeToggleClassfromweb-componentsso the virtual list reuses the same CSS module class for the hover animationisSubtreeFirstLevelOnlyOpeneddirectly from@allurereport/web-commonsinstead of through a re-export chainNew files
VirtualTree/useVirtualList.tsResizeObserver.VirtualTree/VirtualTreeList.tsxVirtualTree/GroupHeader.tsxVirtualTree/EnvHeader.tsxstores/virtualTree.tsflatVirtualRowscomputed signal — flattensfilteredTreeinto a flat array with full rendering dataTests
test/stores/virtualTree.test.ts— 16 tests forflattenTreeWithData: depths, expand/collapse, idPrefix, leaf/group data, edge casestest/components/VirtualTree/useVirtualList.test.ts— 12 tests for the hook: visible window, scroll shifts,scrollToIndex, height measurement, external scroll container, count-change cache clear