plane/web/ce/components/analytics/tabs.ts
JayashTripathy c1a078ef3f
[WEB-4246] Analytics minor improvements (#7194)
* 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
2025-06-12 21:15:09 +05:30

13 lines
453 B
TypeScript

import { TAnalyticsTabsBase } from "@plane/types";
import { Overview } from "@/components/analytics/overview";
import { WorkItems } from "@/components/analytics/work-items";
export const ANALYTICS_TABS: {
key: TAnalyticsTabsBase;
i18nKey: string;
content: React.FC;
isExtended?: boolean;
}[] = [
{ key: "overview", i18nKey: "common.overview", content: Overview },
{ key: "work-items", i18nKey: "sidebar.work_items", content: WorkItems },
];