diff --git a/web/ee/components/common/layout/main/sections/progress-root.tsx b/web/ee/components/common/layout/main/sections/progress-root.tsx index dbb976622a..f3325098a2 100644 --- a/web/ee/components/common/layout/main/sections/progress-root.tsx +++ b/web/ee/components/common/layout/main/sections/progress-root.tsx @@ -17,6 +17,7 @@ import { SectionWrapper } from "../common/section-wrapper"; type TProgressSectionProps = { title?: string; data: TStateAnalytics; + indicatorElement?: React.ReactNode; }; interface IProgressIndicatorData { @@ -28,7 +29,7 @@ interface IProgressIndicatorData { } export const ProgressSection: FC = (props) => { - const { data } = props; + const { data, indicatorElement } = props; const { t } = useTranslation(); @@ -44,8 +45,9 @@ export const ProgressSection: FC = (props) => { return ( -
+

{t("common.progress")}

+ {indicatorElement && <>{indicatorElement}}
diff --git a/web/ee/components/epics/details/main/progress-section-root.tsx b/web/ee/components/epics/details/main/progress-section-root.tsx index 65382f5cf1..1dff757641 100644 --- a/web/ee/components/epics/details/main/progress-section-root.tsx +++ b/web/ee/components/epics/details/main/progress-section-root.tsx @@ -4,6 +4,7 @@ import React, { FC } from "react"; import { observer } from "mobx-react"; import { EIssueServiceType } from "@plane/constants"; import { TStateAnalytics } from "@plane/types"; +import { InfoIcon, Tooltip } from "@plane/ui"; // hooks import { useIssueDetail } from "@/hooks/store"; // plane web @@ -29,5 +30,16 @@ export const EpicProgressSection: FC = observer((props) => { if (!shouldRenderProgressSection) return <>; - return ; + return ( + + + + + + } + /> + ); }); diff --git a/web/ee/components/initiatives/details/main/progress-section-root.tsx b/web/ee/components/initiatives/details/main/progress-section-root.tsx index 943ae0c6ea..9d380218c4 100644 --- a/web/ee/components/initiatives/details/main/progress-section-root.tsx +++ b/web/ee/components/initiatives/details/main/progress-section-root.tsx @@ -4,6 +4,7 @@ import React, { FC } from "react"; import omit from "lodash/omit"; import { observer } from "mobx-react"; import { TStateAnalytics } from "@plane/types"; +import { InfoIcon, Tooltip } from "@plane/ui"; // plane web import { ProgressSection } from "@/plane-web/components/common/layout/main/sections/progress-root"; import { useInitiatives } from "@/plane-web/hooks/store/use-initiatives"; @@ -33,5 +34,21 @@ export const InitiativeProgressSection: FC = observer((props) => { if (!shouldRenderProgressSection) return <>; - return ; + return ( + + + + + + + + } + /> + ); });