- Loading stored findings…
+ Loading investigations…
- Fetching findings from the last completed analysis
+ Fetching cases from the last completed analysis
@@ -75,17 +62,17 @@ function InsightsEmptyState() {
- No priority findings
+ No investigations yet
- No stored priority findings from the last completed analysis
+ Databuddy has not opened a case from the latest analysis
);
}
-function InsightsErrorState({ onRetryAction }: { onRetryAction?: () => void }) {
+function InsightsErrorState({ onRetryAction }: { onRetryAction: () => void }) {
return (
@@ -93,22 +80,20 @@ function InsightsErrorState({ onRetryAction }: { onRetryAction?: () => void }) {
- Couldn't load findings
+ Couldn't load investigations
- Stored findings couldn't be loaded
+ Stored investigations couldn't be loaded
- {onRetryAction && (
-
- )}
+
);
}
@@ -118,8 +103,7 @@ interface InsightsSectionProps {
isError?: boolean;
isFetching?: boolean;
isLoading?: boolean;
- onRefreshAction?: () => void;
- variant?: "compact" | "full";
+ onRefreshAction: () => void;
}
export function SmartInsightsSection({
@@ -128,41 +112,11 @@ export function SmartInsightsSection({
isFetching,
isError,
onRefreshAction,
- variant = "compact",
}: InsightsSectionProps) {
- if (isLoading) {
- return (
-