Skip to content

fix(tree): rows keep their expanded branches when a connection is added (#1821) - #1830

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
fix/tree-keeps-state
Oct 25, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
fix/tree-keeps-state

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Connection rows had no keys. Each row keeps its expanded databases and tables in widget state, so a connection inserted above another (the list is sorted by name) moved that state onto the wrong row: branches collapsed or opened on the neighbour and the highlight jumped.

Rows and folders are keyed by connection id / folder name, and the list gets a findChildIndexCallback so the state follows the key when the index shifts.

Test: add "Alpha" above "Zeta"; the Zeta row's State object is the same one as before.

Refs #1821

…ands its neighbours' expanded branches to the wrong row (#1821)
@github-actions github-actions Bot added bug Something isn't working connections Database connections, URI parsing, pools ux User experience, keyboard shortcuts and interactions P3 Low priority / Polish & Enhancements labels Oct 25, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 99cf88a into dev Oct 25, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working connections Database connections, URI parsing, pools P3 Low priority / Polish & Enhancements ux User experience, keyboard shortcuts and interactions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant