mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-05-03 05:20:36 +00:00
268732f610
- Folder rows now surface a tri-state checkbox derived from descendant selection; clicking / shift-clicking / toggling a folder flips the entire subtree in one gesture, including descendants of a collapsed folder. - Files get a new onOpen prop, fired on double-click and Enter; directories keep expanding/collapsing. The resources page wires it to the existing download flow. - Drop on a file row forwards to its parent folder so the whole folder acts as a single drop zone (Finder/Explorer semantics), with a shared drag-enter counter so highlight stays stable when moving the cursor between sibling rows. - Extract pure data layer into useFileManagerData and pure selection reducers (computeRowClickSelection / computeToggleSelection / computeToggleSelectAll / computeDirSelectionState) into file-manager-utils; bundle per-tree row props into display / handlers so memoized rows stay reference-stable across parent re-renders, keyboard expansion, and selection changes. Co-authored-by: Cursor <cursoragent@cursor.com>