-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add search result statistics on the main search screen #16130
Add search result statistics on the main search screen #16130
Conversation
const ExecutionInfo = () => { | ||
const result = useAppSelector(selectCurrentQueryResults); | ||
const total = result?.searchTypes && Object.values(result?.searchTypes)?.[0]?.total; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently we show "Query executed in 0ms" + "Total results: 0" when executing search for the first time.
Maybe let's unify it with the sidebar, where we show <i>No query executed yet.</i>
in this case?
|
||
return ( | ||
<OverlayDropdown show={open} | ||
toggleChild={<QueryHelpButton bsStyle="link"><Icon name="question-circle" /></QueryHelpButton>} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i also like to display the icon the gray we use for the widget actions, to put the focus on the widget content.
|
||
return ( | ||
<i> | ||
Query executed in {' '} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reads like we want to display two spaces at the end of the line.
} | ||
const HelpPopover = ({ widgetExecutionData }: { widgetExecutionData: WidgetExecutionData}) => ( | ||
<PopoverContainer> | ||
<p><strong>Execution Info</strong></p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can also just use the popover title prop, this way we unify the styling.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding the dashboard widget popover toggle, it would be nice to move it 5 or even 10 pixel to the left so it wont be overlapped by the widget resize handle:
In addition we can use the same gray here, like the one we use for the widget action icons.
💯 I love it! |
Description
Pr adds
total results value to the sidebar execution info
Search result statistics to search screen
Execution info popover to each dashboard widget
Motivation and Context
fix: Total result count missing from query page#7386
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
/jenkins-pr-deps https://github.com/Graylog2/graylog-plugin-enterprise/pull/6564