fix: circular dependencies between packages (#7277)
This commit is contained in:
parent
d3f1b511ad
commit
fa9c63716c
336 changed files with 3629 additions and 4374 deletions
|
|
@ -1,6 +1,5 @@
|
|||
// plane imports
|
||||
import { EStartOfTheWeek } from "@plane/constants";
|
||||
import { ICalendarDate, ICalendarPayload } from "@plane/types";
|
||||
import { EStartOfTheWeek, ICalendarDate, ICalendarPayload } from "@plane/types";
|
||||
// local imports
|
||||
import { getWeekNumberOfDate, renderFormattedPayloadDate } from "./datetime";
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import { format } from "date-fns";
|
|||
import get from "lodash/get";
|
||||
import set from "lodash/set";
|
||||
// plane imports
|
||||
import { STATE_GROUPS, COMPLETED_STATE_GROUPS } from "@plane/constants";
|
||||
import { COMPLETED_STATE_GROUPS, STATE_DISTRIBUTION } from "@plane/constants";
|
||||
import { ICycle, IEstimatePoint, IModule, IState, TIssue } from "@plane/types";
|
||||
// helper
|
||||
import { getDate } from "./datetime";
|
||||
|
|
@ -33,34 +33,6 @@ export type DistributionUpdates = {
|
|||
labelUpdates: DistributionObjectUpdate[];
|
||||
};
|
||||
|
||||
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",
|
||||
},
|
||||
};
|
||||
|
||||
/**
|
||||
* Get Distribution updates with the help of previous and next issue states
|
||||
* @param prevIssueState
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
// plane imports
|
||||
import { EUserProjectRoles, EUserWorkspaceRoles, EUserPermissions } from "@plane/constants";
|
||||
import { EUserPermissions } from "@plane/constants";
|
||||
import { EUserProjectRoles, EUserWorkspaceRoles } from "@plane/types";
|
||||
|
||||
export const getUserRole = (role: EUserPermissions | EUserWorkspaceRoles | EUserProjectRoles) => {
|
||||
switch (role) {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
import orderBy from "lodash/orderBy";
|
||||
// plane imports
|
||||
import { EProductSubscriptionEnum } from "@plane/constants";
|
||||
import { IPaymentProduct, TProductSubscriptionType, TSubscriptionPrice } from "@plane/types";
|
||||
import { EProductSubscriptionEnum, IPaymentProduct, TProductSubscriptionType, TSubscriptionPrice } from "@plane/types";
|
||||
|
||||
/**
|
||||
* Calculates the yearly discount percentage when switching from monthly to yearly billing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue