-
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
[Alert details page] [Custom threshold] Change title of condition charts #175865
[Alert details page] [Custom threshold] Change title of condition charts #175865
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
/ci |
/ci |
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
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.
...mponents/custom_threshold/components/alert_details_app_section/alert_details_app_section.tsx
Outdated
Show resolved
Hide resolved
...mponents/custom_threshold/components/alert_details_app_section/alert_details_app_section.tsx
Outdated
Show resolved
Hide resolved
...mponents/custom_threshold/components/alert_details_app_section/alert_details_app_section.tsx
Outdated
Show resolved
Hide resolved
...mponents/custom_threshold/components/alert_details_app_section/alert_details_app_section.tsx
Outdated
Show resolved
Hide resolved
...nts/custom_threshold/components/alert_details_app_section/alert_details_app_section.test.tsx
Show resolved
Hide resolved
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!
<EuiTitle size="xs"> | ||
<h4>{criterion.label || 'CUSTOM'} </h4> | ||
</EuiTitle> | ||
<EuiToolTip content={generateChartTitle(criterion).tooltip}> |
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: Maybe we can save the return value of generateChartTitle(criterion)
once and then use tooltip
and title
from that variable. The current implementation goes through generating the title twice.
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.
updated in 63e1b56
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @benakansara |
…rts (elastic#175865) Resolves elastic#174249 - Updates title of condition charts on Custom threshold alert details page - In case chart title length is more than 120 chars, title is shortened with `...` at end - Tooltip shows full title <img width="1254" alt="Screenshot 2024-01-30 at 10 19 35" src="https://github.com/elastic/kibana/assets/69037875/41cfe6d5-5bd4-41f7-a91f-c2f3bd25943d"> <img width="1259" alt="Screenshot 2024-01-30 at 10 19 49" src="https://github.com/elastic/kibana/assets/69037875/a9d76bf5-7f94-445e-98bf-e3763d03bdb3"> <img width="1272" alt="Screenshot 2024-01-30 at 10 26 52" src="https://github.com/elastic/kibana/assets/69037875/642153b1-a8c2-4992-b3fd-187ffe385ca2">
…rts (elastic#175865) Resolves elastic#174249 - Updates title of condition charts on Custom threshold alert details page - In case chart title length is more than 120 chars, title is shortened with `...` at end - Tooltip shows full title <img width="1254" alt="Screenshot 2024-01-30 at 10 19 35" src="https://github.com/elastic/kibana/assets/69037875/41cfe6d5-5bd4-41f7-a91f-c2f3bd25943d"> <img width="1259" alt="Screenshot 2024-01-30 at 10 19 49" src="https://github.com/elastic/kibana/assets/69037875/a9d76bf5-7f94-445e-98bf-e3763d03bdb3"> <img width="1272" alt="Screenshot 2024-01-30 at 10 26 52" src="https://github.com/elastic/kibana/assets/69037875/642153b1-a8c2-4992-b3fd-187ffe385ca2">
…rts (elastic#175865) Resolves elastic#174249 - Updates title of condition charts on Custom threshold alert details page - In case chart title length is more than 120 chars, title is shortened with `...` at end - Tooltip shows full title <img width="1254" alt="Screenshot 2024-01-30 at 10 19 35" src="https://github.com/elastic/kibana/assets/69037875/41cfe6d5-5bd4-41f7-a91f-c2f3bd25943d"> <img width="1259" alt="Screenshot 2024-01-30 at 10 19 49" src="https://github.com/elastic/kibana/assets/69037875/a9d76bf5-7f94-445e-98bf-e3763d03bdb3"> <img width="1272" alt="Screenshot 2024-01-30 at 10 26 52" src="https://github.com/elastic/kibana/assets/69037875/642153b1-a8c2-4992-b3fd-187ffe385ca2">
Resolves #174249
...
at end