Skip to content

Commit c81f6b9

Browse files
committed
Nicer query blank state
1 parent 76403c7 commit c81f6b9

1 file changed

Lines changed: 19 additions & 9 deletions

File tree

apps/webapp/app/components/query/QueryEditor.tsx

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
PencilIcon,
66
XMarkIcon,
77
} from "@heroicons/react/20/solid";
8+
import { IconChartHistogram } from "@tabler/icons-react";
89
import type { OutputColumnMetadata } from "@internal/clickhouse";
910
import { useFetcher } from "@remix-run/react";
1011
import {
@@ -774,9 +775,12 @@ export function QueryEditor({
774775
</div>
775776
</div>
776777
) : (
777-
<Paragraph variant="small" className="p-4 text-text-dimmed">
778-
Run a query to see results here.
779-
</Paragraph>
778+
<div className="flex h-full flex-col items-center justify-center gap-3">
779+
<IconChartHistogram className="size-16 text-charcoal-650" />
780+
<Paragraph className="max-w-48 text-center text-text-dimmed">
781+
Run a query to visualize the results.
782+
</Paragraph>
783+
</div>
780784
)}
781785
</ClientTabsContent>
782786
<ClientTabsContent
@@ -820,9 +824,12 @@ export function QueryEditor({
820824
/>
821825
</>
822826
) : (
823-
<Paragraph variant="small" className="p-4 text-text-dimmed">
824-
Run a query to visualize results.
825-
</Paragraph>
827+
<div className="flex h-full flex-col items-center justify-center gap-3">
828+
<IconChartHistogram className="size-16 text-charcoal-650" />
829+
<Paragraph className="max-w-48 text-center text-text-dimmed">
830+
Run a query to visualize the results.
831+
</Paragraph>
832+
</div>
826833
)}
827834
</ClientTabsContent>
828835
<ClientTabsContent
@@ -866,9 +873,12 @@ export function QueryEditor({
866873
/>
867874
</>
868875
) : (
869-
<Paragraph variant="small" className="p-4 text-text-dimmed">
870-
Run a query to see a big number.
871-
</Paragraph>
876+
<div className="flex h-full flex-col items-center justify-center gap-3">
877+
<IconChartHistogram className="size-16 text-charcoal-650" />
878+
<Paragraph className="max-w-48 text-center text-text-dimmed">
879+
Run a query to visualize the results.
880+
</Paragraph>
881+
</div>
872882
)}
873883
</ClientTabsContent>
874884
</ClientTabs>

0 commit comments

Comments
 (0)