1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-26 13:48:33 +02:00

chore: remove semver version from footer and proxy from sdk list (#9956)

This will stop displaying the semver version for our hosted (i.e.
managed) customers, as it has become less relevant over time. It remains
valuable for self-hosted users.
This commit is contained in:
Gastón Fournier 2025-05-12 14:32:12 +02:00 committed by GitHub
parent 42f3ba5fc2
commit 8b4ad4b574
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 62 deletions

View File

@ -17,13 +17,17 @@ export const ApiDetails = (props: IApiDetailsProps): ReactElement => {
const { environment, billing } = props.uiConfig;
const updateNotification = formatUpdateNotification(props.uiConfig);
const buildInfo = buildNumber ? <small>({buildNumber})</small> : '';
const displayVersion = buildNumber ? (
<small>build {buildNumber}</small>
) : (
version
);
return (
<section title='API details'>
<FooterTitle>
{name} {environment ? environment : ''}
{billing === 'pay-as-you-go' ? ' Pay-as-You-Go' : ''} {version}{' '}
{buildInfo}
{billing === 'pay-as-you-go' ? ' Pay-as-You-Go' : ''}{' '}
{displayVersion}
</FooterTitle>
<ConditionallyRender
condition={Boolean(updateNotification)}

View File

@ -13,7 +13,6 @@ exports[`renders correctly with empty version 1`] = `
test
</h2>
<br />
<small>
@ -46,7 +45,6 @@ exports[`renders correctly with ui-config 1`] = `
test
1.1.0
</h2>
<br />
<small>
@ -78,7 +76,6 @@ exports[`renders correctly with versionInfo 1`] = `
1.2.3
</h2>
<small>
Upgrade available - Latest Enterprise release: 1.2.4
@ -115,7 +112,6 @@ exports[`renders correctly without uiConfig 1`] = `
1.1.0
</h2>
<br />
<small />

View File

@ -178,19 +178,6 @@ export const Footer: VFC = () => {
<section title='Unleash SDK'>
<FooterTitle>Frontend SDKs</FooterTitle>
<StyledList dense>
<StyledListItem>
<ListItemText
primary={
<a
href='https://docs.getunleash.io/reference/unleash-proxy'
target='_blank'
rel='noreferrer'
>
Unleash Proxy
</a>
}
/>
</StyledListItem>
<StyledListItem>
<ListItemText
primary={

View File

@ -26,7 +26,6 @@ exports[`should render DrawerMenu 1`] = `
5.x
</h2>
<br />
<small>
@ -255,26 +254,6 @@ exports[`should render DrawerMenu 1`] = `
<ul
className="MuiList-root MuiList-padding MuiList-dense css-zin4jp-MuiList-root"
>
<li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-rw9v7e-MuiListItem-root"
disabled={false}
>
<div
className="MuiListItemText-root MuiListItemText-dense css-tlelie-MuiListItemText-root"
>
<span
className="MuiTypography-root MuiTypography-body2 MuiListItemText-primary css-1f1ka7g-MuiTypography-root"
>
<a
href="https://docs.getunleash.io/reference/unleash-proxy"
rel="noreferrer"
target="_blank"
>
Unleash Proxy
</a>
</span>
</div>
</li>
<li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-rw9v7e-MuiListItem-root"
disabled={false}
@ -573,7 +552,6 @@ exports[`should render DrawerMenu with "features" selected 1`] = `
5.x
</h2>
<br />
<small>
@ -802,26 +780,6 @@ exports[`should render DrawerMenu with "features" selected 1`] = `
<ul
className="MuiList-root MuiList-padding MuiList-dense css-zin4jp-MuiList-root"
>
<li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-rw9v7e-MuiListItem-root"
disabled={false}
>
<div
className="MuiListItemText-root MuiListItemText-dense css-tlelie-MuiListItemText-root"
>
<span
className="MuiTypography-root MuiTypography-body2 MuiListItemText-primary css-1f1ka7g-MuiTypography-root"
>
<a
href="https://docs.getunleash.io/reference/unleash-proxy"
rel="noreferrer"
target="_blank"
>
Unleash Proxy
</a>
</span>
</div>
</li>
<li
className="MuiListItem-root MuiListItem-dense MuiListItem-gutters MuiListItem-padding css-rw9v7e-MuiListItem-root"
disabled={false}