-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Lens] Field item hovers, empty state graphic, and operation not applicable callout #46864
Conversation
WarningI'm a little confused by the text. Do any of these work? To use this function, select a different field. Cannot use this function with the current field. TooltipHow about being more specific about the data you can view? Click to view top values. Or, drag into visualization. |
💔 Build Failed |
I'm good with @gchaps suggestions "To use this function, select a different field |
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 some suggestions on wording, they are optional. You do need to translate the <h3>
text.
x-pack/legacy/plugins/lens/public/indexpattern_plugin/field_item.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/lens/public/editor_frame_plugin/editor_frame/workspace_panel.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/lens/public/indexpattern_plugin/field_item.tsx
Outdated
Show resolved
Hide resolved
c69adfa
to
a42dbb3
Compare
I guess I'll go ahead and take this out of draft. I've made some text updates. Look like maybe the field item one is still in the works. But the rest of the PR can be reviewed. |
Pinging @elastic/kibana-app |
@AlonaNadler I've updated the screenshots for items 2 and 3 above. |
Looks like I'm getting a type error on the
|
💔 Build Failed |
💔 Build Failed |
324a69f
to
cddf3a8
Compare
💔 Build Failed |
💔 Build Failed |
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.
- Can we make the popup disappear when selecting another field or clicking anywhere else in the UI
currently
- click to see a preview, drag to create a visualization
- on the empty state preview panel, instead of build visualization, should we say create visualization? @gchaps
- Message error looks much better
- Empty state looks great
and adding info icon with tooltip
ccb1a2a
to
8bfcb57
Compare
This PR now also contains a few text review updates(See commit history and gDoc). StatusBarring any failing TS types or test, this is reviewable. |
This is not an issue introduced by this PR, it has to do with the drag and drop intervening in the outside click of the popover. I don't see it as critical will need a dev's attention so I'm going to defer this one.
There's been a lot of back and forth on this text in the doc. Please get with @gchaps to finalize this text together. For now I will keep what's in there since "preview" is confusing as I'd expect a "preview" of what it'd look like in the chart. |
@AlonaNadler "Create a visualization" is good for the empty state. |
@@ -260,15 +271,15 @@ function FieldItemPopoverContents(props: State & FieldItemProps) { | |||
if (histogram && histogram.buckets.length && topValues && topValues.buckets.length) { | |||
title = ( | |||
<EuiButtonGroup | |||
buttonSize="s" | |||
buttonSize="compressed" |
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 don't understand why your screenshots keep showing up as all caps in those buttons. What env are you 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.
I primarily develop in Firefox
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.
That last commit should fix your issue.
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.
Tested in light and dark mode with a random base path. Only found one issue with the "Distribution" label, and that is something I can fix separately. Approving because I feel like this is safe to merge.
💚 Build Succeeded |
💔 Build Failed |
💚 Build Succeeded |
…icable callout (elastic#46864) 1. Better hover and focus states of field items 2. Added the empty state graphic 3. Fixed elastic#46753
Waiting on text finalization
and dark mode graphic1. Better hover and focus states of field items
It also adds an info icon with tooltip explaining how to interact with the field item (click or drag).
2. Added the empty state graphic
Along with some better text.
3. Fixed #46753
Changed callout to 'warning' color and changed text but could use a final pass on the text.
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.[ ] This was checked for cross-browser compatibility, including a check against IE11[ ] Documentation was added for features that require explanation or tutorials[ ] This was checked for keyboard-only and screenreader accessibility