codeant-ai-for-open-source[bot] commented on PR #38897:
URL: https://github.com/apache/superset/pull/38897#issuecomment-4139229931
## **Sequence Diagram**
This diagram shows how the SQL Lab table tree now handles node toggling when
a search term is active, ensuring children appear on the first click for opened
nodes and collapsed schemas remain closed across async data reloads.
```mermaid
sequenceDiagram
participant User
participant TableExploreTree
participant Tree
participant Backend
User->>TableExploreTree: Type search term
TableExploreTree->>Tree: Apply search filter and auto expand matches
User->>TableExploreTree: Click schema or table node
TableExploreTree->>Tree: Read current node open state
TableExploreTree->>TableExploreTree: Update manually opened map
alt Node is opening
TableExploreTree->>Backend: Fetch children for node
Backend-->>TableExploreTree: Return children data
TableExploreTree->>Tree: Update tree data
TableExploreTree->>Tree: Reopen all manually opened nodes
else Node is closing
TableExploreTree->>TableExploreTree: Mark node as closed in map
TableExploreTree->>Tree: Keep node collapsed after data changes
end
```
---
*Generated by [CodeAnt AI](https://codeant.ai)*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]