2024-06-10 13:36:10 +05:30
|
|
|
|
"use client";
|
|
|
|
|
|
|
2024-01-24 19:37:49 +05:30
|
|
|
|
import React from "react";
|
|
|
|
|
|
import { observer } from "mobx-react";
|
2024-03-06 18:39:14 +05:30
|
|
|
|
import Image from "next/image";
|
2025-01-14 16:30:43 +05:30
|
|
|
|
import { AlertOctagon, BarChart4, CircleDashed, Folder, Microscope, Search } from "lucide-react";
|
|
|
|
|
|
// plane imports
|
|
|
|
|
|
import { MARKETING_PRICING_PAGE_LINK } from "@plane/constants";
|
2025-01-03 14:16:26 +05:30
|
|
|
|
import { useTranslation } from "@plane/i18n";
|
2024-09-05 12:16:24 +05:30
|
|
|
|
import { ContentWrapper, getButtonStyling } from "@plane/ui";
|
2025-06-16 17:18:41 +05:30
|
|
|
|
import { cn } from "@plane/utils";
|
2025-08-15 13:10:26 +05:30
|
|
|
|
// components
|
|
|
|
|
|
import { ProIcon } from "@/components/common/pro-icon";
|
2024-03-06 18:39:14 +05:30
|
|
|
|
// hooks
|
2025-08-15 13:10:26 +05:30
|
|
|
|
import { useUser } from "@/hooks/store/user";
|
2024-01-24 19:37:49 +05:30
|
|
|
|
|
2025-01-14 16:30:43 +05:30
|
|
|
|
export const WORKSPACE_ACTIVE_CYCLES_DETAILS = [
|
|
|
|
|
|
{
|
|
|
|
|
|
key: "10000_feet_view",
|
|
|
|
|
|
title: "10,000-feet view of all active cycles.",
|
|
|
|
|
|
description:
|
|
|
|
|
|
"Zoom out to see running cycles across all your projects at once instead of going from Cycle to Cycle in each project.",
|
|
|
|
|
|
icon: Folder,
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
key: "get_snapshot_of_each_active_cycle",
|
|
|
|
|
|
title: "Get a snapshot of each active cycle.",
|
|
|
|
|
|
description:
|
|
|
|
|
|
"Track high-level metrics for all active cycles, see their state of progress, and get a sense of scope against deadlines.",
|
|
|
|
|
|
icon: CircleDashed,
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
key: "compare_burndowns",
|
|
|
|
|
|
title: "Compare burndowns.",
|
|
|
|
|
|
description: "Monitor how each of your teams are performing with a peek into each cycle’s burndown report.",
|
|
|
|
|
|
icon: BarChart4,
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
key: "quickly_see_make_or_break_issues",
|
2025-02-06 20:41:31 +05:30
|
|
|
|
title: "Quickly see make-or-break work items. ",
|
2025-01-14 16:30:43 +05:30
|
|
|
|
description:
|
2025-02-06 20:41:31 +05:30
|
|
|
|
"Preview high-priority work items for each cycle against due dates. See all of them per cycle in one click.",
|
2025-01-14 16:30:43 +05:30
|
|
|
|
icon: AlertOctagon,
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
key: "zoom_into_cycles_that_need_attention",
|
|
|
|
|
|
title: "Zoom into cycles that need attention. ",
|
|
|
|
|
|
description: "Investigate the state of any cycle that doesn’t conform to expectations in one click.",
|
|
|
|
|
|
icon: Search,
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
key: "stay_ahead_of_blockers",
|
|
|
|
|
|
title: "Stay ahead of blockers.",
|
|
|
|
|
|
description:
|
|
|
|
|
|
"Spot challenges from one project to another and see inter-cycle dependencies that aren’t obvious from any other view.",
|
|
|
|
|
|
icon: Microscope,
|
|
|
|
|
|
},
|
|
|
|
|
|
];
|
|
|
|
|
|
|
2024-01-24 19:37:49 +05:30
|
|
|
|
export const WorkspaceActiveCyclesUpgrade = observer(() => {
|
2025-01-03 14:16:26 +05:30
|
|
|
|
const { t } = useTranslation();
|
2024-01-24 19:37:49 +05:30
|
|
|
|
// store hooks
|
2024-05-08 23:01:20 +05:30
|
|
|
|
const {
|
|
|
|
|
|
userProfile: { data: userProfile },
|
|
|
|
|
|
} = useUser();
|
2024-01-24 19:37:49 +05:30
|
|
|
|
|
2024-05-08 23:01:20 +05:30
|
|
|
|
const isDarkMode = userProfile?.theme.theme === "dark";
|
2024-01-24 19:37:49 +05:30
|
|
|
|
|
|
|
|
|
|
return (
|
2024-09-05 12:16:24 +05:30
|
|
|
|
<ContentWrapper className="gap-10">
|
2024-01-24 19:37:49 +05:30
|
|
|
|
<div
|
2024-05-08 23:01:20 +05:30
|
|
|
|
className={cn("item-center flex min-h-[25rem] justify-between rounded-xl", {
|
|
|
|
|
|
"bg-gradient-to-l from-[#CFCFCF] to-[#212121]": userProfile?.theme.theme === "dark",
|
|
|
|
|
|
"bg-gradient-to-l from-[#3b5ec6] to-[#f5f7fe]": userProfile?.theme.theme === "light",
|
2024-01-24 19:37:49 +05:30
|
|
|
|
})}
|
|
|
|
|
|
>
|
2024-05-08 23:01:20 +05:30
|
|
|
|
<div className="relative flex flex-col justify-center gap-7 px-14 lg:w-1/2">
|
|
|
|
|
|
<div className="flex max-w-64 flex-col gap-2">
|
2025-01-03 14:16:26 +05:30
|
|
|
|
<h2 className="text-2xl font-semibold">{t("on_demand_snapshots_of_all_your_cycles")}</h2>
|
|
|
|
|
|
<p className="text-base font-medium text-custom-text-300">{t("active_cycles_description")}</p>
|
2024-01-24 19:37:49 +05:30
|
|
|
|
</div>
|
|
|
|
|
|
<div className="flex items-center gap-3">
|
|
|
|
|
|
<a
|
|
|
|
|
|
className={`${getButtonStyling("primary", "md")} cursor-pointer`}
|
2024-05-31 17:30:50 +05:30
|
|
|
|
href={MARKETING_PRICING_PAGE_LINK}
|
2024-01-24 19:37:49 +05:30
|
|
|
|
target="_blank"
|
|
|
|
|
|
rel="noreferrer"
|
|
|
|
|
|
>
|
2024-07-15 19:48:27 +05:30
|
|
|
|
<ProIcon className="h-3.5 w-3.5 text-white" />
|
2025-01-03 14:16:26 +05:30
|
|
|
|
{t("upgrade")}
|
2024-01-24 19:37:49 +05:30
|
|
|
|
</a>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<span className="absolute left-0 top-0">
|
|
|
|
|
|
<Image
|
|
|
|
|
|
src={`/workspace-active-cycles/cta-l-1-${isDarkMode ? "dark" : "light"}.webp`}
|
|
|
|
|
|
height={125}
|
|
|
|
|
|
width={125}
|
|
|
|
|
|
className="rounded-xl"
|
|
|
|
|
|
alt="l-1"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</div>
|
2024-05-08 23:01:20 +05:30
|
|
|
|
<div className="relative hidden w-1/2 lg:block">
|
|
|
|
|
|
<span className="absolute bottom-0 right-0">
|
2024-01-24 19:37:49 +05:30
|
|
|
|
<Image
|
|
|
|
|
|
src={`/workspace-active-cycles/cta-r-1-${isDarkMode ? "dark" : "light"}.webp`}
|
|
|
|
|
|
height={420}
|
|
|
|
|
|
width={500}
|
|
|
|
|
|
alt="r-1"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</span>
|
2024-05-08 23:01:20 +05:30
|
|
|
|
<span className="absolute -bottom-16 right-1/2 rounded-xl">
|
2024-01-24 19:37:49 +05:30
|
|
|
|
<Image
|
|
|
|
|
|
src={`/workspace-active-cycles/cta-r-2-${isDarkMode ? "dark" : "light"}.webp`}
|
|
|
|
|
|
height={210}
|
|
|
|
|
|
width={280}
|
|
|
|
|
|
alt="r-2"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2024-05-08 23:01:20 +05:30
|
|
|
|
<div className="grid h-full grid-cols-1 gap-5 pb-8 lg:grid-cols-2 xl:grid-cols-3">
|
2024-01-24 19:37:49 +05:30
|
|
|
|
{WORKSPACE_ACTIVE_CYCLES_DETAILS.map((item) => (
|
2024-05-08 23:01:20 +05:30
|
|
|
|
<div key={item.title} className="flex min-h-32 w-full flex-col gap-2 rounded-md bg-custom-background-80 p-4">
|
2025-01-03 14:16:26 +05:30
|
|
|
|
<div className="flex gap-2 justify-between">
|
|
|
|
|
|
<h3 className="font-medium">{t(item.key)}</h3>
|
|
|
|
|
|
<item.icon className="mt-1 h-4 w-4 text-blue-500" />
|
2024-01-24 19:37:49 +05:30
|
|
|
|
</div>
|
2025-01-03 14:16:26 +05:30
|
|
|
|
<span className="text-sm text-custom-text-300">{t(`${item.key}_description`)}</span>
|
2024-01-24 19:37:49 +05:30
|
|
|
|
</div>
|
|
|
|
|
|
))}
|
|
|
|
|
|
</div>
|
2024-09-05 12:16:24 +05:30
|
|
|
|
</ContentWrapper>
|
2024-01-24 19:37:49 +05:30
|
|
|
|
);
|
|
|
|
|
|
});
|