Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@plane/types": "workspace:*",
"@plane/ui": "workspace:*",
"@plane/utils": "workspace:*",
"@tanstack/react-table": "^8.21.3",
"@tailwindcss/typography": "^0.5.9",
"@types/lodash": "^4.17.0",
"autoprefixer": "10.4.14",
Expand All @@ -31,9 +32,10 @@
"lucide-react": "^0.469.0",
"mobx": "^6.12.0",
"mobx-react": "^9.1.1",
"mobx-react-lite": "^4.1.0",
"next": "14.2.30",
"next-themes": "^0.2.1",
"postcss": "^8.4.38",
"postcss": "^8.4.49",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-hook-form": "7.51.5",
Expand Down
23 changes: 0 additions & 23 deletions live/.babelrc

This file was deleted.

13 changes: 6 additions & 7 deletions live/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"private": true,
"type": "module",
"scripts": {
"dev": "PORT=3100 concurrently \"babel src --out-dir dist --extensions '.ts,.js' --watch\" \"nodemon dist/server.js\"",
"build": "babel src --out-dir dist --extensions \".ts,.js\"",
"dev": "tsup --watch --onSuccess 'node --env-file=.env dist/server.js'",
"build": "tsup",
"start": "node dist/server.js",
"lint": "eslint src --ext .ts,.tsx",
"lint:errors": "eslint src --ext .ts,.tsx --quiet"
Expand All @@ -21,7 +21,9 @@
"@hocuspocus/extension-redis": "^2.15.0",
"@hocuspocus/server": "^2.15.0",
"@plane/constants": "workspace:*",
"@plane/decorators": "workspace:*",
"@plane/editor": "workspace:*",
"@plane/logger": "workspace:*",
"@plane/types": "workspace:*",
"@tiptap/core": "2.10.4",
"@tiptap/html": "2.11.0",
Expand All @@ -43,17 +45,14 @@
"yjs": "^13.6.20"
},
"devDependencies": {
"@babel/cli": "^7.25.6",
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.4",
"@babel/preset-typescript": "^7.24.7",
"@types/compression": "^1.7.5",
"@types/cors": "^2.8.17",
"@types/dotenv": "^8.2.0",
"@types/express": "^4.17.21",
"@types/express-ws": "^3.0.4",
"@types/node": "^20.14.9",
"babel-plugin-module-resolver": "^5.0.2",
"@types/pino-http": "^5.8.4",
"@plane/typescript-config": "workspace:*",
"concurrently": "^9.0.1",
"nodemon": "^3.1.7",
"ts-node": "^10.9.2",
Expand Down
3 changes: 2 additions & 1 deletion live/src/core/helpers/logger.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { pinoHttp } from "pino-http";
import { Logger } from "pino";

const transport = {
target: "pino-pretty",
Expand Down Expand Up @@ -35,4 +36,4 @@ export const logger = pinoHttp({
},
});

export const manualLogger = logger.logger;
export const manualLogger: Logger = logger.logger;
19 changes: 14 additions & 5 deletions live/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,19 @@ import { defineConfig, Options } from "tsup";

export default defineConfig((options: Options) => ({
entry: ["src/server.ts"],
format: ["cjs", "esm"],
dts: true,
clean: false,
external: ["react"],
injectStyle: true,
format: ["esm"],
dts: false,
clean: true,
target: "node18",
sourcemap: true,
splitting: false,
bundle: true,
outDir: "dist",
esbuildOptions(options) {
options.alias = {
"@/core": "./src/core",
"@/plane-live": "./src/ce"
};
},
...options,
}));
3 changes: 1 addition & 2 deletions packages/constants/src/analytics/common.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { TAnalyticsTabsBase } from "@plane/types";
import { ChartXAxisProperty, ChartYAxisMetric } from "../chart";
import { ChartXAxisProperty, ChartYAxisMetric, TAnalyticsTabsBase } from "@plane/types";

export interface IInsightField {
key: string;
Expand Down
33 changes: 1 addition & 32 deletions packages/constants/src/chart.ts
Original file line number Diff line number Diff line change
@@ -1,40 +1,9 @@
import { TChartColorScheme } from "@plane/types";
import { ChartXAxisProperty, TChartColorScheme } from "@plane/types";

export const LABEL_CLASSNAME = "uppercase text-custom-text-300/60 text-sm tracking-wide";
export const AXIS_LABEL_CLASSNAME = "uppercase text-custom-text-300/60 text-sm tracking-wide";


export enum ChartXAxisProperty {
STATES = "STATES",
STATE_GROUPS = "STATE_GROUPS",
LABELS = "LABELS",
ASSIGNEES = "ASSIGNEES",
ESTIMATE_POINTS = "ESTIMATE_POINTS",
CYCLES = "CYCLES",
MODULES = "MODULES",
PRIORITY = "PRIORITY",
START_DATE = "START_DATE",
TARGET_DATE = "TARGET_DATE",
CREATED_AT = "CREATED_AT",
COMPLETED_AT = "COMPLETED_AT",
CREATED_BY = "CREATED_BY",
WORK_ITEM_TYPES = "WORK_ITEM_TYPES",
PROJECTS = "PROJECTS",
EPICS = "EPICS",
}

export enum ChartYAxisMetric {
WORK_ITEM_COUNT = "WORK_ITEM_COUNT",
ESTIMATE_POINT_COUNT = "ESTIMATE_POINT_COUNT",
PENDING_WORK_ITEM_COUNT = "PENDING_WORK_ITEM_COUNT",
COMPLETED_WORK_ITEM_COUNT = "COMPLETED_WORK_ITEM_COUNT",
IN_PROGRESS_WORK_ITEM_COUNT = "IN_PROGRESS_WORK_ITEM_COUNT",
WORK_ITEM_DUE_THIS_WEEK_COUNT = "WORK_ITEM_DUE_THIS_WEEK_COUNT",
WORK_ITEM_DUE_TODAY_COUNT = "WORK_ITEM_DUE_TODAY_COUNT",
BLOCKED_WORK_ITEM_COUNT = "BLOCKED_WORK_ITEM_COUNT",
}


export enum ChartXAxisDateGrouping {
DAY = "DAY",
WEEK = "WEEK",
Expand Down
34 changes: 1 addition & 33 deletions packages/constants/src/intake.ts
Original file line number Diff line number Diff line change
@@ -1,36 +1,4 @@
import { TInboxDuplicateIssueDetails, TIssue } from "@plane/types";

export enum EInboxIssueCurrentTab {
OPEN = "open",
CLOSED = "closed",
}

export enum EInboxIssueStatus {
PENDING = -2,
DECLINED = -1,
SNOOZED = 0,
ACCEPTED = 1,
DUPLICATE = 2,
}

export enum EInboxIssueSource {
IN_APP = "IN_APP",
FORMS = "FORMS",
EMAIL = "EMAIL",
}

export type TInboxIssueCurrentTab = EInboxIssueCurrentTab;
export type TInboxIssueStatus = EInboxIssueStatus;
export type TInboxIssue = {
id: string;
status: TInboxIssueStatus;
snoozed_till: Date | null;
duplicate_to: string | undefined;
source: EInboxIssueSource | undefined;
issue: TIssue;
created_by: string;
duplicate_issue_detail: TInboxDuplicateIssueDetails | undefined;
};
import { EInboxIssueStatus, TInboxIssueStatus } from "@plane/types";

export const INBOX_STATUS: {
key: string;
Expand Down
23 changes: 1 addition & 22 deletions packages/constants/src/issue/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
IIssueDisplayProperties,
IIssueFilterOptions,
TIssue,
EIssuesStoreType,
} from "@plane/types";

export const ALL_ISSUES = "All Issues";
Expand Down Expand Up @@ -44,28 +45,6 @@ export enum EIssueGroupBYServerToProperty {
"created_by" = "created_by",
}

export enum EIssueServiceType {
ISSUES = "issues",
EPICS = "epics",
WORK_ITEMS = "work-items",
}

export enum EIssuesStoreType {
GLOBAL = "GLOBAL",
PROFILE = "PROFILE",
TEAM = "TEAM",
PROJECT = "PROJECT",
CYCLE = "CYCLE",
MODULE = "MODULE",
TEAM_VIEW = "TEAM_VIEW",
PROJECT_VIEW = "PROJECT_VIEW",
ARCHIVED = "ARCHIVED",
DRAFT = "DRAFT",
DEFAULT = "DEFAULT",
WORKSPACE_DRAFT = "WORKSPACE_DRAFT",
EPIC = "EPIC",
}

export enum EIssueCommentAccessSpecifier {
EXTERNAL = "EXTERNAL",
INTERNAL = "INTERNAL",
Expand Down
3 changes: 1 addition & 2 deletions packages/constants/src/issue/filter.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { ILayoutDisplayFiltersOptions, TIssueActivityComment } from "@plane/types";
import { EIssuesStoreType, ILayoutDisplayFiltersOptions, TIssueActivityComment } from "@plane/types";
import {
TIssueFilterPriorityObject,
ISSUE_DISPLAY_PROPERTIES_KEYS,
EIssuesStoreType,
SUB_ISSUES_DISPLAY_PROPERTIES_KEYS,
} from "./common";

Expand Down
13 changes: 1 addition & 12 deletions packages/constants/src/payment.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
import { IPaymentProduct, TBillingFrequency, TProductBillingFrequency } from "@plane/types";

/**
* Enum representing different product subscription types
*/
export enum EProductSubscriptionEnum {
FREE = "FREE",
ONE = "ONE",
PRO = "PRO",
BUSINESS = "BUSINESS",
ENTERPRISE = "ENTERPRISE",
}
import { EProductSubscriptionEnum, IPaymentProduct, TBillingFrequency, TProductBillingFrequency } from "@plane/types";

/**
* Default billing frequency for each product subscription type
Expand Down
16 changes: 2 additions & 14 deletions packages/constants/src/profile.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { EStartOfTheWeek } from "@plane/types";

export const PROFILE_SETTINGS = {
profile: {
key: "profile",
Expand Down Expand Up @@ -103,20 +105,6 @@ export const PREFERENCE_OPTIONS: {
},
];

/**
* @description The start of the week for the user
* @enum {number}
*/
export enum EStartOfTheWeek {
SUNDAY = 0,
MONDAY = 1,
TUESDAY = 2,
WEDNESDAY = 3,
THURSDAY = 4,
FRIDAY = 5,
SATURDAY = 6,
}

/**
* @description The options for the start of the week
* @type {Array<{value: EStartOfTheWeek, label: string}>}
Expand Down
33 changes: 29 additions & 4 deletions packages/constants/src/state.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
"use client"

export type TStateGroups = "backlog" | "unstarted" | "started" | "completed" | "cancelled";
import { TStateGroups } from "@plane/types";

export type TDraggableData = {
groupKey: TStateGroups;
Expand Down Expand Up @@ -56,6 +54,34 @@ export const PENDING_STATE_GROUPS = [
STATE_GROUPS.cancelled.key,
];

export const STATE_DISTRIBUTION = {
[STATE_GROUPS.backlog.key]: {
key: STATE_GROUPS.backlog.key,
issues: "backlog_issues",
points: "backlog_estimate_points",
},
[STATE_GROUPS.unstarted.key]: {
key: STATE_GROUPS.unstarted.key,
issues: "unstarted_issues",
points: "unstarted_estimate_points",
},
[STATE_GROUPS.started.key]: {
key: STATE_GROUPS.started.key,
issues: "started_issues",
points: "started_estimate_points",
},
[STATE_GROUPS.completed.key]: {
key: STATE_GROUPS.completed.key,
issues: "completed_issues",
points: "completed_estimate_points",
},
[STATE_GROUPS.cancelled.key]: {
key: STATE_GROUPS.cancelled.key,
issues: "cancelled_issues",
points: "cancelled_estimate_points",
},
};

export const PROGRESS_STATE_GROUPS_DETAILS = [
{
key: "completed_issues",
Expand All @@ -79,5 +105,4 @@ export const PROGRESS_STATE_GROUPS_DETAILS = [
},
];


export const DISPLAY_WORKFLOW_PRO_CTA = false;
12 changes: 0 additions & 12 deletions packages/constants/src/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,6 @@ export enum EUserPermissionsLevel {
PROJECT = "PROJECT",
}

export enum EUserWorkspaceRoles {
ADMIN = 20,
MEMBER = 15,
GUEST = 5,
}

export enum EUserProjectRoles {
ADMIN = 20,
MEMBER = 15,
GUEST = 5,
}

export type TUserPermissionsLevel = EUserPermissionsLevel;

export enum EUserPermissions {
Expand Down
5 changes: 1 addition & 4 deletions packages/constants/src/views.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
export enum EViewAccess {
PRIVATE,
PUBLIC,
}
import { EViewAccess } from "@plane/types";

export const VIEW_ACCESS_SPECIFIERS: {
key: EViewAccess;
Expand Down
3 changes: 1 addition & 2 deletions packages/constants/src/workspace.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { TStaticViewTypes, IWorkspaceSearchResults } from "@plane/types";
import { EUserWorkspaceRoles } from "./user";
import { TStaticViewTypes, IWorkspaceSearchResults, EUserWorkspaceRoles } from "@plane/types";

export const ORGANIZATION_SIZE = [
"Just myself", // TODO: translate
Expand Down
2 changes: 1 addition & 1 deletion packages/decorators/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This package is part of the Plane workspace and can be used by adding it to your
```json
{
"dependencies": {
"@plane/decorators": "*"
"@plane/decorators": "workspace:*"
}
}
```
Expand Down
Loading