-
Notifications
You must be signed in to change notification settings - Fork 6
feat: add tree view component #803
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
base: develop
Are you sure you want to change the base?
Conversation
…eView component structure with Divider
…nd update TreeView component for keyboard navigation support
…nd getUpdateItemsRefMap, and deprecate CollapsibleList component
…ctor divider styles
…r improved tooltip handling
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Adds a new TreeView component with associated types, styling, and node rendering, while deprecating the older CollapsibleList and refactoring related components (ActionMenu and Tooltip) to integrate shared utilities.
- Introduce
TreeView
(export, types, component, node content, SCSS) - Deprecate
CollapsibleList
in favor ofTreeView
- Refactor
TrailingItem
,ActionMenuItem
, andTooltip
to share the new text-truncation hook
Reviewed Changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 4 comments.
Show a summary per file
File | Description |
---|---|
src/Shared/Components/index.ts | Export the new TreeView |
src/Shared/Components/TreeView/types.ts | Define TreeNode , TreeItem , TreeHeading , and TreeViewProps |
src/Shared/Components/TreeView/index.ts | Re-export TreeView and its types |
src/Shared/Components/TreeView/TreeViewNodeContent.tsx | Render node titles with optional truncation‐tooltip wrapping |
src/Shared/Components/TreeView/TreeView.scss | Styles for tree items, dividers, and hover states |
src/Shared/Components/TreeView/TreeView.component.tsx | Core TreeView logic (rendering, keyboard nav, animations) |
src/Shared/Components/TrailingItem/types.ts | New TrailingItemType union |
src/Shared/Components/TrailingItem/index.ts | Export TrailingItem |
src/Shared/Components/TrailingItem/TrailingItem.component.tsx | Render the different trailing item types |
src/Shared/Components/CollapsibleList/CollapsibleList.component.tsx | Mark CollapsibleList as deprecated |
src/Shared/Components/ActionMenu/types.ts | Remove inline trailing-item types; import from TrailingItem |
src/Shared/Components/ActionMenu/ActionMenuItem.tsx | Delegate trailing-item rendering to TrailingItem |
src/Common/Tooltip/index.ts | Export the new useIsTextTruncated hook |
src/Common/Tooltip/UseIsTextTruncated.ts | Extract text-overflow detection into a hook |
src/Common/Tooltip/Tooltip.tsx | Simplify tooltip logic to use useIsTextTruncated |
… link interactions
…te and improve click handling
… threat count handling
…date props for better state management
…n-fe-common-lib into feat/tree-view
…common-lib into feat/tree-view
Description
Adds a new TreeView component with associated types, styling, and node rendering, while deprecating the older CollapsibleList and refactoring related components (ActionMenu and Tooltip) to integrate shared utilities.
TreeView
(export, types, component, node content, SCSS)CollapsibleList
in favor ofTreeView
TrailingItem
,ActionMenuItem
, andTooltip
to share the new text-truncation hookType of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist