Skip to content

Commit

Permalink
[Gitar] Cleaning up stale flag: purchaseAdditionalEnvironments with v…
Browse files Browse the repository at this point in the history
…alue false (#8955)

[![Gitar](https://raw.githubusercontent.com/gitarcode/.github/main/assets/gitar-banner.svg)](https://gitar.ai)
This automated PR permanently removes the
`purchaseAdditionalEnvironments` feature flag.
  
  ---
This automated PR was generated by [Gitar](https://gitar.ai). View
[docs](https://gitar.ai/docs).

---------

Co-authored-by: Gitar <[email protected]>
Co-authored-by: sjaanus <[email protected]>
  • Loading branch information
3 people authored Dec 11, 2024
1 parent eb7e2a6 commit 8c189ca
Show file tree
Hide file tree
Showing 14 changed files with 1 addition and 921 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import { TextCell } from 'component/common/Table/cells/TextCell/TextCell';
import type { IEnvironment } from 'interfaces/environments';
import { useUiFlag } from 'hooks/useUiFlag';
import { PremiumFeature } from 'component/common/PremiumFeature/PremiumFeature';
import { OrderEnvironments } from './OrderEnvironments/OrderEnvironments';
const StyledAlert = styled(Alert)(({ theme }) => ({
marginBottom: theme.spacing(4),
}));
Expand All @@ -38,9 +37,6 @@ export const EnvironmentTable = () => {
const { setToastApiError } = useToast();
const { environments, mutateEnvironments } = useEnvironments();
const isFeatureEnabled = useUiFlag('EEA');
const isPurchaseAdditionalEnvironmentsEnabled = useUiFlag(
'purchaseAdditionalEnvironments',
);

const moveListItem: MoveListItem = useCallback(
async (dragIndex: number, dropIndex: number, save = false) => {
Expand Down Expand Up @@ -116,7 +112,7 @@ export const EnvironmentTable = () => {
<PageHeader title={`Environments (${count})`} actions={headerActions} />
);

if (!isFeatureEnabled && !isPurchaseAdditionalEnvironmentsEnabled) {
if (!isFeatureEnabled) {
return (
<PageContent header={header}>
<PremiumFeature feature='environments' />
Expand All @@ -126,7 +122,6 @@ export const EnvironmentTable = () => {

return (
<PageContent header={header}>
<OrderEnvironments />
<StyledAlert severity='info'>
This is the order of environments that you have today in each
feature flag. Rearranging them here will change also the order
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 8c189ca

Please sign in to comment.