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
7 changes: 5 additions & 2 deletions lib/features/workspace/data_grid_groupings_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,11 @@ class _DataGridGroupingsViewState
@override
material.Widget build(material.BuildContext context) {
if (widget.columns.isEmpty || widget.rows.isEmpty) {
return material.Center(
child: const Text('No data available for grouping.').muted(),
return const material.Center(
child: QueryaEmptyState(
title: 'No data to group',
description: 'Run a query that returns rows, then group them here.',
),
);
}

Expand Down
2 changes: 1 addition & 1 deletion test/features/workspace/data_grid_groupings_view_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void main() {
);
await tester.pumpAndSettle();

expect(find.text('No data available for grouping.'), findsOneWidget);
expect(find.text('No data to group'), findsOneWidget);
});

testWidgets('renders grouping categories and allows aggregation switching', (tester) async {
Expand Down
Loading