-
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
[AO] - Update the design of the Alert Details header and summary #153223
[AO] - Update the design of the Alert Details header and summary #153223
Conversation
Pinging @elastic/actionable-observability (Team: Actionable Observability) |
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.
Looks good already, just some suggestions.
<EuiText | ||
css={css` | ||
font-weight: ${euiTheme.font.weight.semiBold}; | ||
`} | ||
size="s" | ||
> | ||
{moment(Number(alert?.start)).fromNow()} | ||
</EuiText> |
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.
<EuiText | |
css={css` | |
font-weight: ${euiTheme.font.weight.semiBold}; | |
`} | |
size="s" | |
> | |
{moment(Number(alert?.start)).fromNow()} | |
</EuiText> | |
<EuiText | |
size="s" | |
> | |
<strong>{moment(Number(alert?.start)).fromNow()}</strong> | |
</EuiText> |
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.
I wonder if moment().fromNow()
is actually localized/translated?
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.
@CoenWarmer, the semiBold
we get from the euiTheme
differs from the strong
tag.
And I would also keep getting it from the euiTheme
to keep consistency in case of theme updates/changes
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.
@kdelemme, I think it handles it out of the box. But I added the locals that are provided by our internal lib i18n
x-pack/plugins/observability/public/pages/alert_details/components/page_title.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/observability/public/pages/alert_details/components/page_title.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/observability/public/pages/alert_details/components/page_title.tsx
Outdated
Show resolved
Hide resolved
@elasticmachine merge upstream |
expected head sha didn’t match current head ref. |
…-ref HEAD~1..HEAD --fix'
@elasticmachine merge upstream |
merge conflict between base and head |
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!
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 Succeeded
Metrics [docs]Async chunks
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @fkanout |
Summary
It fixes #153095 and fixes #153103 by applying the new design.
Before
After