File tree Expand file tree Collapse file tree 5 files changed +19
-6
lines changed
packages/orchestrator-ui-components Expand file tree Collapse file tree 5 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @orchestrator-ui/orchestrator-ui-components ' : patch
3+ ---
4+
5+ Display orchestrator-ui-library version in header
Original file line number Diff line number Diff line change 2323 ],
2424 "scripts" : {
2525 "test" : " jest" ,
26- "build" : " tsup src/index.ts --format esm --dts --tsconfig tsconfig.build.json" ,
26+ "generate-version" : " node -p \" 'export const ORCHESTRATOR_UI_LIBRARY_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > src/configuration/version.ts && prettier --write src/configuration/version.ts" ,
27+ "build" : " npm run generate-version && tsup src/index.ts --format esm --dts --tsconfig tsconfig.build.json" ,
2728 "tsc" : " tsc --noEmit" ,
2829 "lint" : " eslint \" src/**/*.ts*\" " ,
2930 "dev" : " npm run build -- --watch" ,
Original file line number Diff line number Diff line change 99 EuiHeaderLogo ,
1010 EuiHeaderSection ,
1111 EuiHeaderSectionItem ,
12+ EuiToolTip ,
1213} from '@elastic/eui' ;
1314import type { EuiThemeColorMode } from '@elastic/eui' ;
1415
@@ -19,6 +20,7 @@ import {
1920} from '@/components' ;
2021import { WfoAppLogo } from '@/components/WfoPageTemplate/WfoPageHeader/WfoAppLogo' ;
2122import { getWfoPageHeaderStyles } from '@/components/WfoPageTemplate/WfoPageHeader/styles' ;
23+ import { ORCHESTRATOR_UI_LIBRARY_VERSION } from '@/configuration' ;
2224import {
2325 useGetOrchestratorConfig ,
2426 useOrchestratorTheme ,
@@ -50,11 +52,14 @@ export const WfoPageHeader: FC<WfoPageHeaderProps> = ({
5052 return (
5153 < EuiHeader css = { getHeaderStyle ( navigationHeight ) } >
5254 < EuiHeaderSection >
53- < EuiHeaderSectionItem >
54- < EuiHeaderLogo iconType = { ( ) => < WfoAppLogo /> } />
55- < div css = { appNameStyle } > { getAppLogo ( navigationHeight ) } </ div >
56- </ EuiHeaderSectionItem >
57-
55+ < EuiToolTip content = { 'v' + ORCHESTRATOR_UI_LIBRARY_VERSION } >
56+ < EuiHeaderSectionItem css = { { paddingTop : theme . size . xs } } >
57+ < EuiHeaderLogo iconType = { ( ) => < WfoAppLogo /> } />
58+ < div css = { appNameStyle } >
59+ { getAppLogo ( navigationHeight ) }
60+ </ div >
61+ </ EuiHeaderSectionItem >
62+ </ EuiToolTip >
5863 < EuiHeaderSectionItem >
5964 < WfoEnvironmentBadge />
6065 </ EuiHeaderSectionItem >
Original file line number Diff line number Diff line change 11export * from './constants' ;
22export * from './policy-resources' ;
3+ export * from './version' ;
Original file line number Diff line number Diff line change 1+ export const ORCHESTRATOR_UI_LIBRARY_VERSION = '1.38.0' ;
You can’t perform that action at this time.
0 commit comments