Skip to content

Commit

Permalink
[Uptime] Use proper useEuiTheme vars !! (#203637)
Browse files Browse the repository at this point in the history
## Summary

fixes #203340 !!


Overview page 
<img width="1728" alt="image"
src="https://github.com/user-attachments/assets/80ab4c2a-9999-4a83-b355-130ca7dedc01"
/>

<img width="1728" alt="image"
src="https://github.com/user-attachments/assets/dcc5e564-7047-4c9c-aba7-1a126ea2f9b9"
/>

details page 
<img width="1728" alt="image"
src="https://github.com/user-attachments/assets/d7e414d3-e3f3-4b7b-aab0-799d099b63c2"
/>

---------

Co-authored-by: kibanamachine <[email protected]>
  • Loading branch information
shahzad31 and kibanamachine authored Dec 17, 2024
1 parent 303eee8 commit 78f1d17
Show file tree
Hide file tree
Showing 37 changed files with 903 additions and 1,735 deletions.
5 changes: 3 additions & 2 deletions x-pack/solutions/observability/plugins/uptime/kibana.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"triggersActionsUi",
"usageCollection",
"unifiedSearch",
"bfetch"
"bfetch",
"charts"
],
"optionalPlugins": [
"cloud",
Expand All @@ -57,4 +58,4 @@
"observability"
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import { UMUpdateBadge } from '../lib/lib';
import {
UptimeRefreshContextProvider,
UptimeSettingsContextProvider,
UptimeThemeContextProvider,
UptimeStartupPluginsContextProvider,
} from '../contexts';
import { CommonlyUsedRange } from '../components/common/uptime_date_picker';
Expand All @@ -34,17 +33,6 @@ import { kibanaService } from '../state/kibana_service';
import { ActionMenu } from '../components/common/header/action_menu';
import { UptimeDataViewContextProvider } from '../contexts/uptime_data_view_context';

export interface UptimeAppColors {
danger: string;
dangerBehindText: string;
success: string;
gray: string;
range: string;
mean: string;
warning: string;
lightestShade: string;
}

export interface UptimeAppProps {
basePath: string;
canSave: boolean;
Expand Down Expand Up @@ -131,27 +119,25 @@ const Application = (props: UptimeAppProps) => {
<EuiThemeProvider darkMode={darkMode}>
<UptimeRefreshContextProvider>
<UptimeSettingsContextProvider {...props}>
<UptimeThemeContextProvider darkMode={darkMode}>
<UptimeStartupPluginsContextProvider {...startPlugins}>
<UptimeDataViewContextProvider dataViews={startPlugins.dataViews}>
<PerformanceContextProvider>
<div className={APP_WRAPPER_CLASS} data-test-subj="uptimeApp">
<RedirectAppLinks
coreStart={{
application: core.application,
}}
>
<InspectorContextProvider>
<UptimeAlertsFlyoutWrapper />
<PageRouter />
<ActionMenu appMountParameters={appMountParameters} />
</InspectorContextProvider>
</RedirectAppLinks>
</div>
</PerformanceContextProvider>
</UptimeDataViewContextProvider>
</UptimeStartupPluginsContextProvider>
</UptimeThemeContextProvider>
<UptimeStartupPluginsContextProvider {...startPlugins}>
<UptimeDataViewContextProvider dataViews={startPlugins.dataViews}>
<PerformanceContextProvider>
<div className={APP_WRAPPER_CLASS} data-test-subj="uptimeApp">
<RedirectAppLinks
coreStart={{
application: core.application,
}}
>
<InspectorContextProvider>
<UptimeAlertsFlyoutWrapper />
<PageRouter />
<ActionMenu appMountParameters={appMountParameters} />
</InspectorContextProvider>
</RedirectAppLinks>
</div>
</PerformanceContextProvider>
</UptimeDataViewContextProvider>
</UptimeStartupPluginsContextProvider>
</UptimeSettingsContextProvider>
</UptimeRefreshContextProvider>
</EuiThemeProvider>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 78f1d17

Please sign in to comment.