mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-15 17:50:48 +02:00
chore: event timeline GA (#8552)
https://linear.app/unleash/issue/2-2682/remove-feature-flag https://linear.app/unleash/issue/2-2705/remove-experimental-tag-from-the-new-event-properties https://linear.app/unleash/issue/2-2751/remove-the-beta-badge-for-event-timeline-in-new-in-unleash Makes event timeline GA by tackling the respective tasks: - Remove `eventTimeline` feature flag - Remove `[Experimental]` tag from the new schema properties - No longer show the "beta" badge for this item in "New in Unleash"
This commit is contained in:
parent
65c7f77980
commit
1add516e49
@ -3,7 +3,6 @@ import { ConditionallyRender } from 'component/common/ConditionallyRender/Condit
|
|||||||
import { EventTimeline } from 'component/events/EventTimeline/EventTimeline';
|
import { EventTimeline } from 'component/events/EventTimeline/EventTimeline';
|
||||||
import { useEventTimelineContext } from 'component/events/EventTimeline/EventTimelineContext';
|
import { useEventTimelineContext } from 'component/events/EventTimeline/EventTimelineContext';
|
||||||
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
|
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
|
||||||
import { useUiFlag } from 'hooks/useUiFlag';
|
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
|
|
||||||
const StyledEventTimelineSlider = styled(Box)(({ theme }) => ({
|
const StyledEventTimelineSlider = styled(Box)(({ theme }) => ({
|
||||||
@ -21,10 +20,9 @@ const StyledEventTimelineWrapper = styled(Box)(({ theme }) => ({
|
|||||||
export const MainLayoutEventTimeline = () => {
|
export const MainLayoutEventTimeline = () => {
|
||||||
const { isOss } = useUiConfig();
|
const { isOss } = useUiConfig();
|
||||||
const { open: showTimeline } = useEventTimelineContext();
|
const { open: showTimeline } = useEventTimelineContext();
|
||||||
const eventTimelineEnabled = useUiFlag('eventTimeline') && !isOss();
|
|
||||||
const [isInitialLoad, setIsInitialLoad] = useState(true);
|
const [isInitialLoad, setIsInitialLoad] = useState(true);
|
||||||
|
|
||||||
const open = showTimeline && eventTimelineEnabled;
|
const open = showTimeline && !isOss();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setIsInitialLoad(false);
|
setIsInitialLoad(false);
|
||||||
|
@ -104,7 +104,6 @@ export const NewInUnleash = ({
|
|||||||
);
|
);
|
||||||
const { isOss, isEnterprise } = useUiConfig();
|
const { isOss, isEnterprise } = useUiConfig();
|
||||||
const signalsEnabled = useUiFlag('signals');
|
const signalsEnabled = useUiFlag('signals');
|
||||||
const eventTimelineEnabled = useUiFlag('eventTimeline');
|
|
||||||
|
|
||||||
const { setHighlighted } = useEventTimelineContext();
|
const { setHighlighted } = useEventTimelineContext();
|
||||||
|
|
||||||
@ -159,7 +158,7 @@ export const NewInUnleash = ({
|
|||||||
},
|
},
|
||||||
docsLink:
|
docsLink:
|
||||||
'https://docs.getunleash.io/reference/events#event-timeline',
|
'https://docs.getunleash.io/reference/events#event-timeline',
|
||||||
show: !isOss() && eventTimelineEnabled,
|
show: !isOss(),
|
||||||
longDescription: (
|
longDescription: (
|
||||||
<>
|
<>
|
||||||
<p>
|
<p>
|
||||||
@ -174,7 +173,6 @@ export const NewInUnleash = ({
|
|||||||
</p>
|
</p>
|
||||||
</>
|
</>
|
||||||
),
|
),
|
||||||
beta: true,
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -3,7 +3,6 @@ import LinearScaleIcon from '@mui/icons-material/LinearScale';
|
|||||||
import { useEventTimelineContext } from 'component/events/EventTimeline/EventTimelineContext';
|
import { useEventTimelineContext } from 'component/events/EventTimeline/EventTimelineContext';
|
||||||
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
|
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
|
||||||
import { usePlausibleTracker } from 'hooks/usePlausibleTracker';
|
import { usePlausibleTracker } from 'hooks/usePlausibleTracker';
|
||||||
import { useUiFlag } from 'hooks/useUiFlag';
|
|
||||||
|
|
||||||
const StyledHeaderEventTimelineButton = styled(IconButton, {
|
const StyledHeaderEventTimelineButton = styled(IconButton, {
|
||||||
shouldForwardProp: (prop) => prop !== 'highlighted',
|
shouldForwardProp: (prop) => prop !== 'highlighted',
|
||||||
@ -34,14 +33,13 @@ const StyledHeaderEventTimelineButton = styled(IconButton, {
|
|||||||
export const HeaderEventTimelineButton = () => {
|
export const HeaderEventTimelineButton = () => {
|
||||||
const { trackEvent } = usePlausibleTracker();
|
const { trackEvent } = usePlausibleTracker();
|
||||||
const { isOss } = useUiConfig();
|
const { isOss } = useUiConfig();
|
||||||
const eventTimeline = useUiFlag('eventTimeline') && !isOss();
|
|
||||||
const {
|
const {
|
||||||
open: showTimeline,
|
open: showTimeline,
|
||||||
setOpen: setShowTimeline,
|
setOpen: setShowTimeline,
|
||||||
highlighted,
|
highlighted,
|
||||||
} = useEventTimelineContext();
|
} = useEventTimelineContext();
|
||||||
|
|
||||||
if (!eventTimeline) return null;
|
if (isOss()) return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Tooltip
|
<Tooltip
|
||||||
|
@ -111,10 +111,8 @@ export default class EventSearchController extends Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
enrichEvents(events: IEvent[]): IEvent[] | IEnrichedEvent[] {
|
enrichEvents(events: IEvent[]): IEvent[] | IEnrichedEvent[] {
|
||||||
if (this.flagResolver.isEnabled('eventTimeline')) {
|
|
||||||
return events.map((event) => {
|
return events.map((event) => {
|
||||||
const { label, text: summary } =
|
const { label, text: summary } = this.msgFormatter.format(event);
|
||||||
this.msgFormatter.format(event);
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...event,
|
...event,
|
||||||
@ -123,8 +121,6 @@ export default class EventSearchController extends Controller {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return events;
|
|
||||||
}
|
|
||||||
|
|
||||||
maybeAnonymiseEvents(events: IEvent[]): IEvent[] {
|
maybeAnonymiseEvents(events: IEvent[]): IEvent[] {
|
||||||
if (this.flagResolver.isEnabled('anonymiseEventLog')) {
|
if (this.flagResolver.isEnabled('anonymiseEventLog')) {
|
||||||
|
@ -95,14 +95,12 @@ export const eventSchema = {
|
|||||||
label: {
|
label: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
nullable: true,
|
nullable: true,
|
||||||
description:
|
description: 'The concise, human-readable name of the event.',
|
||||||
'**[Experimental]** The concise, human-readable name of the event.',
|
|
||||||
},
|
},
|
||||||
summary: {
|
summary: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
nullable: true,
|
nullable: true,
|
||||||
description:
|
description: 'A markdown-formatted summary of the event.',
|
||||||
'**[Experimental]** A markdown-formatted summary of the event.',
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
|
@ -51,7 +51,6 @@ export type IFlagKey =
|
|||||||
| 'removeUnsafeInlineStyleSrc'
|
| 'removeUnsafeInlineStyleSrc'
|
||||||
| 'onboardingUI'
|
| 'onboardingUI'
|
||||||
| 'projectRoleAssignment'
|
| 'projectRoleAssignment'
|
||||||
| 'eventTimeline'
|
|
||||||
| 'personalDashboardUI'
|
| 'personalDashboardUI'
|
||||||
| 'trackLifecycleMetrics'
|
| 'trackLifecycleMetrics'
|
||||||
| 'purchaseAdditionalEnvironments'
|
| 'purchaseAdditionalEnvironments'
|
||||||
@ -263,10 +262,6 @@ const flags: IFlags = {
|
|||||||
process.env.UNLEASH_EXPERIMENTAL_PROJECT_ROLE_ASSIGNMENT,
|
process.env.UNLEASH_EXPERIMENTAL_PROJECT_ROLE_ASSIGNMENT,
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
eventTimeline: parseEnvVarBoolean(
|
|
||||||
process.env.UNLEASH_EXPERIMENTAL_EVENT_TIMELINE,
|
|
||||||
false,
|
|
||||||
),
|
|
||||||
personalDashboardUI: parseEnvVarBoolean(
|
personalDashboardUI: parseEnvVarBoolean(
|
||||||
process.env.UNLEASH_EXPERIMENTAL_PERSONAL_DASHBOARD_UI,
|
process.env.UNLEASH_EXPERIMENTAL_PERSONAL_DASHBOARD_UI,
|
||||||
false,
|
false,
|
||||||
|
Loading…
Reference in New Issue
Block a user