-
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
[Lens] Reference line renaming + other small fixes #113811
Conversation
…reshold_panel.tsx Co-authored-by: Michael Marcialis <[email protected]>
Pinging @elastic/kibana-vis-editors (Team:VisEditors) |
@elasticmachine merge upstream |
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.
label={i18n.translate('xpack.lens.xyChart.layerThresholdLabel', { | ||
defaultMessage: 'Thresholds', | ||
icon={LensIconChartBarReferenceLine} | ||
label={i18n.translate('xpack.lens.xyChart.layerReference lineLabel', { |
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.
Not sure about it but is this ok that it has a space on the key?
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.
Nice catch! It's a typo.
const beforeLabel = i18n.translate('xpack.lens.xyChart.referenceLineFill.before', { | ||
defaultMessage: 'Before', | ||
}); | ||
const afterLabel = i18n.translate('xpack.lens.xyChart.referenceLineFill.right', { |
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.
nit: this could be xpack.lens.xyChart.referenceLineFill.after in order to be aligned with the rest
The transition bug from |
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.
Reviewed scss file and LGTM.
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.
Fixed also latest issue with label |
💚 Build Succeeded
Metrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
* 🐛 Add padding to the tick label to fit threshold markers * 🐛 Better icon detection * 🐛 Fix edge cases with no title or labels * 📸 Update snapshots * ✨ Make threshold fit into view automatically * 🐛 do not compute axis threshold extends if no threshold is present * ✅ One more fix for 0-based extends and tests * ✨ Add icon placement flag * ✨ Sync padding computation with marker positioning * ✨ compute the default threshold based on data bounds * 🐛 fix duplicate suggestion issue + missing over time * 👌 Make disabled when no icon is selected * ✨ First text on marker implementation * 🐛 Fix some edge cases with auto positioning * Update x-pack/plugins/lens/public/xy_visualization/xy_config_panel/threshold_panel.tsx Co-authored-by: Michael Marcialis <[email protected]> * 🐛 Fix minor details * 💄 Small tweak * ✨ Reduce the padding if no icon is shown on the axis * 🐛 Fix color fallback for different type of layers * ✅ Fix broken unit tests * 🐛 Fix multi layer types issue * ✅ Fix test * ✅ Fix other test * 💄 Fix vertical text centering * ✨ Rename to reference lines + few fixes * 🚨 Fix linting issue * 🐛 Fix issue * 🐛 Fix computation bug for the initial static value * ✅ Add new suite of test for static value computation * 💄 Reorder panel inputs * 💄 Move styling to sass * 📝 Keeping up with the renaming * ✅ Fix functional tests after renaming * 🐛 Fix duplicate arg from conflict resolution * 👌 Integrate some follow up feedback * 📝 Fix typo * 👌 Integrate feedback * 🐛 Fix the quick functions transition bug * 🐛 Fix label issue when updating value Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Michael Marcialis <[email protected]>
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
* 🐛 Add padding to the tick label to fit threshold markers * 🐛 Better icon detection * 🐛 Fix edge cases with no title or labels * 📸 Update snapshots * ✨ Make threshold fit into view automatically * 🐛 do not compute axis threshold extends if no threshold is present * ✅ One more fix for 0-based extends and tests * ✨ Add icon placement flag * ✨ Sync padding computation with marker positioning * ✨ compute the default threshold based on data bounds * 🐛 fix duplicate suggestion issue + missing over time * 👌 Make disabled when no icon is selected * ✨ First text on marker implementation * 🐛 Fix some edge cases with auto positioning * Update x-pack/plugins/lens/public/xy_visualization/xy_config_panel/threshold_panel.tsx Co-authored-by: Michael Marcialis <[email protected]> * 🐛 Fix minor details * 💄 Small tweak * ✨ Reduce the padding if no icon is shown on the axis * 🐛 Fix color fallback for different type of layers * ✅ Fix broken unit tests * 🐛 Fix multi layer types issue * ✅ Fix test * ✅ Fix other test * 💄 Fix vertical text centering * ✨ Rename to reference lines + few fixes * 🚨 Fix linting issue * 🐛 Fix issue * 🐛 Fix computation bug for the initial static value * ✅ Add new suite of test for static value computation * 💄 Reorder panel inputs * 💄 Move styling to sass * 📝 Keeping up with the renaming * ✅ Fix functional tests after renaming * 🐛 Fix duplicate arg from conflict resolution * 👌 Integrate some follow up feedback * 📝 Fix typo * 👌 Integrate feedback * 🐛 Fix the quick functions transition bug * 🐛 Fix label issue when updating value Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Michael Marcialis <[email protected]> Co-authored-by: Marco Liberati <[email protected]> Co-authored-by: Michael Marcialis <[email protected]>
Summary
Fixes #113406
This PR is a combination of all the previous PRs (also the pending ones) made in preparation for the renaming
Thresholds => Reference Line
.The mapping is almost 1:1, with few exceptions where
Reference lines X
was too long, so I've changed it toReference X
. One instance of it is theAdd layer
button:During the change, I've found out few minor bugs which have been addressed here (but they can be ported elsewhere as well if it improves the review process):
Formula
toStatic value
transition was broken again, so it has been fixed ✅Fill: below
was not respecting the "next reference line" boundary, leading to mixed color region. ✅Fill
options did not change forHorizontal Chart
s, orVertical lines
. NowAbove
andBelow
change toBefore
andAfter
✅invalidMessage
for a number histogram axis change or removed has been improved for the specific case ✅Checklist
Delete any items that are not applicable to this PR.
Risk Matrix
Delete this section if it is not applicable to this PR.
Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.
When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:
For maintainers