Skip to content

feat(tree): support active selection highlighting in SduiTreeBuilder for extension drivers (#639) - #642

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/639-sdui-tree-selection-highlight
Aug 30, 2026
Merged

feat(tree): support active selection highlighting in SduiTreeBuilder for extension drivers (#639)#642
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/639-sdui-tree-selection-highlight

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

Closes #639

Brings active selection highlighting to SDUI schema trees used by extension database drivers (ClickHouse, DuckDB, etc.), matching native tree selection visual styling (_PgTreeRow).

Changes

  1. SduiTreeBuilder (lib/core/sdui/sdui_tree_builder.dart):
    • Added selectedNodeId and isNodeSelected predicate parameters.
    • Wrapped node rows in material.AnimatedContainer with 120ms QueryaMotion.fast duration.
    • Applied active selection design tokens: subtle primary background tint (alpha: 0.12), primary border outline (alpha: 0.35), and semibold typography (w600).
  2. _ExtensionConnectionTile (lib/features/connections/connections_panel_extension.dart):
    • Extracted selectedExtensionObject and selectedConnectionId from _ConnectionsTreeSelectionScope.
    • Forwarded isNodeSelected predicate matching active database and table/view names.
  3. Tests (test/core/sdui/sdui_builders_test.dart):
    • Added widget tests validating active selection styling for selectedNodeId and isNodeSelected.

@github-actions github-actions Bot added enhancement New feature or request frontend Theme parser epic label: frontend ui User interface components and widgets labels Aug 30, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 3f07b5b into dev Aug 30, 2026
4 checks passed
This was referenced Aug 30, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/639-sdui-tree-selection-highlight branch August 30, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request frontend Theme parser epic label: frontend ui User interface components and widgets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant