fix(sidebar): enhance node selection to show details for single nodes - #1235
fix(sidebar): enhance node selection to show details for single nodes#1235Maystern wants to merge 6 commits into
Conversation
Signed-off-by: Maystern <12112910@mail.sustech.edu.cn>
c85c66d to
883d3b2
Compare
|
Thanks for addressing #1197. Two selection cases remain incorrect in this head. |
Signed-off-by: Maystern <12112910@mail.sustech.edu.cn>
d31f9ee to
2147732
Compare
|
Thank you for this — the UI fix itself is good and I would like to merge it. One file needs to come out first, and it is not your logic. What is right. Security-wise it is clean: everything renders through React text nodes, no What needs to change: please drop That file is a build artifact — it carries a "DO NOT EDIT — regenerated by That is our gap, not yours — the file should have been in One small ask: the PR description is currently the empty template. A sentence or two on the behaviour you were fixing would help the next person reading the history — and would have made this review faster. With the artifact removed, this merges. Thanks for the clean test coverage; it is the reason the review was straightforward. |
Signed-off-by: Maystern <12112910@mail.sustech.edu.cn>
…s' into fix/sidebar-show-node-and-details
What does this PR do?
What
Fixes sidebar node selection in the graph UI:
handleSelectPathnever resetselectedNode, so the panel kept showing the last selected file)file_pathcan now open the panel — previously they were dropped by an earlyif (!path) return, so clicking them did nothinghandleSelectPathnow takes an optional node and delegates tohandleNodeClick, so selecting from the sidebar, search results, and the graph all share the same selection/highlighting behaviour (and leaf clicks now highlight direct neighbours, matching graph clicks)Tests
Adds
GraphTab.selection.test.tsx(168 lines, 5 cases) covering leaf clicks, directory clicks, file_path-less search results, clearing selection, and neighbour highlighting — the leaf-click test fails against the previous implementation.Misc
Drops the accidentally committed build artifact
src/ui/embedded_assets.c(generated byscripts/embed-frontend.sh; contains machine-specific asset hashes).Checklist
git commit -s) — required, CI rejectsunsigned commits (DCO, see CONTRIBUTING.md)
make -f Makefile.cbm test)make -f Makefile.cbm lint-ci)