= observer((props) => {
{currentProjectDetails?.[featureItem.property as keyof IProject] &&
- featureItem.renderChildren &&
- featureItem.renderChildren(currentProjectDetails, isAdmin, handleSubmit, workspaceSlug)}
+ featureItem.renderChildren?.(currentProjectDetails, workspaceSlug)}
);
diff --git a/web/core/hooks/store/use-project-inbox.ts b/web/core/hooks/store/use-project-inbox.ts
index 67d4bd074..cdbff2533 100644
--- a/web/core/hooks/store/use-project-inbox.ts
+++ b/web/core/hooks/store/use-project-inbox.ts
@@ -1,7 +1,7 @@
import { useContext } from "react";
// mobx store
import { StoreContext } from "@/lib/store-context";
-import { IProjectInboxStore } from "@/store/inbox/project-inbox.store";
+import { IProjectInboxStore } from "@/plane-web/store/project-inbox.store";
export const useProjectInbox = (): IProjectInboxStore => {
const context = useContext(StoreContext);
diff --git a/web/core/services/inbox/inbox-issue.service.ts b/web/core/services/inbox/inbox-issue.service.ts
index 737065d70..19b62838b 100644
--- a/web/core/services/inbox/inbox-issue.service.ts
+++ b/web/core/services/inbox/inbox-issue.service.ts
@@ -1,6 +1,6 @@
// types
import { TInboxIssue } from "@plane/constants";
-import type { TIssue, TInboxIssueWithPagination, TInboxForm } from "@plane/types";
+import type { TIssue, TInboxIssueWithPagination } from "@plane/types";
import { API_BASE_URL } from "@/helpers/common.helper";
import { APIService } from "@/services/api.service";
// helpers
@@ -76,28 +76,4 @@ export class InboxIssueService extends APIService {
throw error?.response?.data;
});
}
-
- async retrievePublishForm(workspaceSlug: string, projectId: string): Promise {
- return this.get(`/api/workspaces/${workspaceSlug}/projects/${projectId}/intake-settings/`)
- .then((response) => response?.data)
- .catch((error) => {
- throw error?.response?.data;
- });
- }
-
- async updatePublishForm(workspaceSlug: string, projectId: string, data: Partial): Promise {
- return this.patch(`/api/workspaces/${workspaceSlug}/projects/${projectId}/intake-settings/`, data)
- .then((response) => response?.data)
- .catch((error) => {
- throw error?.response?.data;
- });
- }
-
- async regeneratePublishForm(workspaceSlug: string, projectId: string): Promise {
- return this.post(`/api/workspaces/${workspaceSlug}/projects/${projectId}/publish-intake-regenerate/`)
- .then((response) => response?.data)
- .catch((error) => {
- throw error?.response?.data;
- });
- }
}
diff --git a/web/core/store/inbox/project-inbox.store.ts b/web/core/store/inbox/project-inbox.store.ts
index 55a48b690..996f85d0d 100644
--- a/web/core/store/inbox/project-inbox.store.ts
+++ b/web/core/store/inbox/project-inbox.store.ts
@@ -11,7 +11,6 @@ import {
TInboxIssueSorting,
TInboxIssuePaginationInfo,
TInboxIssueSortingOrderByQueryParam,
- TInboxForm,
} from "@plane/types";
// helpers
import { EInboxIssueCurrentTab, EInboxIssueStatus, EPastDurationFilters, getCustomDates } from "@/helpers/inbox.helper";
@@ -39,7 +38,6 @@ export interface IProjectInboxStore {
inboxIssuePaginationInfo: TInboxIssuePaginationInfo | undefined;
inboxIssues: Record; // issue_id -> IInboxIssueStore
inboxIssueIds: string[];
- intakeForms: Record;
// computed
inboxFilters: Partial; // computed project inbox filters
inboxSorting: Partial; // computed project inbox sorting
@@ -69,9 +67,6 @@ export interface IProjectInboxStore {
) => Promise;
fetchInboxPaginationIssues: (workspaceSlug: string, projectId: string) => Promise;
fetchInboxIssueById: (workspaceSlug: string, projectId: string, inboxIssueId: string) => Promise;
- fetchIntakeForms: (workspaceSlug: string, projectId: string) => Promise;
- toggleIntakeForms: (workspaceSlug: string, projectId: string, data: Partial) => Promise;
- regenerateIntakeForms: (workspaceSlug: string, projectId: string) => Promise;
createInboxIssue: (
workspaceSlug: string,
projectId: string,
@@ -93,7 +88,6 @@ export class ProjectInboxStore implements IProjectInboxStore {
inboxIssuePaginationInfo: TInboxIssuePaginationInfo | undefined = undefined;
inboxIssues: Record = {};
inboxIssueIds: string[] = [];
- intakeForms: Record = {};
// services
inboxIssueService;
@@ -108,7 +102,6 @@ export class ProjectInboxStore implements IProjectInboxStore {
inboxIssuePaginationInfo: observable,
inboxIssues: observable,
inboxIssueIds: observable,
- intakeForms: observable,
// computed
inboxFilters: computed,
inboxSorting: computed,
@@ -316,51 +309,6 @@ export class ProjectInboxStore implements IProjectInboxStore {
}
};
- fetchIntakeForms = async (workspaceSlug: string, projectId: string) => {
- try {
- const intakeForms = await this.inboxIssueService.retrievePublishForm(workspaceSlug, projectId);
- if (intakeForms)
- runInAction(() => {
- set(this.intakeForms, projectId, intakeForms);
- });
- } catch {
- console.error("Error fetching the publish forms");
- }
- };
-
- toggleIntakeForms = async (workspaceSlug: string, projectId: string, data: Partial) => {
- const initialData = this.intakeForms[projectId];
- try {
- runInAction(() => {
- set(this.intakeForms, projectId, { ...this.intakeForms[projectId], ...data });
- });
- const result = await this.inboxIssueService.updatePublishForm(workspaceSlug, projectId, data);
- runInAction(() => {
- set(this.intakeForms, projectId, { ...this.intakeForms[projectId], anchor: result?.anchor });
- });
- } catch {
- console.error("Error fetching the publish forms");
- runInAction(() => {
- set(this.intakeForms, projectId, initialData);
- });
- }
- };
- regenerateIntakeForms = async (workspaceSlug: string, projectId: string) => {
- try {
- const form = await this.inboxIssueService.regeneratePublishForm(workspaceSlug, projectId);
- if (form) {
- runInAction(() => {
- set(this.intakeForms, projectId, {
- ...this.intakeForms[projectId],
- anchor: form?.anchor,
- });
- });
- }
- } catch {
- console.error("Error fetching the publish forms");
- }
- };
-
/**
* @description fetch intake issues with paginated data
* @param workspaceSlug
diff --git a/web/ee/components/issues/issue-details/index.ts b/web/ee/components/issues/issue-details/index.ts
index e23fbe531..4125ebf83 100644
--- a/web/ee/components/issues/issue-details/index.ts
+++ b/web/ee/components/issues/issue-details/index.ts
@@ -3,3 +3,4 @@ export * from "./issue-properties-activity";
export * from "./issue-type-switcher";
export * from "./issue-type-activity";
export * from "./parent-select-root";
+export * from "./issue-creator";
diff --git a/web/ee/components/issues/issue-details/issue-creator.tsx b/web/ee/components/issues/issue-details/issue-creator.tsx
new file mode 100644
index 000000000..a9902b36c
--- /dev/null
+++ b/web/ee/components/issues/issue-details/issue-creator.tsx
@@ -0,0 +1 @@
+export * from "ce/components/issues/issue-details/issue-creator";
diff --git a/web/ee/store/project-inbox.store.ts b/web/ee/store/project-inbox.store.ts
new file mode 100644
index 000000000..309e1e51e
--- /dev/null
+++ b/web/ee/store/project-inbox.store.ts
@@ -0,0 +1 @@
+export * from "ce/store/project-inbox.store";