Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
e462527
chore: added code split for the analytics store
JayashTripathy May 28, 2025
e4fb074
chore: done some refactor
JayashTripathy May 28, 2025
14c6520
refactor: update entity keys in analytics and translations
JayashTripathy May 28, 2025
b0b2901
chore: updated the translations
JayashTripathy May 28, 2025
94bc723
refactor: simplify AnalyticsStoreV2 class by removing unnecessary con…
JayashTripathy May 29, 2025
1eb250c
feat: add AnalyticsStoreV2 class and interface for enhanced analytics…
JayashTripathy May 29, 2025
06e39d7
feat: enhance WorkItemsModal and analytics store with isEpic function…
JayashTripathy May 29, 2025
aabc9a0
feat: integrate isEpic state into TotalInsights and WorkItemsModal co…
JayashTripathy May 29, 2025
55e54f6
refactor: remove isEpic state from WorkItemsModalMainContent component
JayashTripathy May 29, 2025
b93afda
Merge branch 'preview' of https://github.com/makeplane/plane into ana…
JayashTripathy Jun 2, 2025
64934bc
refactor: removed old analytics components and related services
JayashTripathy Jun 2, 2025
3934b4d
refactor: new analytics
JayashTripathy Jun 2, 2025
3470a14
Merge branch 'preview' of https://github.com/makeplane/plane into ana…
JayashTripathy Jun 2, 2025
1c8628a
refactor: removed all nivo chart dependencies
JayashTripathy Jun 3, 2025
df51adb
chore: resolved coderabbit comments
JayashTripathy Jun 3, 2025
aeca794
fix: update processUrl to handle custom-work-items in peek view
JayashTripathy Jun 3, 2025
cf0c86c
feat: implement CSV export functionality in InsightTable component
JayashTripathy Jun 3, 2025
9292cee
feat: enhance analytics service with filter parameters and improve da…
JayashTripathy Jun 3, 2025
a99f87d
feat: add new translation keys for various statuses across multiple l…
JayashTripathy Jun 4, 2025
fd285e8
Merge branch 'preview' of https://github.com/makeplane/plane into ana…
JayashTripathy Jun 5, 2025
cdb7466
[WEB-4246] fix: enhance analytics components to include 'isEpic' para…
JayashTripathy Jun 5, 2025
4550382
chore: update yarn.lock to remove deprecated @nivo packages and clean…
JayashTripathy Jun 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 0 additions & 105 deletions packages/constants/src/analytics-v2/common.ts

This file was deleted.

81 changes: 0 additions & 81 deletions packages/constants/src/analytics.ts

This file was deleted.

178 changes: 178 additions & 0 deletions packages/constants/src/analytics/common.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
import { TAnalyticsTabsBase } from "@plane/types";
import { ChartXAxisProperty, ChartYAxisMetric } from "../chart";

export interface IInsightField {
key: string;
i18nKey: string;
i18nProps?: {
entity?: string;
entityPlural?: string;
[key: string]: any;
};
}

export const insightsFields: Record<TAnalyticsTabsBase, IInsightField[]> = {
overview: [
{
key: "total_users",
i18nKey: "workspace_analytics.total",
i18nProps: {
entity: "common.users",
},
},
{
key: "total_admins",
i18nKey: "workspace_analytics.total",
i18nProps: {
entity: "common.admins",
},
},
{
key: "total_members",
i18nKey: "workspace_analytics.total",
i18nProps: {
entity: "common.members",
},
},
{
key: "total_guests",
i18nKey: "workspace_analytics.total",
i18nProps: {
entity: "common.guests",
},
},
{
key: "total_projects",
i18nKey: "workspace_analytics.total",
i18nProps: {
entity: "common.projects",
},
},
{
key: "total_work_items",
i18nKey: "workspace_analytics.total",
i18nProps: {
entity: "common.work_items",
},
},
{
key: "total_cycles",
i18nKey: "workspace_analytics.total",
i18nProps: {
entity: "common.cycles",
},
},
{
key: "total_intake",
i18nKey: "workspace_analytics.total",
i18nProps: {
entity: "sidebar.intake",
},
},
],
"work-items": [
{
key: "total_work_items",
i18nKey: "workspace_analytics.total",
},
{
key: "started_work_items",
i18nKey: "workspace_analytics.started_work_items",
},
{
key: "backlog_work_items",
i18nKey: "workspace_analytics.backlog_work_items",
},
{
key: "un_started_work_items",
i18nKey: "workspace_analytics.un_started_work_items",
},
{
key: "completed_work_items",
i18nKey: "workspace_analytics.completed_work_items",
},
],
};

export const ANALYTICS_DURATION_FILTER_OPTIONS = [
{
name: "Yesterday",
value: "yesterday",
},
{
name: "Last 7 days",
value: "last_7_days",
},
{
name: "Last 30 days",
value: "last_30_days",
},
{
name: "Last 3 months",
value: "last_3_months",
},
];

export const ANALYTICS_X_AXIS_VALUES: { value: ChartXAxisProperty; label: string }[] = [
{
value: ChartXAxisProperty.STATES,
label: "State name",
},
{
value: ChartXAxisProperty.STATE_GROUPS,
label: "State group",
},
{
value: ChartXAxisProperty.PRIORITY,
label: "Priority",
},
{
value: ChartXAxisProperty.LABELS,
label: "Label",
},
{
value: ChartXAxisProperty.ASSIGNEES,
label: "Assignee",
},
{
value: ChartXAxisProperty.ESTIMATE_POINTS,
label: "Estimate point",
},
{
value: ChartXAxisProperty.CYCLES,
label: "Cycle",
},
{
value: ChartXAxisProperty.MODULES,
label: "Module",
},
{
value: ChartXAxisProperty.COMPLETED_AT,
label: "Completed date",
},
{
value: ChartXAxisProperty.TARGET_DATE,
label: "Due date",
},
{
value: ChartXAxisProperty.START_DATE,
label: "Start date",
},
{
value: ChartXAxisProperty.CREATED_AT,
label: "Created date",
},
];

export const ANALYTICS_Y_AXIS_VALUES: { value: ChartYAxisMetric; label: string }[] = [
{
value: ChartYAxisMetric.WORK_ITEM_COUNT,
label: "Work item",
},
{
value: ChartYAxisMetric.ESTIMATE_POINT_COUNT,
label: "Estimate",
},
];

export const ANALYTICS_V2_DATE_KEYS = ["completed_at", "target_date", "start_date", "created_at"];
3 changes: 1 addition & 2 deletions packages/constants/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export * from "./ai";
export * from "./analytics";
export * from "./auth";
export * from "./chart";
export * from "./endpoints";
Expand Down Expand Up @@ -34,4 +33,4 @@ export * from "./emoji";
export * from "./subscription";
export * from "./settings";
export * from "./icon";
export * from "./analytics-v2";
export * from "./analytics";
Loading