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

[Discover] Breakdown support for fieldstats #199028

Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
3c51e10
[Discover] Breakdown support for fieldstats
mohamedhamed-ahmed Nov 5, 2024
3fad548
[CI] Auto-commit changed files from 'node scripts/yarn_deduplicate'
kibanamachine Nov 5, 2024
3662347
Merge branch 'main' into 192700-fieldstats-popover-breakdown-field
mohamedhamed-ahmed Nov 5, 2024
2c66f0d
code refactor
mohamedhamed-ahmed Nov 6, 2024
064dd18
Merge branch '192700-fieldstats-popover-breakdown-field' of https://g…
mohamedhamed-ahmed Nov 6, 2024
93ffa66
bug fix
mohamedhamed-ahmed Nov 6, 2024
96848c1
[CI] Auto-commit changed files from 'node scripts/notice'
kibanamachine Nov 6, 2024
93b9894
revert code
mohamedhamed-ahmed Nov 6, 2024
39dc06a
Merge branch '192700-fieldstats-popover-breakdown-field' of https://g…
mohamedhamed-ahmed Nov 6, 2024
6f06144
[CI] Auto-commit changed files from 'node scripts/notice'
kibanamachine Nov 6, 2024
7297442
add unit tests
mohamedhamed-ahmed Nov 6, 2024
dfd7fb6
Merge branch '192700-fieldstats-popover-breakdown-field' of https://g…
mohamedhamed-ahmed Nov 6, 2024
3dd24d4
Merge branch 'main' into 192700-fieldstats-popover-breakdown-field
mohamedhamed-ahmed Nov 6, 2024
26c21e9
added component tests
mohamedhamed-ahmed Nov 6, 2024
a56102e
Merge branch 'main' into 192700-fieldstats-popover-breakdown-field
mohamedhamed-ahmed Nov 7, 2024
2e13155
code refactor
mohamedhamed-ahmed Nov 7, 2024
e491c54
code refactor
mohamedhamed-ahmed Nov 8, 2024
3b19865
Merge branch 'main' into 192700-fieldstats-popover-breakdown-field
mohamedhamed-ahmed Nov 8, 2024
263eaab
export fix
mohamedhamed-ahmed Nov 8, 2024
98ed647
icon change
mohamedhamed-ahmed Nov 8, 2024
f3d78dd
Merge branch 'main' into 192700-fieldstats-popover-breakdown-field
mohamedhamed-ahmed Nov 11, 2024
923e305
[CI] Auto-commit changed files from 'node scripts/notice'
kibanamachine Nov 11, 2024
62c0e56
code refactor and tests
mohamedhamed-ahmed Nov 11, 2024
31978dd
Tests
mohamedhamed-ahmed Nov 11, 2024
e0a313d
swap icon positions
mohamedhamed-ahmed Nov 12, 2024
f0e94eb
Merge branch 'main' into 192700-fieldstats-popover-breakdown-field
mohamedhamed-ahmed Nov 12, 2024
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
swap icon positions
  • Loading branch information
mohamedhamed-ahmed committed Nov 12, 2024
commit e0a313d90b331f024eff2a94792dca655fa11d2d
Original file line number Diff line number Diff line change
@@ -99,21 +99,6 @@ export const FieldPopoverHeader: React.FC<FieldPopoverHeaderProps> = ({
<h5 className="eui-textBreakWord">{field.displayName}</h5>
</EuiTitle>
</EuiFlexItem>
{onAddBreakdownField && (
<EuiFlexItem grow={false} data-test-subj="fieldPopoverHeader_addBreakdownField">
<EuiToolTip content={addBreakdownFieldTooltip}>
<EuiButtonIcon
data-test-subj={`fieldPopoverHeader_addBreakdownField-${field.name}`}
aria-label={addBreakdownFieldTooltip}
iconType="visBarVerticalStacked"
onClick={() => {
closePopover();
onAddBreakdownField(field);
}}
/>
</EuiToolTip>
</EuiFlexItem>
)}
{onAddFieldToWorkspace && (
<EuiFlexItem grow={false} data-test-subj="fieldPopoverHeader_addField">
<EuiToolTip
@@ -132,6 +117,21 @@ export const FieldPopoverHeader: React.FC<FieldPopoverHeaderProps> = ({
</EuiToolTip>
</EuiFlexItem>
)}
{onAddBreakdownField && (
<EuiFlexItem grow={false} data-test-subj="fieldPopoverHeader_addBreakdownField">
<EuiToolTip content={addBreakdownFieldTooltip}>
<EuiButtonIcon
data-test-subj={`fieldPopoverHeader_addBreakdownField-${field.name}`}
aria-label={addBreakdownFieldTooltip}
iconType="visBarVerticalStacked"
onClick={() => {
closePopover();
onAddBreakdownField(field);
}}
/>
</EuiToolTip>
</EuiFlexItem>
)}
{onAddFilter && field.filterable && !field.scripted && (
<EuiFlexItem grow={false} data-test-subj="fieldPopoverHeader_addExistsFilter">
<EuiToolTip content={buttonAddFilterProps?.['aria-label'] ?? addExistsFilterTooltip}>