π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
chore: bug fixes and improvement (#3434)
Anmol Singh Bhatiabb50df0dff4f
diff --git a/web/components/cycles/modal.tsx b/web/components/cycles/modal.tsxindex bfd30cdf64..fed6eefc24 100644--- a/web/components/cycles/modal.tsx+++ b/web/components/cycles/modal.tsx@@ -5,10 +5,11 @@ import { CycleService } from "services/cycle.service";// hooksimport { useApplication, useCycle } from "hooks/store";import useToast from "hooks/use-toast";+import useLocalStorage from "hooks/use-local-storage";// componentsimport { CycleForm } from "components/cycles";// types-import type { CycleDateCheckData, ICycle } from "@plane/types";+import type { CycleDateCheckData, ICycle, TCycleView } from "@plane/types";type CycleModalProps = {isOpen: boolean;@@ -33,6 +34,8 @@ export const CycleCreateUpdateModal: React.FC<CycleModalProps> = (props) => {// toast alertconst { setToastAlert } = useToast();+ const { setValue: setCycleTab } = useLocalStorage<TCycleView>("cycle_tab", "active");+const handleCreateCycle = async (payload: Partial<ICycle>) => {if (!workspaceSlug || !projectId) return;@@ -117,7 +120,11 @@ export const CycleCreateUpdateModal: React.FC<CycleModalProps> = (props) => {if (isDateValid) {if (data) await handleUpdateCycle(data.id, payload);- else await handleCreateCycle(payload);+ else {+ await handleCreateCycle(payload).then(() => {+ setCycleTab("all");+ });+ }handleClose();} elsesetToastAlert({diff --git a/web/components/issues/delete-issue-modal.tsx b/web/components/issues/delete-issue-modal.tsxindex e2d4a4a00f..a063980c08 100644--- a/web/components/issues/delete-issue-modal.tsx+++ b/web/components/issues/delete-issue-modal.tsx@@ -47,11 +47,6 @@ export const DeleteIssueModal: React.FC<Props> = (props) => {if (onSubmit)await onSubmit().then(() => {- setToastAlert({- title: "Success",- type: "success",- message: "Issue deleted successfully",- });onClose();}).catch(() => {diff --git a/web/components/issues/peek-overview/view.tsx b/web/components/issues/peek-overview/view.tsxindex d422d91e02..a086714550 100644--- a/web/components/issues/peek-overview/view.tsx+++ b/web/components/issues/peek-overview/view.tsx@@ -109,7 +109,10 @@ export const IssueView: FC<IIssueView> = observer((props) => {{issue && !is_archived && (<DeleteIssueModalisOpen={isDeleteIssueModalOpen}- handleClose={() => toggleDeleteIssueModal(false)}+ handleClose={() => {+ toggleDeleteIssueModal(false);+ removeRoutePeekId();+ }}data={issue}onSubmit={() => issueOperations.remove(workspaceSlug, projectId, issueId)}/>diff --git a/web/components/project/form.tsx b/web/components/project/form.tsxindex cfcb875328..3badbb8bf8 100644--- a/web/components/project/form.tsx+++ b/web/components/project/form.tsx@@ -7,6 +7,8 @@ import useToast from "hooks/use-toast";import EmojiIconPicker from "components/emoji-icon-picker";import { ImagePickerPopover } from "components/core";import { Button, CustomSelect, Input, TextArea } from "@plane/ui";+// icons+import { Lock } from "lucide-react";// typesimport { IProject, IWorkspace } from "@plane/types";// helpers@@ -169,8 +171,10 @@ export const ProjectDetailsForm: FC<IProjectDetailsForm> = (props) => {<div className="flex flex-col gap-1 truncate text-white"><span className="truncate text-lg font-semibold">{watch("name")}</span><span className="flex items-center gap-2 text-sm">- <span>- {watch("identifier")} . {currentNetwork?.label}+ <span>{watch("identifier")} .</span>+ <span className="flex items-center gap-1.5">+ {project.network === 0 && <Lock className="h-2.5 w-2.5 text-white " />}+ {currentNetwork?.label}</span></span></div>