mirror of
https://github.com/makeplane/plane.git
synced 2026-02-08 15:08:43 -06:00
* chore: updated label for epics
* chore: improved export logic
* refactor: move csvConfig to export.ts and clean up export logic
* refactor: remove unused CSV export logic from WorkItemsInsightTable component
* refactor: streamline data handling in InsightTable component for improved rendering
* feat: add translation for "No. of {entity}" and update priority chart y-axis label to use new translation
* refactor: cleaned up some component and added utilitites
* feat: add "at_risk" translation to multiple languages in translations.json files
* refactor: update TrendPiece component to use new status variants for analytics
* fix: adjust TrendPiece component logic for on-track and off-track status
* refactor: use nullish coalescing operator for yAxis.dx in line and scatter charts
* feat: add "at_risk" translation to various languages in translations.json files
* feat: add "no_of" translation to various languages in translations.json files
* feat: update "at_risk" translation in Ukrainian, Vietnamese, and Chinese locales in translations.json files
* refactor: rename insightsFields to ANALYTICS_INSIGHTS_FIELDS and update analytics tab import to use getAnalyticsTabs function
* feat: update AnalyticsWrapper to use i18n for titles and add new translation for "no_of" in Russian
* fix: update yAxis labels and offsets in various charts to use new translation key and improve layout
* feat: define AnalyticsTab interface and refactor getAnalyticsTabs function for improved type safety
* fix: update AnalyticsTab interface to use TAnalyticsTabsBase for improved type safety
* fix: add whitespace-nowrap class to TableHead for improved header layout in DataTable component
24 lines
572 B
TypeScript
24 lines
572 B
TypeScript
import React from "react";
|
|
// plane package imports
|
|
import { useTranslation } from "@plane/i18n";
|
|
import { cn } from "@plane/utils";
|
|
|
|
type Props = {
|
|
i18nTitle: string;
|
|
children: React.ReactNode;
|
|
className?: string;
|
|
};
|
|
|
|
const AnalyticsWrapper: React.FC<Props> = (props) => {
|
|
const { i18nTitle, children, className } = props;
|
|
const { t } = useTranslation();
|
|
return (
|
|
<div className={cn("px-6 py-4", className)}>
|
|
<h1 className={"mb-4 text-2xl font-bold md:mb-6"}>{t(i18nTitle)}</h1>
|
|
{children}
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default AnalyticsWrapper;
|