-
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
[APM] Fix loading message missing or inconsistent in various list views #110772
[APM] Fix loading message missing or inconsistent in various list views #110772
Conversation
24f94ed
to
3bba876
Compare
3bba876
to
287f5c3
Compare
Pinging @elastic/apm-ui (Team:apm) |
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 great. Thank you!
> | ||
<EuiBasicTable | ||
noItemsMessage={ | ||
isLoading | ||
? i18n.translate('xpack.apm.serviceOverview.loadingText', { | ||
defaultMessage: 'No instances found', | ||
defaultMessage: 'Loading...', |
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.
Typography nit: Use an ellipsis …
(option+; on a Mac) and not three periods ...
defaultMessage: 'Loading...', | |
defaultMessage: 'Loading…', |
const showNoItemsMessage = useMemo(() => { | ||
return isLoading | ||
? i18n.translate('xpack.apm.managedTable.loading', { | ||
defaultMessage: 'Loading...', |
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.
defaultMessage: 'Loading...', | |
defaultMessage: 'Loading…', |
@@ -127,16 +127,18 @@ function UnoptimizedManagedTable<T>(props: Props<T>) { | |||
}; | |||
}, [hidePerPageOptions, items, page, pageSize, pagination]); | |||
|
|||
const showNoItemsMessage = useMemo(() => { | |||
return isLoading | |||
? i18n.translate('xpack.apm.managedTable.loading', { |
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.
This i18n key was here below previously, but we should name these following the Kibana i18n guidelines so I guess this could end with loadingDescription
.
Probably not necessary to change this, but I wanted to link to the guidelines so you can bookmark them.
If any i18n keys are removed, you do need to run node scripts/i18n_check --fix
on them to remove them from the JSON translation files.
287f5c3
to
5fddbcf
Compare
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
…ws (elastic#110772) * [APM] Fix loading message missing or inconsistent in various list views * fix types and i18n * fix comment * PR review comments * fix JVM loading message
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
Closes #110204
Closes #87034
Summary
Some table lists were not align on the loading state, they were showing different messages or loading spinners.
What was done
Checklist
Delete any items that are not applicable to this PR.