mirror of
https://github.com/Unleash/unleash.git
synced 2025-05-31 01:16:01 +02:00
[Gitar] Cleaning up stale flag: killInsightsUI with value false (#8002)
Co-authored-by: Gitar <noreply@gitar.co> Co-authored-by: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com>
This commit is contained in:
parent
2a35976081
commit
b26fb8992d
@ -20,7 +20,6 @@ import AccordionDetails from '@mui/material/AccordionDetails';
|
|||||||
import AccordionSummary from '@mui/material/AccordionSummary';
|
import AccordionSummary from '@mui/material/AccordionSummary';
|
||||||
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
|
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
|
||||||
import FlagIcon from '@mui/icons-material/OutlinedFlag';
|
import FlagIcon from '@mui/icons-material/OutlinedFlag';
|
||||||
import { useUiFlag } from 'hooks/useUiFlag';
|
|
||||||
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
|
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
|
||||||
import useProjectOverview from 'hooks/api/getters/useProjectOverview/useProjectOverview';
|
import useProjectOverview from 'hooks/api/getters/useProjectOverview/useProjectOverview';
|
||||||
import { ProjectIcon } from 'component/common/ProjectIcon/ProjectIcon';
|
import { ProjectIcon } from 'component/common/ProjectIcon/ProjectIcon';
|
||||||
@ -156,7 +155,6 @@ export const PrimaryNavigationList: FC<{
|
|||||||
activeItem?: string;
|
activeItem?: string;
|
||||||
}> = ({ mode, onClick, activeItem }) => {
|
}> = ({ mode, onClick, activeItem }) => {
|
||||||
const DynamicListItem = mode === 'mini' ? MiniListItem : FullListItem;
|
const DynamicListItem = mode === 'mini' ? MiniListItem : FullListItem;
|
||||||
const killInsightsDashboard = useUiFlag('killInsightsUI');
|
|
||||||
const { isOss } = useUiConfig();
|
const { isOss } = useUiConfig();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -186,7 +184,7 @@ export const PrimaryNavigationList: FC<{
|
|||||||
<PlaygroundIcon />
|
<PlaygroundIcon />
|
||||||
</DynamicListItem>
|
</DynamicListItem>
|
||||||
<ConditionallyRender
|
<ConditionallyRender
|
||||||
condition={!killInsightsDashboard && !isOss()}
|
condition={!isOss()}
|
||||||
show={
|
show={
|
||||||
<DynamicListItem
|
<DynamicListItem
|
||||||
href='/insights'
|
href='/insights'
|
||||||
|
@ -36,7 +36,6 @@ import { Notifications } from 'component/common/Notifications/Notifications';
|
|||||||
import { useAdminRoutes } from 'component/admin/useAdminRoutes';
|
import { useAdminRoutes } from 'component/admin/useAdminRoutes';
|
||||||
import InviteLinkButton from './InviteLink/InviteLinkButton/InviteLinkButton';
|
import InviteLinkButton from './InviteLink/InviteLinkButton/InviteLinkButton';
|
||||||
import { useUiFlag } from 'hooks/useUiFlag';
|
import { useUiFlag } from 'hooks/useUiFlag';
|
||||||
import { Badge } from '../../common/Badge/Badge';
|
|
||||||
|
|
||||||
const HeaderComponent = styled(AppBar)(({ theme }) => ({
|
const HeaderComponent = styled(AppBar)(({ theme }) => ({
|
||||||
backgroundColor: theme.palette.background.paper,
|
backgroundColor: theme.palette.background.paper,
|
||||||
@ -117,23 +116,6 @@ const styledIconProps = (theme: Theme) => ({
|
|||||||
|
|
||||||
const StyledLink = styled(Link)(({ theme }) => focusable(theme));
|
const StyledLink = styled(Link)(({ theme }) => focusable(theme));
|
||||||
|
|
||||||
const StyledText = styled('div')(({ theme }) => ({
|
|
||||||
display: 'flex',
|
|
||||||
alignItems: 'center',
|
|
||||||
gap: theme.spacing(1),
|
|
||||||
}));
|
|
||||||
|
|
||||||
const StyledLinkWithBetaBadge = ({
|
|
||||||
title,
|
|
||||||
to,
|
|
||||||
}: { title: string; to: string }) => (
|
|
||||||
<StyledLink to={to} sx={{ margin: 0 }}>
|
|
||||||
<StyledText>
|
|
||||||
<span>{title}</span> <Badge color='success'>Beta</Badge>
|
|
||||||
</StyledText>
|
|
||||||
</StyledLink>
|
|
||||||
);
|
|
||||||
|
|
||||||
const StyledIconButton = styled(IconButton)<{
|
const StyledIconButton = styled(IconButton)<{
|
||||||
component?: 'a' | 'button';
|
component?: 'a' | 'button';
|
||||||
href?: string;
|
href?: string;
|
||||||
@ -164,7 +146,6 @@ const OldHeader: VFC = () => {
|
|||||||
const onAdminClose = () => setAdminRef(null);
|
const onAdminClose = () => setAdminRef(null);
|
||||||
const onConfigureClose = () => setConfigRef(null);
|
const onConfigureClose = () => setConfigRef(null);
|
||||||
const celebatoryUnleash = useUiFlag('celebrateUnleash');
|
const celebatoryUnleash = useUiFlag('celebrateUnleash');
|
||||||
const killInsightsDashboard = useUiFlag('killInsightsUI');
|
|
||||||
|
|
||||||
const routes = getRoutes();
|
const routes = getRoutes();
|
||||||
const adminRoutes = useAdminRoutes();
|
const adminRoutes = useAdminRoutes();
|
||||||
@ -242,7 +223,7 @@ const OldHeader: VFC = () => {
|
|||||||
<StyledLink to={'/search'}>Search</StyledLink>
|
<StyledLink to={'/search'}>Search</StyledLink>
|
||||||
<StyledLink to='/playground'>Playground</StyledLink>
|
<StyledLink to='/playground'>Playground</StyledLink>
|
||||||
<ConditionallyRender
|
<ConditionallyRender
|
||||||
condition={!killInsightsDashboard && !isOss()}
|
condition={!isOss()}
|
||||||
show={
|
show={
|
||||||
<StyledLink to='/insights'>Insights</StyledLink>
|
<StyledLink to='/insights'>Insights</StyledLink>
|
||||||
}
|
}
|
||||||
|
@ -129,7 +129,6 @@ exports[`returns all baseRoutes 1`] = `
|
|||||||
"menu": {
|
"menu": {
|
||||||
"mobile": true,
|
"mobile": true,
|
||||||
},
|
},
|
||||||
"notFlag": "killInsightsUI",
|
|
||||||
"path": "/insights",
|
"path": "/insights",
|
||||||
"title": "Insights",
|
"title": "Insights",
|
||||||
"type": "protected",
|
"type": "protected",
|
||||||
|
@ -151,7 +151,6 @@ export const routes: IRoute[] = [
|
|||||||
component: Insights,
|
component: Insights,
|
||||||
type: 'protected',
|
type: 'protected',
|
||||||
menu: { mobile: true },
|
menu: { mobile: true },
|
||||||
notFlag: 'killInsightsUI',
|
|
||||||
enterprise: true,
|
enterprise: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -72,7 +72,6 @@ export type UiFlags = {
|
|||||||
featureSearchFeedback?: Variant;
|
featureSearchFeedback?: Variant;
|
||||||
enableLicense?: boolean;
|
enableLicense?: boolean;
|
||||||
adminTokenKillSwitch?: boolean;
|
adminTokenKillSwitch?: boolean;
|
||||||
killInsightsUI?: boolean;
|
|
||||||
feedbackComments?: Variant;
|
feedbackComments?: Variant;
|
||||||
displayUpgradeEdgeBanner?: boolean;
|
displayUpgradeEdgeBanner?: boolean;
|
||||||
showInactiveUsers?: boolean;
|
showInactiveUsers?: boolean;
|
||||||
|
@ -120,7 +120,6 @@ exports[`should create default config 1`] = `
|
|||||||
},
|
},
|
||||||
"filterInvalidClientMetrics": false,
|
"filterInvalidClientMetrics": false,
|
||||||
"googleAuthEnabled": false,
|
"googleAuthEnabled": false,
|
||||||
"killInsightsUI": false,
|
|
||||||
"killScheduledChangeRequestCache": false,
|
"killScheduledChangeRequestCache": false,
|
||||||
"maintenanceMode": false,
|
"maintenanceMode": false,
|
||||||
"manyStrategiesPagination": false,
|
"manyStrategiesPagination": false,
|
||||||
|
@ -34,7 +34,6 @@ export type IFlagKey =
|
|||||||
| 'edgeBulkMetrics'
|
| 'edgeBulkMetrics'
|
||||||
| 'extendedUsageMetrics'
|
| 'extendedUsageMetrics'
|
||||||
| 'adminTokenKillSwitch'
|
| 'adminTokenKillSwitch'
|
||||||
| 'killInsightsUI'
|
|
||||||
| 'feedbackComments'
|
| 'feedbackComments'
|
||||||
| 'showInactiveUsers'
|
| 'showInactiveUsers'
|
||||||
| 'killScheduledChangeRequestCache'
|
| 'killScheduledChangeRequestCache'
|
||||||
@ -182,10 +181,6 @@ const flags: IFlags = {
|
|||||||
process.env.UNLEASH_EXPERIMENTAL_ADMIN_TOKEN_KILL_SWITCH,
|
process.env.UNLEASH_EXPERIMENTAL_ADMIN_TOKEN_KILL_SWITCH,
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
killInsightsUI: parseEnvVarBoolean(
|
|
||||||
process.env.UNLEASH_EXPERIMENTAL_KILL_INSIGHTS_UI,
|
|
||||||
false,
|
|
||||||
),
|
|
||||||
outdatedSdksBanner: parseEnvVarBoolean(
|
outdatedSdksBanner: parseEnvVarBoolean(
|
||||||
process.env.UNLEASH_EXPERIMENTAL_OUTDATED_SDKS_BANNER,
|
process.env.UNLEASH_EXPERIMENTAL_OUTDATED_SDKS_BANNER,
|
||||||
false,
|
false,
|
||||||
|
@ -43,7 +43,6 @@ process.nextTick(async () => {
|
|||||||
stripHeadersOnAPI: true,
|
stripHeadersOnAPI: true,
|
||||||
celebrateUnleash: true,
|
celebrateUnleash: true,
|
||||||
featureSearchFeedbackPosting: true,
|
featureSearchFeedbackPosting: true,
|
||||||
killInsightsUI: false,
|
|
||||||
userAccessUIEnabled: true,
|
userAccessUIEnabled: true,
|
||||||
outdatedSdksBanner: true,
|
outdatedSdksBanner: true,
|
||||||
disableShowContextFieldSelectionValues: false,
|
disableShowContextFieldSelectionValues: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user