-
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
Fix TS for vis_type_vislib #58345
Fix TS for vis_type_vislib #58345
Conversation
Pinging @elastic/kibana-app (Team:KibanaApp) |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
merge conflict between base and head |
# Conflicts: # .eslintrc.js
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@@ -89,7 +89,7 @@ function CategoryAxisPanel(props: CategoryAxisPanelProps) { | |||
setValue={setAxis} | |||
/> | |||
|
|||
{axis.show && <LabelOptions axis={axis} axesName="categoryAxes" index={0} {...props} />} | |||
{axis.show && <LabelOptions axesName="categoryAxes" index={0} {...props} />} |
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.
Since you touched this, could you please also optimize the LabelOptions
component ?
This component is only relied on several params, but accepts all of VisOptionsProps<BasicVislibParams>
.
Could be decreased (and could be helpful for performance, since will not cause additional re-rendering):
<LabelOptions
axisLabels={axis.labels}
axisFilterCheckboxName={`xAxisFilterLabelsCheckbox${axis.id}`}
setAxisLabel={setAxisLabel} />
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.
OK, don't worry about this anymore!
I prepared a PR with refactoring based on your current pr:
#59135
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.
LGTM
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
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.
Code LGTM 👍 , tested locally in Chrome, nice cleanups inside
* Fix TS for vislib * Fix TS * Revert table changes * Update unit test * Refactor updateAxisTitle Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
Fix TS for vis_type_vislib
Fixes #49546.