Skip to content

Commit 65759dc

Browse files
ui(results): groupings empty state uses the UI kit empty state (#1162)
1 parent f652699 commit 65759dc

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎lib/features/workspace/data_grid_groupings_view.dart‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,11 @@ class _DataGridGroupingsViewState
100100
@override
101101
material.Widget build(material.BuildContext context) {
102102
if (widget.columns.isEmpty || widget.rows.isEmpty) {
103-
return material.Center(
104-
child: const Text('No data available for grouping.').muted(),
103+
return const material.Center(
104+
child: QueryaEmptyState(
105+
title: 'No data to group',
106+
description: 'Run a query that returns rows, then group them here.',
107+
),
105108
);
106109
}
107110

‎test/features/workspace/data_grid_groupings_view_test.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ void main() {
2626
);
2727
await tester.pumpAndSettle();
2828

29-
expect(find.text('No data available for grouping.'), findsOneWidget);
29+
expect(find.text('No data to group'), findsOneWidget);
3030
});
3131

3232
testWidgets('renders grouping categories and allows aggregation switching', (tester) async {

0 commit comments

Comments
 (0)