diff --git a/frontend/pages/queries/details/QueryDetailsPage/QueryDetailsPage.tsx b/frontend/pages/queries/details/QueryDetailsPage/QueryDetailsPage.tsx
index b87d72c5d3..8a1aada3c0 100644
--- a/frontend/pages/queries/details/QueryDetailsPage/QueryDetailsPage.tsx
+++ b/frontend/pages/queries/details/QueryDetailsPage/QueryDetailsPage.tsx
@@ -218,7 +218,8 @@ const QueryDetailsPage = ({
on, data is sent according to a query’s frequency.`}
+ // TODO - change to JSX after tooltip refactor
+ tipContent={`Query automations let you send data to your log
destination on a schedule. When automations are on,
data is sent according to a query’s frequency.`}
>
Automations:
diff --git a/frontend/pages/queries/details/components/NoResults/NoResults.tsx b/frontend/pages/queries/details/components/NoResults/NoResults.tsx
index 7c28867cf8..1f105ca493 100644
--- a/frontend/pages/queries/details/components/NoResults/NoResults.tsx
+++ b/frontend/pages/queries/details/components/NoResults/NoResults.tsx
@@ -46,8 +46,12 @@ const NoResults = ({
// Collecting results state only shows if caching is enabled
if (collectingResults && !disabledCaching) {
- const collectingResultsInfo = () =>
- `Fleet is collecting query results. Check back in about ${readableCheckbackTime}.`;
+ const collectingResultsInfo = () => (
+ <>
+ Fleet is collecting query results.
+ Check back in about {readableCheckbackTime}.
+ >
+ );
return (
{
+ const getNoResultsInfo = () => {
// In order of empty page priority
if (disabledCaching) {
const tipContent = () => {
@@ -73,23 +77,25 @@ const NoResults = ({
}
return "Unknown";
};
- return (
+ return [
+ "Nothing to report",
<>
Results from this query are{" "}
not reported in Fleet
.
- >
- );
+ >,
+ ];
}
if (!queryInterval) {
- return (
+ return [
+ "Nothing to report",
<>
This query does not collect data on a schedule. Add
a{" "}
frequency or run this as a live query to see results.
- >
- );
+ >,
+ ];
}
// No errors will be reported in V1
// if (errorsOnly) {
@@ -100,15 +106,24 @@ const NoResults = ({
// >
// );
// }
- return "This query has returned no data so far.";
+ return [
+ "Nothing to report yet",
+ <>
+ This query has returned no data so far. If you're
+ expecting to see results, try running a live query to
+
+ get diagnostics.
+ >,
+ ];
};
+ const [emptyHeader, emptyDetails] = getNoResultsInfo();
return (
);
};