-
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
refactor RowHeightSettings component to EUI layout #203606
base: main
Are you sure you want to change the base?
refactor RowHeightSettings component to EUI layout #203606
Conversation
🤖 Jobs for this PR can be triggered through checkboxes. 🚧
ℹ️ To trigger the CI, please tick the checkbox below 👇
|
packages/kbn-unified-data-table/src/components/row_height_settings.tsx
Outdated
Show resolved
Hide resolved
30c3dee
to
fbe834c
Compare
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.
The local state here can be refactored to a hook similar to use_row_height.ts
in Discover - it would reduce the complexity of the joint state here and conditional updating depending on body cell height or header cell height. Maybe a good enhancement for Vis team 😁 For the sake of this task I didn't want to mess too much in your underlying state
/ci |
1 similar comment
/ci |
cc2ecfb
to
4b2c7e8
Compare
/ci |
9c3942c
to
dce9faa
Compare
c85d776
to
67c8bfc
Compare
/ci |
⏳ Build in-progress, with failures
Failed CI Steps
Test Failures
History
|
Summary
Closes: [OneDiscover][UnifiedDataTable] Change RowHeightSettings design to align with EUI #203378
PR focuses on adjusting current RowHeightSettings view to EUI layout.
Current view:
EUI view:
Changes:
2.1) Switching between "Auto" and "Custom" options should persevere input value (but shouldn't influence row count if in "Auto" mode)
2.2) While in "Auto" mode, number input should be disabled (but it shouldn't be hidden, like slider in current version)
2.3) Switching back from "Auto" to "Custom" view, the number input value should be applied as row count
Keeping input state separate from row height settings, but in sync while
custom
mode is on, required some wider changes, both in Discover and Visualization. I also unified map of values forsingle
andauto
.Previously Discover used
-1
forauto
and0
for single, Visualization usedundefined
forauto
and1
forsingle
.Currently it's unified to
-1
forauto
and1
forsingle
. Please see table below.auto
-1
undefined
-1
single
0
1
1
Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.
release_note:breaking
label should be applied in these situations.release_note:*
label is applied per the guidelines