ameliorate
ameliorate copied to clipboard
Search for node in topic
Is your feature request related to a problem? Please describe. When there are a lot of nodes in a topic, it can be hard to find a specific one.
Describe the solution you'd like
Search bar to find nodes by their text.
- Also activate search via ctrl + k
- Search results should be a line that includes
- node type
- node text
- button for panning to the node if it's currently displaying
- button for "filter to this node and neighbors" (shift+click to add these to the current filter, rather than replace)
Questions to answer
- what to do on select? probably pane if node is displaying, else add node + neighbors to show nodes and pane
- maybe also "select this node" without viewing in diagram?
Describe alternatives you've considered
Additional context
Technical ideas
- probably google react command palette for some UX, there's probably a good component out there
- probably create a full-text search by mapping over all the topic's nodes and using each node's text + type