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

chore: swap release template instruction svgs for pngs (#9642)

This commit is contained in:
Simon Hornby 2025-03-28 10:47:36 +02:00 committed by GitHub
parent 78dfbde007
commit 8793d9e632
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 30 additions and 280 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 535 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 535 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 509 KiB

View File

@ -23,7 +23,7 @@ import MonitorHeartIcon from '@mui/icons-material/MonitorHeartOutlined';
import { useNavigate } from 'react-router-dom';
import { formatAssetPath } from 'utils/formatPath';
import FactCheckOutlinedIcon from '@mui/icons-material/FactCheckOutlined';
import { ReactComponent as ReleaseManagementPreview } from 'assets/img/releaseTemplatePreview.svg';
import ReleaseTemplatePreviewImage from 'assets/img/releaseTemplatePreview.png';
const StyledNewInUnleash = styled('div')(({ theme }) => ({
margin: theme.spacing(2, 0, 1, 0),
@ -167,7 +167,12 @@ export const NewInUnleash = ({
label: 'Release templates',
summary: 'Save time and optimize your process',
icon: <StyledReleaseManagementIcon />,
preview: <ReleaseManagementPreview />,
preview: (
<StyledImg
src={formatAssetPath(ReleaseTemplatePreviewImage)}
alt='Release templates preview'
/>
),
onCheckItOut: () => navigate('/release-templates'),
docsLink: 'https://docs.getunleash.io/reference/release-templates',
show: isEnterprise() && releasePlansEnabled,

View File

@ -13,11 +13,12 @@ import { useUiFlag } from 'hooks/useUiFlag';
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
import { PremiumFeature } from 'component/common/PremiumFeature/PremiumFeature';
import { RELEASE_PLAN_TEMPLATE_CREATE } from '@server/types/permissions';
import { ReactComponent as HowToApplyReleaseTemplates } from 'assets/img/howToApplyReleaseTemplates.svg';
import { ReactComponent as HowToApplyReleaseTemplatesDark } from 'assets/img/howToApplyReleaseTemplatesDark.svg';
import HowToApplyReleaseTemplatesImage from 'assets/img/howToApplyReleaseTemplates.png';
import HowToApplyReleaseTemplatesDarkImage from 'assets/img/howToApplyReleaseTemplatesDark.png';
import type { Link as RouterLink } from 'react-router-dom';
import MenuBook from '@mui/icons-material/MenuBook';
import { ThemeMode } from 'component/common/ThemeMode/ThemeMode';
import { formatAssetPath } from 'utils/formatPath';
const StyledLink = styled(Link<typeof RouterLink | 'a'>)(({ theme }) => ({
display: 'flex',
@ -35,6 +36,10 @@ const StyledMenuBook = styled(MenuBook)(({ theme }) => ({
fontSize: theme.spacing(2.25),
}));
const StyledImg = styled('img')(() => ({
maxWidth: '100%',
}));
const CenteredHowTo = styled(Box)(({ theme }) => ({
margin: theme.spacing(3, 0),
display: 'flex',
@ -99,8 +104,22 @@ export const ReleaseManagement = () => {
<CenteredHowTo>
<ThemeMode
darkmode={<HowToApplyReleaseTemplatesDark />}
lightmode={<HowToApplyReleaseTemplates />}
darkmode={
<StyledImg
src={formatAssetPath(
HowToApplyReleaseTemplatesDarkImage,
)}
alt='How to setup release templates'
/>
}
lightmode={
<StyledImg
src={formatAssetPath(
HowToApplyReleaseTemplatesImage,
)}
alt='How to setup release templates'
/>
}
/>
</CenteredHowTo>
<StyledLink