Skip to content
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

Renamed button and dropdown items in headers (apm, logs, metrics and uptime) from alerts to rules #100918

Merged
merged 170 commits into from
Jun 22, 2021
Merged

Renamed button and dropdown items in headers (apm, logs, metrics and uptime) from alerts to rules #100918

merged 170 commits into from
Jun 22, 2021

Conversation

katrin-freihofner
Copy link
Contributor

Summary

As we updated the terminology around alerts, this is the PR updating our "Alerts" buttons in the headers and the dropdowns they trigger.

Logs

Screenshot 2021-05-28 at 18 21 13

Metrics

Screenshot 2021-05-28 at 18 18 35

Screenshot 2021-05-28 at 18 18 41

APM

Screenshot 2021-05-28 at 18 11 21

Screenshot 2021-05-28 at 17 59 19

Uptime

Screenshot 2021-05-28 at 17 58 36

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@katrin-freihofner katrin-freihofner requested review from a team as code owners June 17, 2021 12:16
@katrin-freihofner katrin-freihofner requested a review from a team June 17, 2021 12:16
Copy link
Member

@Bamieh Bamieh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why the kibana-telemetry or the kibana-core team is pinged i dont see any relevant files to the team. localization changes lgtm.

getRuleDetailsHref={ruleDetailsNavigation?.href}
onRuleDetailsClick={ruleDetailsNavigation?.onClick}
>>>>>>> master
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this git conflict diff is here by mistake 😬

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like I missed this one. Thanks for spotting that.

@@ -67,7 +67,7 @@ export const ToggleAlertFlyoutButtonComponent: React.FC<Props> = ({
>
<FormattedMessage
id="xpack.uptime.navigateToAlertingButton.content"
defaultMessage="Manage alerts"
defaultMessage="Manage rules"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

node scripts/i18n_check --fix should fix any removed ids. our extraction tools automatically detect changed messages for retranslation so devs dont ahve to worry about it.

@azasypkin azasypkin removed the request for review from a team June 18, 2021 06:05
@katrin-freihofner katrin-freihofner dismissed weltenwort’s stale review June 18, 2021 12:24

Moved this to a separate issue: #102485

Copy link
Member

@jasonrhodes jasonrhodes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM -- we should change the associated method names too so we don't get very confused later but we can do that separately.

Copy link
Contributor

@stephmilovic stephmilovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 📏 📐

Copy link
Contributor

@justinkambic justinkambic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few minor questions - LMK your thoughts.

@@ -114,7 +114,7 @@ export const ToggleAlertFlyoutButtonComponent: React.FC<Props> = ({
},
{
id: ALERT_CONTEXT_SELECT_TYPE_PANEL_ID,
title: 'create alerts',
title: 'Create rules',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should translate this title.

We can add the string to the list of translations in the dedicated file, and reference it here.

Suggested change
title: 'Create rules',
title: i18n.translate('xpack.uptime.alerts.createRulesPanel.title', { defaultMessage: 'Create rules' }),

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, I will add that.

@@ -8,11 +8,11 @@
import { i18n } from '@kbn/i18n';

export const ENABLE_STATUS_ALERT = i18n.translate('xpack.uptime.monitorList.enableDownAlert', {
defaultMessage: 'Enable status alert',
defaultMessage: 'Enable rule',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we lose some context here? Can we call it Enable status rule or Enable status check rule?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand what you mean, I had the same thought but was wondering if it is ok as the column header says Status alert.

Copy link
Contributor

@shahzad31 shahzad31 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for doing this.

keeping kibana CI Happy can be a challenge and who doesn't love a designer who can also write code :)

@shahzad31
Copy link
Contributor

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
apm 4.3MB 4.3MB +2.0B
infra 1.7MB 1.7MB +5.0B
monitoring 730.9KB 730.8KB -5.0B
observability 464.5KB 464.5KB -1.0B
uptime 1.1MB 1.1MB +319.0B
total +320.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
infra 141.4KB 141.4KB -2.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@katrin-freihofner katrin-freihofner merged commit 65de579 into elastic:master Jun 22, 2021
@katrin-freihofner katrin-freihofner deleted the rename-alerts-to-rules branch June 22, 2021 11:15
katrin-freihofner added a commit that referenced this pull request Jun 22, 2021
…uptime) from alerts to rules (#100918) (#102893)

Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
Co-authored-by: Jonathan Buttner <56361221+jonathan-buttner@users.noreply.github.com>
Co-authored-by: Steph Milovic <stephanie.milovic@elastic.co>

Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
Co-authored-by: Jonathan Buttner <56361221+jonathan-buttner@users.noreply.github.com>
Co-authored-by: Steph Milovic <stephanie.milovic@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:APM All issues that need APM UI Team support Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v7.14.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.