diff --git a/messages/en-US.json b/messages/en-US.json
index 6d617279..90097860 100644
--- a/messages/en-US.json
+++ b/messages/en-US.json
@@ -2154,5 +2154,6 @@
"niceIdUpdateErrorDescription": "An error occurred while updating the Nice ID.",
"niceIdCannotBeEmpty": "Nice ID cannot be empty",
"enterIdentifier": "Enter identifier",
- "identifier": "Identifier"
+ "identifier": "Identifier",
+ "noData": "No Data"
}
diff --git a/src/components/LogAnalyticsData.tsx b/src/components/LogAnalyticsData.tsx
index 7eafda95..f6845742 100644
--- a/src/components/LogAnalyticsData.tsx
+++ b/src/components/LogAnalyticsData.tsx
@@ -11,7 +11,7 @@ import { useQuery } from "@tanstack/react-query";
import { usePathname, useRouter, useSearchParams } from "next/navigation";
import { useState } from "react";
import { Card, CardContent, CardHeader } from "./ui/card";
-import { RefreshCw, XIcon } from "lucide-react";
+import { LoaderIcon, RefreshCw, XIcon } from "lucide-react";
import { DateRangePicker, type DateTimeValue } from "./DateTimePicker";
import { Button } from "./ui/button";
import { cn } from "@app/lib/cn";
@@ -74,7 +74,8 @@ export function LogAnalyticsData(props: AnalyticsContentProps) {
const {
data: stats,
isFetching: isFetchingAnalytics,
- refetch: refreshAnalytics
+ refetch: refreshAnalytics,
+ isLoading: isLoadingAnalytics // only `true` when there is no data yet
} = useQuery(
logQueries.requestAnalytics({
orgId: props.orgId,
@@ -296,6 +297,7 @@ export function LogAnalyticsData(props: AnalyticsContentProps) {