Skip to content

[8.x] refactor RowHeightSettings component to EUI layout (#203606)#208890

Merged
akowalska622 merged 1 commit intoelastic:8.xfrom
akowalska622:backport/8.x/pr-203606
Jan 30, 2025
Merged

[8.x] refactor RowHeightSettings component to EUI layout (#203606)#208890
akowalska622 merged 1 commit intoelastic:8.xfrom
akowalska622:backport/8.x/pr-203606

Conversation

@akowalska622
Copy link
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

(cherry picked from commit a376e9b)

# Conflicts:
#	src/platform/packages/shared/kbn-unified-data-table/src/components/data_table.test.tsx
#	src/platform/packages/shared/kbn-unified-data-table/src/components/row_height_settings.tsx
@akowalska622 akowalska622 added the backport This PR is a backport of another PR label Jan 30, 2025
@akowalska622 akowalska622 enabled auto-merge (squash) January 30, 2025 09:34
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
logsExplorer 669 546 -123

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/unified-data-table 109 108 -1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
cloudSecurityPosture 521.4KB 521.2KB -213.0B
discover 837.6KB 837.3KB -253.0B
esqlDataGrid 174.5KB 174.3KB -209.0B
lens 1.5MB 1.5MB +98.0B
logsExplorer 222.3KB 222.3KB +1.0B
securitySolution 18.7MB 18.7MB -1.0KB
slo 864.1KB 863.9KB -213.0B
visTypeTable 19.0KB 19.0KB -18.0B
total -1.8KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
logsExplorer 27.8KB 27.9KB +38.0B
Unknown metric groups

API count

id before after diff
@kbn/unified-data-table 187 186 -1

Comment on lines -83 to +97
{rowHeight === RowHeightMode.custom ? (
<EuiRange
compressed
fullWidth
showInput
min={1}
max={maxRowHeight ?? 20}
step={1}
value={rowHeightLines ?? 2}
onChange={(e) => {
const lineCount = Number(e.currentTarget.value);
onChangeRowHeightLines(lineCount);
}}
data-test-subj={`${dataTestSubj}_lineCountNumber`}
css={{
marginTop: compressed ? euiThemeVars.euiSizeXS : euiThemeVars.euiSizeM,
}}
/>
) : null}
</>
<EuiFieldNumber
compressed
value={lineCountInput}
onChange={(e) => {
const lineCount = Number(e.currentTarget.value);
onChangeLineCountInput(lineCount);
}}
min={1}
max={maxRowHeight ?? 20}
step={1}
disabled={rowHeight !== RowHeightMode.custom}
data-test-subj={`${dataTestSubj}_lineCountNumber`}
/>
</EuiFlexGroup>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here merge conflict occurred, accepted incoming version with Field Number

@akowalska622 akowalska622 self-assigned this Jan 30, 2025
Copy link
Contributor

@davismcphee davismcphee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@akowalska622 akowalska622 merged commit cd3114b into elastic:8.x Jan 30, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants