mirror of
https://github.com/makeplane/plane.git
synced 2026-07-11 13:00:11 +02:00
refac: moved de-dupe directory to core
This commit is contained in:
@@ -22,6 +22,7 @@ type TDeDupeIssuePopoverRootProps = {
|
||||
};
|
||||
|
||||
export const DeDupeIssuePopoverRoot = observer(function DeDupeIssuePopoverRoot(props: TDeDupeIssuePopoverRootProps) {
|
||||
// oxlint-disable-next-line no-empty-pattern
|
||||
const {} = props;
|
||||
return <></>;
|
||||
});
|
||||
@@ -30,7 +30,7 @@ import { useProjectInbox } from "@/hooks/store/use-project-inbox";
|
||||
import { useUser } from "@/hooks/store/user";
|
||||
import useReloadConfirmations from "@/hooks/use-reload-confirmation";
|
||||
// store types
|
||||
import { DeDupeIssuePopoverRoot } from "@/plane-web/components/de-dupe/duplicate-popover";
|
||||
import { DeDupeIssuePopoverRoot } from "@/components/de-dupe/duplicate-popover";
|
||||
import { useDebouncedDuplicateIssues } from "@/hooks/use-debounced-duplicate-issues";
|
||||
// services
|
||||
import { IntakeWorkItemVersionService } from "@/services/inbox";
|
||||
@@ -125,6 +125,7 @@ export const InboxIssueMainContent = observer(function InboxIssueMainContent(pro
|
||||
});
|
||||
}
|
||||
},
|
||||
// oxlint-disable-next-line no-shadow
|
||||
archive: async (workspaceSlug: string, projectId: string, issueId: string) => {
|
||||
try {
|
||||
await archiveIssue(workspaceSlug, projectId, issueId);
|
||||
@@ -133,6 +134,7 @@ export const InboxIssueMainContent = observer(function InboxIssueMainContent(pro
|
||||
}
|
||||
},
|
||||
}),
|
||||
// oxlint-disable-next-line eslint-plugin-react-hooks/exhaustive-deps
|
||||
[inboxIssue]
|
||||
);
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// oxlint-disable jsx_a11y/prefer-tag-over-role
|
||||
// oxlint-disable jsx_a11y/click-events-have-key-events
|
||||
/**
|
||||
* Copyright (c) 2023-present Plane Software, Inc. and contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
@@ -24,8 +26,8 @@ import { useAppRouter } from "@/hooks/use-app-router";
|
||||
import useKeypress from "@/hooks/use-keypress";
|
||||
import { usePlatformOS } from "@/hooks/use-platform-os";
|
||||
// plane web imports
|
||||
import { DeDupeButtonRoot } from "@/plane-web/components/de-dupe/de-dupe-button";
|
||||
import { DuplicateModalRoot } from "@/plane-web/components/de-dupe/duplicate-modal";
|
||||
import { DeDupeButtonRoot } from "@/components/de-dupe/de-dupe-button";
|
||||
import { DuplicateModalRoot } from "@/components/de-dupe/duplicate-modal";
|
||||
import { useDebouncedDuplicateIssues } from "@/hooks/use-debounced-duplicate-issues";
|
||||
// services
|
||||
import { FileService } from "@/services/file.service";
|
||||
@@ -160,6 +162,7 @@ export const InboxIssueCreateRoot = observer(function InboxIssueCreateRoot(props
|
||||
setFormSubmitting(true);
|
||||
|
||||
await createInboxIssue(workspaceSlug, projectId, payload)
|
||||
// oxlint-disable-next-line promise/always-return
|
||||
.then(async (res) => {
|
||||
if (uploadedAssetIds.length > 0) {
|
||||
await fileService.updateBulkProjectAssetsUploadStatus(workspaceSlug, projectId, res?.issue.id ?? "", {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// oxlint-disable no-shadow
|
||||
/**
|
||||
* Copyright (c) 2023-present Plane Software, Inc. and contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
@@ -22,7 +23,7 @@ import { useUser } from "@/hooks/store/user";
|
||||
import useReloadConfirmations from "@/hooks/use-reload-confirmation";
|
||||
import useSize from "@/hooks/use-window-size";
|
||||
// plane web components
|
||||
import { DeDupeIssuePopoverRoot } from "@/plane-web/components/de-dupe/duplicate-popover";
|
||||
import { DeDupeIssuePopoverRoot } from "@/components/de-dupe/duplicate-popover";
|
||||
import { IssueTypeSwitcher } from "@/plane-web/components/issues/issue-details/issue-type-switcher";
|
||||
import { useDebouncedDuplicateIssues } from "@/hooks/use-debounced-duplicate-issues";
|
||||
// services
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// oxlint-disable promise/always-return
|
||||
// oxlint-disable no-shadow
|
||||
// oxlint-disable jsx_a11y/prefer-tag-over-role
|
||||
/**
|
||||
* Copyright (c) 2023-present Plane Software, Inc. and contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
@@ -44,8 +47,8 @@ import { useWorkspaceDraftIssues } from "@/hooks/store/workspace-draft";
|
||||
import { usePlatformOS } from "@/hooks/use-platform-os";
|
||||
import { useProjectIssueProperties } from "@/hooks/use-project-issue-properties";
|
||||
// plane web imports
|
||||
import { DeDupeButtonRoot } from "@/plane-web/components/de-dupe/de-dupe-button";
|
||||
import { DuplicateModalRoot } from "@/plane-web/components/de-dupe/duplicate-modal";
|
||||
import { DeDupeButtonRoot } from "@/components/de-dupe/de-dupe-button";
|
||||
import { DuplicateModalRoot } from "@/components/de-dupe/duplicate-modal";
|
||||
import { IssueTypeSelect, WorkItemTemplateSelect } from "@/plane-web/components/issues/issue-modal";
|
||||
import { WorkItemModalAdditionalProperties } from "@/plane-web/components/issues/issue-modal/modal-additional-properties";
|
||||
import { useDebouncedDuplicateIssues } from "@/hooks/use-debounced-duplicate-issues";
|
||||
@@ -342,6 +345,7 @@ export const IssueFormRoot = observer(function IssueFormRoot(props: IssueFormPro
|
||||
setSelectedParentIssue(
|
||||
convertWorkItemDataToSearchResponse(workspaceSlug?.toString(), issue, projectDetails, stateDetails)
|
||||
);
|
||||
// oxlint-disable-next-line eslint-plugin-react-hooks/exhaustive-deps
|
||||
}, [watch, getIssueById, getProjectById, selectedParentIssue, getStateById]);
|
||||
|
||||
// executing this useEffect when isDirty changes
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// oxlint-disable no-shadow
|
||||
/**
|
||||
* Copyright (c) 2023-present Plane Software, Inc. and contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
@@ -22,7 +23,7 @@ import { useProject } from "@/hooks/store/use-project";
|
||||
import { useUser } from "@/hooks/store/user";
|
||||
import useReloadConfirmations from "@/hooks/use-reload-confirmation";
|
||||
// plane web components
|
||||
import { DeDupeIssuePopoverRoot } from "@/plane-web/components/de-dupe/duplicate-popover";
|
||||
import { DeDupeIssuePopoverRoot } from "@/components/de-dupe/duplicate-popover";
|
||||
import { IssueTypeSwitcher } from "@/plane-web/components/issues/issue-details/issue-type-switcher";
|
||||
// plane web hooks
|
||||
import { useDebouncedDuplicateIssues } from "@/hooks/use-debounced-duplicate-issues";
|
||||
|
||||
Reference in New Issue
Block a user