-
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
[Observability Solution][Maintenance] Move to Emotion CSS, enable Telemetry and i18n ESLint rules for all Obs plugins #177785
[Observability Solution][Maintenance] Move to Emotion CSS, enable Telemetry and i18n ESLint rules for all Obs plugins #177785
Conversation
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
…ity-solution-cleanup
…Warmer/kibana into feat/observability-solution-cleanup
@@ -60,7 +60,11 @@ export const ListStatus = ({ | |||
}} | |||
/> | |||
} | |||
actions={[<EuiButton onClick={onRetry}>{noDataRetryLabel}</EuiButton>]} | |||
actions={[ | |||
<EuiButton data-test-subj="logsExplorerListStatusButton" onClick={onRetry}> |
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.
The Telemetry ESLint rule is configured to autofix, so the CI has added these.
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.
<EuiButton data-test-subj="logsExplorerListStatusButton" onClick={onRetry}> | |
<EuiButton data-test-subj="logsExplorerListStatusRetryButton" onClick={onRetry}> |
2369e2a
to
50a0272
Compare
@@ -110,7 +110,12 @@ export const AlertsPopover = () => { | |||
{state.isAddRuleFlyoutOpen && addRuleFlyout} | |||
<EuiPopover | |||
button={ | |||
<EuiButtonEmpty onClick={togglePopover} iconType="arrowDown" iconSide="right"> | |||
<EuiButtonEmpty | |||
data-test-subj="observabilityLogsExplorerAlertsPopoverAlertsButton" |
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.
The Telemetry ESLint rule is configured to autofix, so the CI has added these.
packages/kbn-optimizer/limits.yml
Outdated
@@ -90,7 +90,7 @@ pageLoadAssetSize: | |||
licensing: 29004 | |||
links: 44490 | |||
lists: 22900 | |||
logsExplorer: 55000 | |||
logsExplorer: 57000 |
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.
Bundle was going 1.2kb over the limit
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.
CSS change for obs-ux-management files (removing the news_feed.scss file and replacing with in-line emotion for the Obs overview news feed) 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, thanks for that
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.
Obs design sign off
..._solution/logs_explorer/public/components/flyout_detail/sub_components/highlight_section.tsx
Outdated
Show resolved
Hide resolved
…ponents/flyout_detail/sub_components/highlight_section.tsx Co-authored-by: Marco Antonio Ghiani <[email protected]>
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.
logs_explorer
changes LGTM, just left a couple of code suggestions for data-test-subj
naming
…ity-solution-cleanup
Pinging @elastic/obs-knowledge-team (Team:obs-knowledge) |
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
Summary
This does two things:
Why?
Move to Emotion CSS
There were four .scss files total in the 17 Observability plugins. Two of them were empty. The remaining two had one class each. By removing the two empty files and moving to Emotion, we can remove the lines pertaining to .scss files in the CODEOWNERS file.
Enabling Telemetry and i18n ESLint rules for all Observability apps
One of the reasons for consolidating Obs apps into one folder was to create a more consistent development experience across apps in the Observability org.
By changing the eslint rule config to enable the Telemetry and i18n ESLint rules on all
.ts
andtsx
files inobservability_solution
, we enable the rule for 5 apps that did not have them enabled before and we ensure that the rule will immediately be enabled on new Observability applications at the moment of creation.Related PRs: