mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-09 00:18:00 +01:00
feat: New in Unleash - Lifecycle 2.0 (#9112)
This commit is contained in:
parent
e9db8ab8f0
commit
666b5b7000
BIN
frontend/src/assets/img/lifecycle-stages.png
Normal file
BIN
frontend/src/assets/img/lifecycle-stages.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
@ -18,9 +18,10 @@ import {
|
|||||||
} from './NewInUnleashItem';
|
} from './NewInUnleashItem';
|
||||||
import { usePlausibleTracker } from 'hooks/usePlausibleTracker';
|
import { usePlausibleTracker } from 'hooks/usePlausibleTracker';
|
||||||
import { ReactComponent as SignalsPreview } from 'assets/img/signals.svg';
|
import { ReactComponent as SignalsPreview } from 'assets/img/signals.svg';
|
||||||
|
import LifecycleStagesImage from 'assets/img/lifecycle-stages.png';
|
||||||
import LinearScaleIcon from '@mui/icons-material/LinearScale';
|
import LinearScaleIcon from '@mui/icons-material/LinearScale';
|
||||||
|
import MonitorHeartIcon from '@mui/icons-material/MonitorHeartOutlined';
|
||||||
import { useNavigate } from 'react-router-dom';
|
import { useNavigate } from 'react-router-dom';
|
||||||
import { ReactComponent as EventTimelinePreview } from 'assets/img/eventTimeline.svg';
|
|
||||||
import { useHighlightContext } from 'component/common/Highlight/HighlightContext';
|
import { useHighlightContext } from 'component/common/Highlight/HighlightContext';
|
||||||
|
|
||||||
const StyledNewInUnleash = styled('div')(({ theme }) => ({
|
const StyledNewInUnleash = styled('div')(({ theme }) => ({
|
||||||
@ -77,6 +78,10 @@ const StyledLinearScaleIcon = styled(LinearScaleIcon)(({ theme }) => ({
|
|||||||
color: theme.palette.primary.main,
|
color: theme.palette.primary.main,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
const StyledImg = styled('img')(() => ({
|
||||||
|
maxWidth: '100%',
|
||||||
|
}));
|
||||||
|
|
||||||
interface INewInUnleashProps {
|
interface INewInUnleashProps {
|
||||||
mode?: NavigationMode;
|
mode?: NavigationMode;
|
||||||
onMiniModeClick?: () => void;
|
onMiniModeClick?: () => void;
|
||||||
@ -93,10 +98,33 @@ export const NewInUnleash = ({
|
|||||||
'new-in-unleash-seen:v1',
|
'new-in-unleash-seen:v1',
|
||||||
new Set(),
|
new Set(),
|
||||||
);
|
);
|
||||||
const { isOss, isEnterprise } = useUiConfig();
|
const { isEnterprise } = useUiConfig();
|
||||||
const signalsEnabled = useUiFlag('signals');
|
const signalsEnabled = useUiFlag('signals');
|
||||||
|
const improvedLifecycleEnabled = useUiFlag('lifecycleImprovements');
|
||||||
|
|
||||||
const items: NewInUnleashItemDetails[] = [
|
const items: NewInUnleashItemDetails[] = [
|
||||||
|
{
|
||||||
|
label: 'Lifecycle 2.0',
|
||||||
|
summary: 'Track progress of your feature flags',
|
||||||
|
icon: <MonitorHeartIcon color='primary' />,
|
||||||
|
preview: (
|
||||||
|
<StyledImg
|
||||||
|
src={LifecycleStagesImage}
|
||||||
|
alt='Define → Develop → Production → Cleanup → Archived'
|
||||||
|
/>
|
||||||
|
),
|
||||||
|
docsLink:
|
||||||
|
'https://docs.getunleash.io/reference/feature-toggles#feature-flag-lifecycle',
|
||||||
|
show: improvedLifecycleEnabled,
|
||||||
|
longDescription: (
|
||||||
|
<p>
|
||||||
|
We have updated the names, icons, and colors for the
|
||||||
|
different stages of a feature flag's lifecycle. The stages
|
||||||
|
convey the same meanings as before but now have clearer
|
||||||
|
names that better indicate where you are in the lifecycle.
|
||||||
|
</p>
|
||||||
|
),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: 'Signals & Actions',
|
label: 'Signals & Actions',
|
||||||
summary: 'Listen to signals via Webhooks',
|
summary: 'Listen to signals via Webhooks',
|
||||||
@ -133,36 +161,6 @@ export const NewInUnleash = ({
|
|||||||
</>
|
</>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
|
||||||
label: 'Event timeline',
|
|
||||||
summary: 'Keep track of recent events across all your projects',
|
|
||||||
icon: <StyledLinearScaleIcon />,
|
|
||||||
preview: <EventTimelinePreview />,
|
|
||||||
onCheckItOut: () => {
|
|
||||||
highlight('eventTimeline');
|
|
||||||
window.scrollTo({
|
|
||||||
top: 0,
|
|
||||||
behavior: 'smooth',
|
|
||||||
});
|
|
||||||
},
|
|
||||||
docsLink:
|
|
||||||
'https://docs.getunleash.io/reference/events#event-timeline',
|
|
||||||
show: !isOss(),
|
|
||||||
longDescription: (
|
|
||||||
<>
|
|
||||||
<p>
|
|
||||||
Monitor recent events across all your projects in one
|
|
||||||
unified timeline.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
You can access the event timeline from the top menu to
|
|
||||||
get an overview of changes and quickly identify and
|
|
||||||
debug any issues.
|
|
||||||
</p>
|
|
||||||
</>
|
|
||||||
),
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
const visibleItems = items.filter(
|
const visibleItems = items.filter(
|
||||||
|
Loading…
Reference in New Issue
Block a user