diff --git a/apps/app/.env.example b/apps/app/.env.example new file mode 100644 index 000000000..aff5c6c31 --- /dev/null +++ b/apps/app/.env.example @@ -0,0 +1,4 @@ +NEXT_PUBLIC_API_BASE_URL = "<-- endpoint goes here -->" +NEXT_PUBLIC_GOOGLE_CLIENTID = "<-- google client id goes here -->" +NEXT_PUBLIC_GITHUB_ID = "<-- github id goes here -->" +NEXT_PUBLIC_APP_ENVIRONMENT=development \ No newline at end of file diff --git a/apps/app/components/command-palette/addAsSubIssue.tsx b/apps/app/components/command-palette/addAsSubIssue.tsx index e8c585e45..aadc04574 100644 --- a/apps/app/components/command-palette/addAsSubIssue.tsx +++ b/apps/app/components/command-palette/addAsSubIssue.tsx @@ -7,7 +7,7 @@ import { useForm } from "react-hook-form"; // headless ui import { Combobox, Dialog, Transition } from "@headlessui/react"; // services -import issuesServices from "lib/services/issues.services"; +import issuesServices from "lib/services/issues.service"; // hooks import useUser from "lib/hooks/useUser"; // icons diff --git a/apps/app/components/command-palette/index.tsx b/apps/app/components/command-palette/index.tsx index 63490c97d..32f71a3db 100644 --- a/apps/app/components/command-palette/index.tsx +++ b/apps/app/components/command-palette/index.tsx @@ -8,7 +8,7 @@ import { SubmitHandler, useForm } from "react-hook-form"; // headless ui import { Combobox, Dialog, Transition } from "@headlessui/react"; // services -import issuesServices from "lib/services/issues.services"; +import issuesServices from "lib/services/issues.service"; // hooks import useUser from "lib/hooks/useUser"; import useTheme from "lib/hooks/useTheme"; @@ -22,7 +22,7 @@ import { } from "@heroicons/react/24/outline"; // components import ShortcutsModal from "components/command-palette/shortcuts"; -import CreateProjectModal from "components/project/CreateProjectModal"; +import CreateProjectModal from "components/project/create-project-modal"; import CreateUpdateIssuesModal from "components/project/issues/CreateUpdateIssueModal"; import CreateUpdateCycleModal from "components/project/cycles/CreateUpdateCyclesModal"; // ui diff --git a/apps/app/components/forms/EmailPasswordForm.tsx b/apps/app/components/forms/EmailPasswordForm.tsx index a73c8b040..384b77598 100644 --- a/apps/app/components/forms/EmailPasswordForm.tsx +++ b/apps/app/components/forms/EmailPasswordForm.tsx @@ -88,9 +88,7 @@ const EmailPasswordForm = ({ onSuccess }: any) => {
diff --git a/apps/app/components/lexical/editor.tsx b/apps/app/components/lexical/editor.tsx index 510c03e94..71fbb03cf 100644 --- a/apps/app/components/lexical/editor.tsx +++ b/apps/app/components/lexical/editor.tsx @@ -27,7 +27,7 @@ import { getValidatedValue } from "./helpers/editor"; import LexicalErrorBoundary from "@lexical/react/LexicalErrorBoundary"; export interface RichTextEditorProps { - onChange: (state: SerializedEditorState) => void; + onChange: (state: string) => void; id: string; value: string; placeholder?: string; @@ -41,8 +41,7 @@ const RichTextEditor: React.FCAre you sure you want to delete project - {`"`} - {data?.name} + {selectedProject?.name} {`"`} ? All of the data related to the project will be permanently removed. This action cannot be undone.
+ Enter the project name{" "} + {selectedProject?.name} to + continue: +
+ { + setConfirmProjectName(e.target.value); + }} + name="projectName" + /> ++ To confirm, type delete my project{" "} + below: +
+ { + if (e.target.value === "delete my project") { + setConfirmDeleteMyProject(true); + } else { + setConfirmDeleteMyProject(false); + } + }} + name="typeDelete" + /> +Ops! Identifier is already taken. Try one of the following:
+