Skip to content
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] Annotations design review #140588

Merged
merged 17 commits into from
Sep 19, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
…-fix'
  • Loading branch information
kibanamachine committed Sep 15, 2022
commit 642b4e0f5cd65a3dc7a5562e234c450fa912eeaf
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export function TooltipSection({
<EuiButton
isDisabled
fullWidth
onClick={() => { }}
onClick={() => {}}
className="lnsConfigPanelAnnotations__noFieldsButton"
>
{i18n.translate('xpack.lens.xyChart.annotation.tooltip.noFields', {
Expand All @@ -139,17 +139,17 @@ export function TooltipSection({
)
.map(
(field) =>
({
label: field.displayName,
value: {
type: 'field',
field: field.name,
dataType: field.type,
},
exists: fieldExists(currentExistingField, field.name),
compatible: true,
'data-test-subj': `lnsXY-annotation-tooltip-fieldOption-${field.name}`,
} as FieldOption<FieldOptionValue>)
({
label: field.displayName,
value: {
type: 'field',
field: field.name,
dataType: field.type,
},
exists: fieldExists(currentExistingField, field.name),
compatible: true,
'data-test-subj': `lnsXY-annotation-tooltip-fieldOption-${field.name}`,
} as FieldOption<FieldOptionValue>)
)
.sort((a, b) => a.label.localeCompare(b.label));

Expand Down Expand Up @@ -207,11 +207,11 @@ export function TooltipSection({
selectedOptions={
value
? [
{
label: value,
value: { type: 'field', field: value },
},
]
{
label: value,
value: { type: 'field', field: value },
},
]
: []
}
options={options}
Expand Down