Skip to content

Commit

Permalink
[Explorer] Modify text in empty prompt (opensearch-project#1172) (ope…
Browse files Browse the repository at this point in the history
…nsearch-project#1182)

* remove unused files



* missing snapshots



* remove unused files



* adjust text on empty prompt



* add snapshots



---------



(cherry picked from commit a6c0333)

Signed-off-by: Eric Wei <[email protected]>
Signed-off-by: Eric <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent b69801e commit 95a60cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,27 +106,23 @@ exports[`No result component Renders No result component 1`] = `
data-test-subj="obsNoResultsTimefilter"
>
<FormattedMessage
defaultMessage="Expand your time range or modify your query"
defaultMessage="Select a data source, expand your time range, or modify the query"
id="observability.noResults.expandYourTimeRangeTitle"
values={Object {}}
>
<span>
Expand your time range or modify your query
Select a data source, expand your time range, or modify the query
</span>
</FormattedMessage>
</h2>
<p>
<FormattedMessage
defaultMessage="Your query may not match anything in the current time range,
or there may not be any data at all in the currently selected time range.
Try change time range, query filters or choose different time fields."
defaultMessage="After selection, check the time range, query filters, fields, and query"
id="observability.noResults.queryMayNotMatchTitle"
values={Object {}}
>
<span>
Your query may not match anything in the current time range,
or there may not be any data at all in the currently selected time range.
Try change time range, query filters or choose different time fields.
After selection, check the time range, query filters, fields, and query
</span>
</FormattedMessage>
</p>
Expand Down
6 changes: 2 additions & 4 deletions public/components/event_analytics/explorer/no_results.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,13 @@ export const NoResults = () => {
<h2 data-test-subj="obsNoResultsTimefilter">
<FormattedMessage
id="observability.noResults.expandYourTimeRangeTitle"
defaultMessage="Expand your time range or modify your query"
defaultMessage="Select a data source, expand your time range, or modify the query"
/>
</h2>
<p>
<FormattedMessage
id="observability.noResults.queryMayNotMatchTitle"
defaultMessage="Your query may not match anything in the current time range,
or there may not be any data at all in the currently selected time range.
Try change time range, query filters or choose different time fields."
defaultMessage="After selection, check the time range, query filters, fields, and query"
/>
</p>
</EuiText>
Expand Down

0 comments on commit 95a60cc

Please sign in to comment.