-
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
[Logs UI] Fix log rate analysis tab title and route #49646
[Logs UI] Fix log rate analysis tab title and route #49646
Conversation
'This feature is under active development. Extra functionality is coming, and some functionality may change.', | ||
}); | ||
|
||
export const TabBetaBadge = euiStyled(EuiBetaBadge).attrs({ |
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 factored this out in anticipation of the upcoming categorization tab.
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.
Are any other teams going to need a beta-badged tab component? Wondering if we should open a PR to EUI
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.
Worth a thought. Although I think for an "official" badged tab I feel it would require more polish. The position and weight don't really feel like an annotation to me.
@@ -152,3 +113,25 @@ export const LogsPage = injectUICapabilities(({ match, uiCapabilities }: LogsPag | |||
</Source.Context.Provider> | |||
); | |||
}); | |||
|
|||
const pageTitle = i18n.translate('xpack.infra.header.logsTitle', { |
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 deduplicates some translations and removes the repeated translation from the render cycle.
💚 Build Succeeded |
Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui) |
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.
All looks good!
This aligns the log rate analysis tab title with the requirements. It also changes the sub-route from `analysis` to `log-rate` and performs some additional cleanup in anticipation of the soon-to-be-added category analysis tab. The page redirects from `/logs/analysis` to `/logs/log-rate` to reduce confusion in the build candidates. fixes elastic#49198
This aligns the log rate analysis tab title with the requirements. It also changes the sub-route from `analysis` to `log-rate` and performs some additional cleanup in anticipation of the soon-to-be-added category analysis tab. The page redirects from `/logs/analysis` to `/logs/log-rate` to reduce confusion in the build candidates. fixes elastic#49198
Summary
This aligns the log rate analysis tab title with the requirements. It also changes the sub-route from
analysis
tolog-rate
and performs some additional cleanup in anticipation of the soon-to-be-added category analysis tab. The page redirects from/logs/analysis
to/logs/log-rate
to reduce confusion in the build candidates.fixes #49198
Preview
Checklist
Documentation was added for features that require explanation or tutorialsUnit or functional tests were updated or added to match the most common scenariosThis was checked for keyboard-only and screenreader accessibilityFor maintainers
This was checked for breaking API changes and was labeled appropriatelyThis includes a feature addition or change that requires a release note and was labeled appropriately