Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: New in Unleash - Lifecycle 2.0 #9112

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added frontend/src/assets/img/lifecycle-stages.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ import {
} from './NewInUnleashItem';
import { usePlausibleTracker } from 'hooks/usePlausibleTracker';
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 MonitorHeartIcon from '@mui/icons-material/MonitorHeartOutlined';
import { useNavigate } from 'react-router-dom';
import { ReactComponent as EventTimelinePreview } from 'assets/img/eventTimeline.svg';
import { useHighlightContext } from 'component/common/Highlight/HighlightContext';

const StyledNewInUnleash = styled('div')(({ theme }) => ({
Expand Down Expand Up @@ -77,6 +78,10 @@ const StyledLinearScaleIcon = styled(LinearScaleIcon)(({ theme }) => ({
color: theme.palette.primary.main,
}));

const StyledImg = styled('img')(() => ({
maxWidth: '100%',
}));

interface INewInUnleashProps {
mode?: NavigationMode;
onMiniModeClick?: () => void;
Expand All @@ -93,10 +98,33 @@ export const NewInUnleash = ({
'new-in-unleash-seen:v1',
new Set(),
);
const { isOss, isEnterprise } = useUiConfig();
const { isEnterprise } = useUiConfig();
const signalsEnabled = useUiFlag('signals');
const improvedLifecycleEnabled = useUiFlag('lifecycleImprovements');

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 colours for the
different stages of the lifecycle for a feature flag. The
stages indicate the same as before just with some clearer
names of where in the lifecycle you are.
</p>
),
},
{
label: 'Signals & Actions',
summary: 'Listen to signals via Webhooks',
Expand Down Expand Up @@ -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(
Expand Down
Loading