Skip to content

Tree view component #900

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 39 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
c227818
WIP creating a TreeView component
matt-aitken Feb 8, 2024
0837e4b
Very simple tree displaying
matt-aitken Feb 8, 2024
c5264a6
WIP on TreeView types
matt-aitken Feb 9, 2024
3c2ef0a
The state is computing properly
matt-aitken Feb 9, 2024
b3f05f9
Improved the state and types
matt-aitken Feb 9, 2024
0f3b80c
Virtualized rendering
matt-aitken Feb 9, 2024
67679c8
Added state inside the useTreeState hook
matt-aitken Feb 9, 2024
5701554
Selection working
matt-aitken Feb 9, 2024
798bce6
Deselecting nodes
matt-aitken Feb 9, 2024
ff0bb2d
Toggle selection
matt-aitken Feb 9, 2024
e088241
Expanding/collapsing nodes
matt-aitken Feb 9, 2024
4ca923d
Get notifications when changes are made
matt-aitken Feb 9, 2024
e7358e6
Only try show the visible items
matt-aitken Feb 9, 2024
c46a707
Experiment to try getting cell animations working
matt-aitken Feb 9, 2024
2c38d52
Renamed hook to useTree
matt-aitken Feb 9, 2024
c96330f
Keyboard navigation is working
matt-aitken Feb 9, 2024
2fd20b7
Proper focus support
matt-aitken Feb 9, 2024
830f124
Nice selection of the parent by pressing left
matt-aitken Feb 9, 2024
6610b6c
End selects the last visible node
matt-aitken Feb 9, 2024
2103fee
Showing how the TreeView can accept a selected id and expanded ids fr…
matt-aitken Feb 9, 2024
348f8b8
The useTree hook now uses selectedId and collapsedIds to make it easi…
matt-aitken Feb 11, 2024
d4400c1
Check the inputs are valid before applying them, ignore if they’re not
matt-aitken Feb 11, 2024
ee1d762
Don’t allow a selected node to be hidden by collapsed parents
matt-aitken Feb 11, 2024
6d81693
Nicer API for the onChange callback
matt-aitken Feb 11, 2024
24b4483
Supports animated collapsing of the tree view
matt-aitken Feb 11, 2024
b6850f4
Nice smooth scrolling
matt-aitken Feb 11, 2024
b8831da
Removed logs
matt-aitken Feb 11, 2024
c9c13bb
Removed unused key
matt-aitken Feb 11, 2024
62796e3
Remove intricate estimation
matt-aitken Feb 11, 2024
a427ee4
StandardTreeView has lots of good defaults baked in
matt-aitken Feb 11, 2024
3932d73
Allow passing of parent class name in
matt-aitken Feb 11, 2024
50de20e
Work on scrolling to the node… needs a bit of a reshuffle
matt-aitken Feb 11, 2024
38b882b
Just make the TreeView better rather than adding StandardTreeView
matt-aitken Feb 11, 2024
307cd64
Renamed rowVirtualizer to virtualizer
matt-aitken Feb 11, 2024
28c8539
Move the virrtualizer into the hook
matt-aitken Feb 11, 2024
6af178d
Scrolling to selection is working
matt-aitken Feb 11, 2024
3230057
Added filtering
matt-aitken Feb 12, 2024
9d3db70
Merge branch 'main' into tree-view-component
matt-aitken Feb 12, 2024
c05e929
Merge branch 'main' into tree-view-component
matt-aitken Feb 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading