roslaunch-analyzer / vscode-roslaunch

VSCode Extension for ROS 2 Launch Files
https://marketplace.visualstudio.com/items?itemName=ROSExtensionDevelopers.vscode-roslaunch
MIT License
9 stars 1 forks source link

Define UI for visualize launch files dependencies and select JS/TS libraries to implment it #1

Open yhisaki opened 4 months ago

yhisaki commented 4 months ago

Defiene cool UI for visualizing launch files.

Which library should we select?

yhisaki commented 4 months ago

test file to visualize tree.json

SamratThapa120 commented 4 months ago

https://github.com/vasturiano/react-force-graph?tab=readme-ov-file#:~:text=Force%2Ddirected%20tree%20(DAG%20mode)%20(source)

This react package seems like a good fit for our purpose

yhisaki commented 4 months ago

Thanks! It looks nice!

When we implement with react, vscode-webview-ui-toolkit-samples/hello-world-react-cra will be useful as a reference.

SamratThapa120 commented 4 months ago

@yhisaki This react package is good too. It has search feature too https://github.com/frontend-collective/react-sortable-tree

SamratThapa120 commented 4 months ago

I have been able to integrate this library to the extension, and it works quite well image

SamratThapa120 commented 3 months ago

Screencast from 2024年05月13日 09時52分40秒.webm

Here is what a functioning UI looks like using react-sortable-tree. Features; 1) Collapse other nodes except ancestor nodes for easier viewing, upon clicking a node 2) right click to view the file represented by a node (the file path is wrong right now, so the file is not found in above video) 3) search feature using default vscode search option