1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

chore: reorganize product data in footer (#8030)

## About the changes
Instead of having the plan at the end, move it next to the product name
and display the build number at last
This commit is contained in:
Gastón Fournier 2024-09-02 11:53:57 +02:00 committed by GitHub
parent 1bc0f97101
commit d7b1e70e68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 16 deletions

View File

@ -17,15 +17,11 @@ export const ApiDetails = (props: IApiDetailsProps): ReactElement => {
const environment = props.uiConfig.environment;
const updateNotification = formatUpdateNotification(props.uiConfig);
const buildInfo = buildNumber ? <small> ({buildNumber})</small> : '';
const buildInfo = buildNumber ? <small>({buildNumber})</small> : '';
return (
<section title='API details'>
<FooterTitle>
{name} {version} {buildInfo}
<ConditionallyRender
condition={Boolean(environment)}
show={<small> ({environment})</small>}
/>
{name} {environment ? environment : ''} {version} {buildInfo}
</FooterTitle>
<ConditionallyRender
condition={Boolean(updateNotification)}

View File

@ -11,12 +11,9 @@ exports[`renders correctly with empty version 1`] = `
>
Unleash
test
<small>
(
test
)
</small>
</h2>
<br />
<small>
@ -46,13 +43,10 @@ exports[`renders correctly with ui-config 1`] = `
>
Unleash
test
1.1.0
<small>
(
test
)
</small>
</h2>
<br />
<small>
@ -82,6 +76,7 @@ exports[`renders correctly with versionInfo 1`] = `
>
Unleash
1.2.3
</h2>
@ -118,6 +113,7 @@ exports[`renders correctly without uiConfig 1`] = `
>
Unleash
1.1.0
</h2>

View File

@ -24,6 +24,7 @@ exports[`should render DrawerMenu 1`] = `
>
Unleash
5.x
</h2>
@ -570,6 +571,7 @@ exports[`should render DrawerMenu with "features" selected 1`] = `
>
Unleash
5.x
</h2>