Skip to content

Commit a10b60e

Browse files
committed
cut plans
1 parent c91dcf8 commit a10b60e

File tree

11 files changed

+24
-169
lines changed

11 files changed

+24
-169
lines changed

apps/web/app/(all)/[workspaceSlug]/(projects)/active-cycles/header.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import { CycleIcon } from "@plane/propel/icons";
1111
import { Breadcrumbs, Header } from "@plane/ui";
1212
// components
1313
import { BreadcrumbLink } from "@/components/common/breadcrumb-link";
14-
// plane web components
15-
import { UpgradeBadge } from "@/plane-web/components/workspace/upgrade-badge";
1614

1715
export const WorkspaceActiveCycleHeader = observer(function WorkspaceActiveCycleHeader() {
1816
const { t } = useTranslation();
@@ -29,7 +27,6 @@ export const WorkspaceActiveCycleHeader = observer(function WorkspaceActiveCycle
2927
}
3028
/>
3129
</Breadcrumbs>
32-
<UpgradeBadge size="md" />
3330
</Header.LeftItem>
3431
</Header>
3532
);

apps/web/ce/components/active-cycles/root.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
* See the LICENSE file for details.
55
*/
66

7-
// local imports
8-
import { WorkspaceActiveCyclesUpgrade } from "./workspace-active-cycles-upgrade";
9-
107
export function WorkspaceActiveCyclesRoot() {
11-
return <WorkspaceActiveCyclesUpgrade />;
8+
return null;
129
}

apps/web/ce/components/issues/bulk-operations/root.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
*/
66

77
import { observer } from "mobx-react";
8-
// components
9-
import { BulkOperationsUpgradeBanner } from "@/components/issues/bulk-operations/upgrade-banner";
108
// hooks
119
import { useMultipleSelectStore } from "@/hooks/store/use-multiple-select-store";
1210
import type { TSelectionHelper } from "@/hooks/use-multiple-select";
@@ -16,12 +14,6 @@ type Props = {
1614
selectionHelpers: TSelectionHelper;
1715
};
1816

19-
export const IssueBulkOperationsRoot = observer(function IssueBulkOperationsRoot(props: Props) {
20-
const { className, selectionHelpers } = props;
21-
// store hooks
22-
const { isSelectionActive } = useMultipleSelectStore();
23-
24-
if (!isSelectionActive || selectionHelpers.isSelectionDisabled) return null;
25-
26-
return <BulkOperationsUpgradeBanner className={className} />;
17+
export const IssueBulkOperationsRoot = observer(function IssueBulkOperationsRoot(_props: Props) {
18+
return null;
2719
});

apps/web/ce/components/pages/editor/embed/issue-embed-upgrade-card.tsx

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,6 @@
44
* See the LICENSE file for details.
55
*/
66

7-
// plane imports
8-
import { getButtonStyling } from "@plane/propel/button";
9-
import { cn } from "@plane/utils";
10-
// components
11-
import { ProIcon } from "@/components/common/pro-icon";
12-
13-
export function IssueEmbedUpgradeCard(props: any) {
14-
return (
15-
<div
16-
className={cn(
17-
"flex w-full items-center justify-between gap-5 rounded-md border-[0.5px] border-subtle bg-layer-1 px-5 py-2 shadow-raised-100 max-md:flex-wrap",
18-
{
19-
"border-2": props.selected,
20-
}
21-
)}
22-
>
23-
<div className="flex items-center gap-4">
24-
<ProIcon className="size-4 flex-shrink-0" />
25-
<p className="!text-14 text-secondary">
26-
Embed and access issues in pages seamlessly, upgrade to Plane Pro now.
27-
</p>
28-
</div>
29-
<a
30-
href="https://plane.so/pro"
31-
target="_blank"
32-
rel="noopener noreferrer"
33-
className={cn(getButtonStyling("primary", "base"), "no-underline")}
34-
>
35-
Upgrade
36-
</a>
37-
</div>
38-
);
7+
export function IssueEmbedUpgradeCard(_props: any) {
8+
return null;
399
}

apps/web/ce/components/workspace/billing/root.tsx

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -4,45 +4,16 @@
44
* See the LICENSE file for details.
55
*/
66

7-
import { useState } from "react";
87
import { observer } from "mobx-react";
98
// plane imports
10-
import { DEFAULT_PRODUCT_BILLING_FREQUENCY, SUBSCRIPTION_WITH_BILLING_FREQUENCY } from "@plane/constants";
119
import { useTranslation } from "@plane/i18n";
12-
import type { TBillingFrequency, TProductBillingFrequency } from "@plane/types";
13-
import { EProductSubscriptionEnum } from "@plane/types";
1410
// components
1511
import { SettingsBoxedControlItem } from "@/components/settings/boxed-control-item";
1612
import { SettingsHeading } from "@/components/settings/heading";
17-
// local imports
18-
import { PlansComparison } from "./comparison/root";
1913

2014
export const BillingRoot = observer(function BillingRoot() {
21-
const [isCompareAllFeaturesSectionOpen, setIsCompareAllFeaturesSectionOpen] = useState(false);
22-
const [productBillingFrequency, setProductBillingFrequency] = useState<TProductBillingFrequency>(
23-
DEFAULT_PRODUCT_BILLING_FREQUENCY
24-
);
2515
const { t } = useTranslation();
2616

27-
/**
28-
* Retrieves the billing frequency for a given subscription type
29-
* @param {EProductSubscriptionEnum} subscriptionType - Type of subscription to get frequency for
30-
* @returns {TBillingFrequency | undefined} - Billing frequency if subscription supports it, undefined otherwise
31-
*/
32-
const getBillingFrequency = (subscriptionType: EProductSubscriptionEnum): TBillingFrequency | undefined =>
33-
SUBSCRIPTION_WITH_BILLING_FREQUENCY.includes(subscriptionType)
34-
? productBillingFrequency[subscriptionType]
35-
: undefined;
36-
37-
/**
38-
* Updates the billing frequency for a specific subscription type
39-
* @param {EProductSubscriptionEnum} subscriptionType - Type of subscription to update
40-
* @param {TBillingFrequency} frequency - New billing frequency to set
41-
* @returns {void}
42-
*/
43-
const setBillingFrequency = (subscriptionType: EProductSubscriptionEnum, frequency: TBillingFrequency): void =>
44-
setProductBillingFrequency({ ...productBillingFrequency, [subscriptionType]: frequency });
45-
4617
return (
4718
<section className="relative scrollbar-hide size-full overflow-y-auto">
4819
<div>
@@ -57,15 +28,6 @@ export const BillingRoot = observer(function BillingRoot() {
5728
/>
5829
</div>
5930
</div>
60-
<div className="mt-10 flex flex-col gap-y-3">
61-
<h4 className="text-h6-semibold">All plans</h4>
62-
<PlansComparison
63-
isCompareAllFeaturesSectionOpen={isCompareAllFeaturesSectionOpen}
64-
getBillingFrequency={getBillingFrequency}
65-
setBillingFrequency={setBillingFrequency}
66-
setIsCompareAllFeaturesSectionOpen={setIsCompareAllFeaturesSectionOpen}
67-
/>
68-
</div>
6931
</section>
7032
);
7133
});

apps/web/ce/components/workspace/edition-badge.tsx

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,43 +4,26 @@
44
* See the LICENSE file for details.
55
*/
66

7-
import { useState } from "react";
87
import { observer } from "mobx-react";
98
// ui
109
import { useTranslation } from "@plane/i18n";
1110
import { Tooltip } from "@plane/propel/tooltip";
1211
// hooks
1312
import { usePlatformOS } from "@/hooks/use-platform-os";
1413
import packageJson from "package.json";
15-
// local components
16-
import { PaidPlanUpgradeModal } from "../license";
1714
import { Button } from "@plane/propel/button";
1815

1916
export const WorkspaceEditionBadge = observer(function WorkspaceEditionBadge() {
20-
// states
21-
const [isPaidPlanPurchaseModalOpen, setIsPaidPlanPurchaseModalOpen] = useState(false);
2217
// translation
2318
const { t } = useTranslation();
2419
// platform
2520
const { isMobile } = usePlatformOS();
2621

2722
return (
28-
<>
29-
<PaidPlanUpgradeModal
30-
isOpen={isPaidPlanPurchaseModalOpen}
31-
handleClose={() => setIsPaidPlanPurchaseModalOpen(false)}
32-
/>
33-
<Tooltip tooltipContent={`Version: v${packageJson.version}`} isMobile={isMobile}>
34-
<Button
35-
variant="tertiary"
36-
size="lg"
37-
onClick={() => setIsPaidPlanPurchaseModalOpen(true)}
38-
aria-haspopup="dialog"
39-
aria-label={t("aria_labels.projects_sidebar.edition_badge")}
40-
>
41-
Community
42-
</Button>
43-
</Tooltip>
44-
</>
23+
<Tooltip tooltipContent={`Version: v${packageJson.version}`} isMobile={isMobile}>
24+
<Button variant="tertiary" size="lg" aria-label={t("aria_labels.projects_sidebar.edition_badge")}>
25+
Community
26+
</Button>
27+
</Tooltip>
4528
);
4629
});

apps/web/ce/components/workspace/sidebar/extended-sidebar-item.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import { useAppTheme } from "@/hooks/store/use-app-theme";
2626
import { useUser, useUserPermissions } from "@/hooks/store/user";
2727
import { useWorkspaceNavigationPreferences } from "@/hooks/use-navigation-preferences";
2828
// local imports
29-
import { UpgradeBadge } from "../upgrade-badge";
3029
import { getSidebarNavigationItemIcon } from "./helper";
3130

3231
type TExtendedSidebarItemProps = {
@@ -199,11 +198,6 @@ export const ExtendedSidebarItem = observer(function ExtendedSidebarItem(props:
199198
</div>
200199
</Link>
201200
<div className="flex items-center gap-2">
202-
{item.key === "active_cycles" && (
203-
<div className="flex-shrink-0">
204-
<UpgradeBadge />
205-
</div>
206-
)}
207201
{isPinned ? (
208202
<Tooltip tooltipContent="Unpin">
209203
<PinOff

apps/web/ce/components/workspace/upgrade-badge.tsx

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,6 @@ type TUpgradeBadge = {
1313
size?: "sm" | "md";
1414
};
1515

16-
export function UpgradeBadge(props: TUpgradeBadge) {
17-
const { className, size = "sm" } = props;
18-
19-
const { t } = useTranslation();
20-
21-
return (
22-
<div
23-
className={cn(
24-
"w-fit cursor-pointer rounded-2xl bg-accent-primary/20 text-center font-medium text-accent-secondary outline-none",
25-
{
26-
"px-3 text-13": size === "md",
27-
"px-2 text-11": size === "sm",
28-
},
29-
className
30-
)}
31-
>
32-
{t("sidebar.pro")}
33-
</div>
34-
);
16+
export function UpgradeBadge(_props: TUpgradeBadge) {
17+
return null;
3518
}

apps/web/core/components/estimates/create/stage-one.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import type { TEstimateSystemKeys } from "@plane/types";
1414
import { convertMinutesToHoursMinutesString } from "@plane/utils";
1515
// plane web imports
1616
import { isEstimateSystemEnabled } from "@/plane-web/components/estimates/helper";
17-
import { UpgradeBadge } from "@/plane-web/components/workspace/upgrade-badge";
1817
import { RadioInput } from "../radio-select";
1918
// local imports
2019

@@ -53,7 +52,6 @@ export function EstimateCreateStageOne(props: TEstimateCreateStageOne) {
5352
) : !isEnabled ? (
5453
<div className="relative flex cursor-no-drop items-center gap-2 text-tertiary">
5554
{t(ESTIMATE_SYSTEMS[currentSystem]?.i18n_name)}
56-
<UpgradeBadge />
5755
</div>
5856
) : (
5957
<div>{t(ESTIMATE_SYSTEMS[currentSystem]?.i18n_name)}</div>

apps/web/core/components/project/settings/features-list.tsx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,13 @@ import { observer } from "mobx-react";
88
// plane imports
99
import { useTranslation } from "@plane/i18n";
1010
import { setPromiseToast } from "@plane/propel/toast";
11-
import { Tooltip } from "@plane/propel/tooltip";
1211
import type { IProject } from "@plane/types";
1312
import { CycleIcon, IntakeIcon, ModuleIcon, PageIcon, ViewsIcon } from "@plane/propel/icons";
1413
// components
1514
import { SettingsBoxedControlItem } from "@/components/settings/boxed-control-item";
1615
import { SettingsHeading } from "@/components/settings/heading";
1716
// hooks
1817
import { useProject } from "@/hooks/store/use-project";
19-
// plane web imports
20-
import { UpgradeBadge } from "@/plane-web/components/workspace/upgrade-badge";
2118
// local imports
2219
import { ProjectFeatureToggle } from "./helper";
2320

@@ -34,7 +31,6 @@ const PROJECT_FEATURES_LIST = {
3431
title: "Cycles",
3532
description: "Timebox work as you see fit per project and change frequency from one period to the next.",
3633
icon: <CycleIcon className="h-5 w-5 flex-shrink-0 rotate-180 text-tertiary" />,
37-
isPro: false,
3834
isEnabled: true,
3935
},
4036
modules: {
@@ -43,7 +39,6 @@ const PROJECT_FEATURES_LIST = {
4339
title: "Modules",
4440
description: "Group work into sub-project-like set-ups with their own leads and assignees.",
4541
icon: <ModuleIcon width={20} height={20} className="flex-shrink-0 text-tertiary" />,
46-
isPro: false,
4742
isEnabled: true,
4843
},
4944
views: {
@@ -52,7 +47,6 @@ const PROJECT_FEATURES_LIST = {
5247
title: "Views",
5348
description: "Save sorts, filters, and display options for later or share them.",
5449
icon: <ViewsIcon className="h-5 w-5 flex-shrink-0 text-tertiary" />,
55-
isPro: false,
5650
isEnabled: true,
5751
},
5852
pages: {
@@ -61,7 +55,6 @@ const PROJECT_FEATURES_LIST = {
6155
title: "Pages",
6256
description: "Write anything like you write anything.",
6357
icon: <PageIcon className="h-5 w-5 flex-shrink-0 text-tertiary" />,
64-
isPro: false,
6558
isEnabled: true,
6659
},
6760
inbox: {
@@ -70,7 +63,6 @@ const PROJECT_FEATURES_LIST = {
7063
title: "Intake",
7164
description: "Consider and discuss work items before you add them to your project.",
7265
icon: <IntakeIcon className="h-5 w-5 flex-shrink-0 text-tertiary" />,
73-
isPro: false,
7466
isEnabled: true,
7567
},
7668
};
@@ -119,11 +111,6 @@ export const ProjectFeaturesList = observer(function ProjectFeaturesList(props:
119111
title={
120112
<span className="flex items-center gap-2">
121113
{t(featureItem.key)}
122-
{featureItem.isPro && (
123-
<Tooltip tooltipContent="Pro feature" position="top">
124-
<UpgradeBadge className="rounded-sm" />
125-
</Tooltip>
126-
)}
127114
</span>
128115
}
129116
description={t(`${featureItem.key}_description`)}
@@ -138,9 +125,6 @@ export const ProjectFeaturesList = observer(function ProjectFeaturesList(props:
138125
/>
139126
}
140127
/>
141-
{/* {currentProjectDetails?.[featureItem.property as keyof IProject] && (
142-
<div className="pl-14">{featureItem.renderChildren?.(currentProjectDetails, workspaceSlug)}</div>
143-
)} */}
144128
</div>
145129
))}
146130
</div>

0 commit comments

Comments
 (0)