-
Notifications
You must be signed in to change notification settings - Fork 59
Description
📝 Documentation Update Needed
A pull request was recently merged that may require documentation updates.
Source PR
- Repository: kubestellar/ui
- PR: refactor(treeView): implement fixed node styling ui#2295
- Merged: 2026-01-02T09:49:25Z
PR Summary
This PR refactors the TreeView component in the KubeStellar UI to implement fixed node styling, replacing the previous dynamic zoom-based scaling system. The changes simplify the codebase by removing zoom-dependent calculations and establishing consistent, fixed dimensions (146px × 30px) for tree view nodes across all zoom levels.
Changes Overview
- Refactored TreeViewNodes component - Removed dependency on
useZoomStoreand replaced dynamicgetScaledNodeStyle()calls with fixed node styling constants - Updated useTreeViewData hook - Removed zoom-based scaling calculations from layout engine (dagre) and replaced with fixed node dimensions
- Simplified NodeLabel component - Replaced dynamic width/height calculations based on zoom with fixed values for consistent rendering
- Removed zoom store dependencies - Cleaned up dependency arrays in useCallback hooks to remove unused
currentZoomandgetScaledNodeStylereferences - Standardized node dimensions - Established consistent fixed dimensions across the TreeView UI
Files Changed
The PR modifies frontend TreeView components including TreeViewNodes, useTreeViewData hook, and NodeLabel component.
Action Required: The technical documentation writer agent will review this PR and identify specific documentation pages that need updates, then create a PR with the necessary changes.
/cc @technical-doc-writer
AI generated by scan-merged-prs