-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Exploratory view] implement popovers for data type and metric type #112370
[Exploratory view] implement popovers for data type and metric type #112370
Conversation
Pinging @elastic/uptime (Team:uptime) |
return ( | ||
<div ref={seriesBuilderRef}> | ||
<EuiPanel color="subdued"> | ||
<SeriesEditor /> | ||
<AddSeriesButton /> | ||
</EuiPanel> | ||
<SeriesEditor /> | ||
<AddSeriesButton /> | ||
</div> | ||
); |
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.
might as well just delete this component, i don't see it having any purpose now.
<ToolbarButton size="s" onClick={() => setIsOpen((prevState) => !prevState)} hasArrow={false}> | ||
<EuiIcon type="dot" size="l" color={color} /> | ||
</ToolbarButton> | ||
<EuiButtonEmpty size="s" onClick={() => setIsOpen((prevState) => !prevState)} flush="both"> | ||
<EuiIcon type="stopFilled" size="l" color={color} /> | ||
</EuiButtonEmpty> |
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 think we should continue using ToolbarButton here, it provides better user interaction experience.
Though it's @liciavale call to make.
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 removed it for the sole purpose of removing the border, which is not present in the design.
<> | ||
{!series.selectedMetricField && ( | ||
<EuiPopover | ||
button={ | ||
<EuiButton | ||
iconType="plusInCircle" | ||
onClick={() => setShowOptions((prevState) => !prevState)} | ||
fill | ||
size="s" | ||
> | ||
{SELECT_REPORT_METRIC_LABEL} | ||
</EuiButton> | ||
} | ||
isOpen={showOptions} | ||
closePopover={() => setShowOptions((prevState) => !prevState)} | ||
> | ||
<EuiListGroup> | ||
{options.map((option) => ( | ||
<EuiListGroupItem | ||
key={option.value} | ||
onClick={() => onChange(option.value)} | ||
label={option.dropdownDisplay} | ||
isDisabled={option.disabled} | ||
/> | ||
))} | ||
</EuiListGroup> | ||
</EuiPopover> | ||
)} | ||
{series.selectedMetricField && ( | ||
<EuiBadge> | ||
{ | ||
seriesConfig?.metricOptions?.find((option) => option.id === series.selectedMetricField) | ||
?.label | ||
} | ||
</EuiBadge> | ||
)} | ||
</> |
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.
In edit/expanded mode, we should allow user to change the metric option. Since report metric can be editable.
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.
@liciavale How do you see this interaction happening? What does the edit state look like for the report metric? Does it revert back to a button?
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.
In my design, it is a badge that dismissed become a + add button again and we show the message that indicates that metric is missing.
After a chat with Shahzad we decided to try to find a different solution and use a single select without creating a new component behavior and my assumption is that it will always be there after they add a metric but I don't have that in my design tho' so I'm not sure how this will look like and how it will work. Would you like me to change the design to see if this is ok? Because I'm not sure about that interaction there
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.
Left few comments, though nothing blocking
LGTM !!
@elasticmachine merge upstream |
…to feature/exploratory-view-popovers
…m/dominiqueclarke/kibana into feature/exploratory-view-popovers
@liciavale @shahzad31 this is ready for a second look. |
Filters are still wrapping down, AFAIK, @liciavale wants them to take full row, even below breakdown component |
I think the easiest way to do that here, is to have filters take up a row by itself, and move breakdown down a row next to operation. Thoughts? @liciavale |
@elasticmachine merge upstream |
…to feature/exploratory-view-popovers
@dominiqueclarke Sounds good to me |
…m/dominiqueclarke/kibana into feature/exploratory-view-popovers
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.
Filter changes LGTM !!
/oblt-deploy |
@elasticmachine merge upstream |
…to feature/exploratory-view-popovers
@dominiqueclarke Looks good!
Would it be possible that when a user clicks again on the pencil it saves the changes? I think it would be the expected behaviour for this. The rest LGTM! |
…m/dominiqueclarke/kibana into feature/exploratory-view-popovers
ed99b8f
to
32d8b78
Compare
Moved @liciavale Comment from other PR #112949 here Hi @shahzad31 , it looks good!
I think the rest of the filters looks good :) |
|
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
bff70dd
into
elastic:feature/observability-exploratory-view-multi-series
…113464) * Revert "[Observability][Exploratory View] revert exploratory view multi-series (#107647)" This reverts commit 1649661. * Revert "[Observability][Exploratory View] revert exploratory view multi-series (#107647)" This reverts commit 1649661. * [Observability] [Exploratory View] Create multi series feature branch (#108079) * Revert "[Observability][Exploratory View] revert exploratory view multi-series (#107647)" This reverts commit 1649661. * Revert "[Observability][Exploratory View] revert exploratory view multi-series (#107647)" This reverts commit 1649661. * update types * update tests * [Observability] exploratory view design issues (#111028) * remove custom y axis labels for better clarity * move add series button to the bottom * disable auto apply * fix missing test * When series count changes, collapse other series. (#110894) Co-authored-by: Kibana Machine <[email protected]> * Feature/observability exploratory view multi series panels (#111555) Co-authored-by: Kibana Machine <[email protected]> * [Exploratory View] Fix date range picker on secondary series (#111700) Co-authored-by: Kibana Machine <[email protected]> * [Exploratory View] Collapse series only on add, not delete (#111790) * [Exploratory view] Remove preview panel (#111884) * [Exploratory view] implement popovers for data type and metric type (#112370) * implement popovers for data type and metric type * adjust types * add IncompleteBadge * make report metric dismissable * show date-picker even if metric is undefined * adjust styles of expanded series row * add truncation to series name * move incomplete badge and add edit pencil * add tooltip to data type badge * adjust content * lint * delete extra file * move filters row * adjust name editing behavior * adjust filter styles Co-authored-by: Kibana Machine <[email protected]> * move cases button to top * fix types * more types :( Co-authored-by: Justin Kambic <[email protected]> Co-authored-by: shahzad31 <[email protected]> Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Shahzad <[email protected]>
…lastic#113464) * Revert "[Observability][Exploratory View] revert exploratory view multi-series (elastic#107647)" This reverts commit 1649661. * Revert "[Observability][Exploratory View] revert exploratory view multi-series (elastic#107647)" This reverts commit 1649661. * [Observability] [Exploratory View] Create multi series feature branch (elastic#108079) * Revert "[Observability][Exploratory View] revert exploratory view multi-series (elastic#107647)" This reverts commit 1649661. * Revert "[Observability][Exploratory View] revert exploratory view multi-series (elastic#107647)" This reverts commit 1649661. * update types * update tests * [Observability] exploratory view design issues (elastic#111028) * remove custom y axis labels for better clarity * move add series button to the bottom * disable auto apply * fix missing test * When series count changes, collapse other series. (elastic#110894) Co-authored-by: Kibana Machine <[email protected]> * Feature/observability exploratory view multi series panels (elastic#111555) Co-authored-by: Kibana Machine <[email protected]> * [Exploratory View] Fix date range picker on secondary series (elastic#111700) Co-authored-by: Kibana Machine <[email protected]> * [Exploratory View] Collapse series only on add, not delete (elastic#111790) * [Exploratory view] Remove preview panel (elastic#111884) * [Exploratory view] implement popovers for data type and metric type (elastic#112370) * implement popovers for data type and metric type * adjust types * add IncompleteBadge * make report metric dismissable * show date-picker even if metric is undefined * adjust styles of expanded series row * add truncation to series name * move incomplete badge and add edit pencil * add tooltip to data type badge * adjust content * lint * delete extra file * move filters row * adjust name editing behavior * adjust filter styles Co-authored-by: Kibana Machine <[email protected]> * move cases button to top * fix types * more types :( Co-authored-by: Justin Kambic <[email protected]> Co-authored-by: shahzad31 <[email protected]> Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Shahzad <[email protected]> # Conflicts: # test/functional/page_objects/common_page.ts
…113464) (#114120) * Revert "[Observability][Exploratory View] revert exploratory view multi-series (#107647)" This reverts commit 1649661. * Revert "[Observability][Exploratory View] revert exploratory view multi-series (#107647)" This reverts commit 1649661. * [Observability] [Exploratory View] Create multi series feature branch (#108079) * Revert "[Observability][Exploratory View] revert exploratory view multi-series (#107647)" This reverts commit 1649661. * Revert "[Observability][Exploratory View] revert exploratory view multi-series (#107647)" This reverts commit 1649661. * update types * update tests * [Observability] exploratory view design issues (#111028) * remove custom y axis labels for better clarity * move add series button to the bottom * disable auto apply * fix missing test * When series count changes, collapse other series. (#110894) Co-authored-by: Kibana Machine <[email protected]> * Feature/observability exploratory view multi series panels (#111555) Co-authored-by: Kibana Machine <[email protected]> * [Exploratory View] Fix date range picker on secondary series (#111700) Co-authored-by: Kibana Machine <[email protected]> * [Exploratory View] Collapse series only on add, not delete (#111790) * [Exploratory view] Remove preview panel (#111884) * [Exploratory view] implement popovers for data type and metric type (#112370) * implement popovers for data type and metric type * adjust types * add IncompleteBadge * make report metric dismissable * show date-picker even if metric is undefined * adjust styles of expanded series row * add truncation to series name * move incomplete badge and add edit pencil * add tooltip to data type badge * adjust content * lint * delete extra file * move filters row * adjust name editing behavior * adjust filter styles Co-authored-by: Kibana Machine <[email protected]> * move cases button to top * fix types * more types :( Co-authored-by: Justin Kambic <[email protected]> Co-authored-by: shahzad31 <[email protected]> Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Shahzad <[email protected]> # Conflicts: # test/functional/page_objects/common_page.ts
Fixes #112292
This PR addresses various aspect of the exploratory view redesign
Note: adjustments for responsiveness will be necessary