Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/core/sdui/sdui_tree_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ class SduiTreeBuilderState extends material.State<SduiTreeBuilder> {
final isLoading = _loading.contains(node.id);
final nodeKind = _resolveNodeKind(node);
final isBrowsable = nodeKind == 'table' || nodeKind == 'view';
// Same hierarchy as native trees (#476 / #497) — no separate sduiNode size.
final iconSize =
canExpand ? QueryaIconSizes.treeGroup : QueryaIconSizes.treeLeaf;
final iconColor = isBrowsable ? primary.withValues(alpha: 0.5) : muted;
Expand Down
3 changes: 0 additions & 3 deletions lib/core/ui/querya_icon_sizes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ abstract final class QueryaIconSizes {
/// Inline tree error indicator.
static const double treeError = 14;

/// SDUI explorer tree nodes.
static const double sduiNode = 16;

/// Menu / dialog leading icons.
static const double menuLeading = 18;
}
6 changes: 6 additions & 0 deletions test/core/ui/querya_icons_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,10 @@ void main() {
QueryaIconSizes.sidebarConnectionIcon,
);
});

test('SDUI trees share native treeGroup/treeLeaf sizes (no sduiNode)', () {
// Guards against reintroducing a dead parallel size token (#497).
expect(QueryaIconSizes.treeGroup, 13);
expect(QueryaIconSizes.treeLeaf, 12);
});
}
Loading