+
{option.member.first_name && option.member.first_name !== ""
? option.member.first_name.charAt(0)
: option.member.email.charAt(0)}
)}
- {option.member.first_name}
+ {option.member.first_name && option.member.first_name !== ""
+ ? option.member.first_name
+ : option.member.email}
))
) : (
diff --git a/apps/app/components/project/issues/ListView/index.tsx b/apps/app/components/project/issues/list-view/index.tsx
similarity index 99%
rename from apps/app/components/project/issues/ListView/index.tsx
rename to apps/app/components/project/issues/list-view/index.tsx
index a95c83606..ecafe2abf 100644
--- a/apps/app/components/project/issues/ListView/index.tsx
+++ b/apps/app/components/project/issues/list-view/index.tsx
@@ -18,7 +18,7 @@ import {
} from "@heroicons/react/24/outline";
import User from "public/user.png";
// components
-import CreateUpdateIssuesModal from "components/project/issues/CreateUpdateIssueModal";
+import CreateUpdateIssuesModal from "components/project/issues/create-update-issue-modal";
// types
import { IIssue, IWorkspaceMember, NestedKeyOf, Properties } from "types";
// services
diff --git a/apps/app/components/sidebar/projects-list.tsx b/apps/app/components/sidebar/projects-list.tsx
index 5d4d4e91c..21be9bdae 100644
--- a/apps/app/components/sidebar/projects-list.tsx
+++ b/apps/app/components/sidebar/projects-list.tsx
@@ -58,7 +58,7 @@ const ProjectsList: React.FC
= ({ navigation, sidebarCollapse }) => {
<>
diff --git a/apps/app/pages/projects/[projectId]/cycles/[cycleId].tsx b/apps/app/pages/projects/[projectId]/cycles/[cycleId].tsx
index 0d91a58c6..c4e2fdcf8 100644
--- a/apps/app/pages/projects/[projectId]/cycles/[cycleId].tsx
+++ b/apps/app/pages/projects/[projectId]/cycles/[cycleId].tsx
@@ -40,7 +40,7 @@ import {
import { CYCLE_ISSUES, PROJECT_MEMBERS } from "constants/fetch-keys";
// constants
import { classNames, replaceUnderscoreIfSnakeCase } from "constants/common";
-import CreateUpdateIssuesModal from "components/project/issues/CreateUpdateIssueModal";
+import CreateUpdateIssuesModal from "components/project/issues/create-update-issue-modal";
import CycleIssuesListModal from "components/project/cycles/cycle-issues-list-modal";
import ConfirmCycleDeletion from "components/project/cycles/confirm-cycle-deletion";
@@ -149,22 +149,6 @@ const SingleCycle: React.FC = () => {
setCycleIssuesListModal(true);
};
- const addIssueToCycle = (cycleId: string, issueId: string) => {
- if (!activeWorkspace || !activeProject?.id) return;
-
- issuesServices
- .addIssueToCycle(activeWorkspace.slug, activeProject.id, cycleId, {
- issue: issueId,
- })
- .then((response) => {
- console.log(response);
- mutate(CYCLE_ISSUES(cycleId));
- })
- .catch((error) => {
- console.log(error);
- });
- };
-
const handleDragEnd = (result: DropResult) => {
if (!result.destination) return;
const { source, destination } = result;
@@ -264,6 +248,7 @@ const SingleCycle: React.FC = () => {
>
}
className="ml-1.5"
+ width="auto"
>
{cycles?.map((cycle) => (
import("components/lexical/editor"), {
ssr: false,
@@ -276,8 +274,8 @@ const IssueDetail: NextPage = () => {
parent={issueDetail}
/>
{issueDetail && activeProject ? (
-
-
+
+
{issueDetail.parent !== null && issueDetail.parent !== "" ? (
@@ -614,7 +612,8 @@ const IssueDetail: NextPage = () => {
-
+
+ {/* TODO add flex-grow, if needed */}
diff --git a/apps/app/ui/CustomMenu/types.d.ts b/apps/app/ui/custom-menu/types.d.ts
similarity index 100%
rename from apps/app/ui/CustomMenu/types.d.ts
rename to apps/app/ui/custom-menu/types.d.ts
diff --git a/apps/app/ui/custom-select/index.tsx b/apps/app/ui/custom-select/index.tsx
index 5963a039c..2355b5b90 100644
--- a/apps/app/ui/custom-select/index.tsx
+++ b/apps/app/ui/custom-select/index.tsx
@@ -10,9 +10,17 @@ type CustomSelectProps = {
children: React.ReactNode;
label: string | JSX.Element;
textAlignment?: "left" | "center" | "right";
+ width?: "auto" | string;
};
-const CustomSelect = ({ children, label, textAlignment, value, onChange }: CustomSelectProps) => {
+const CustomSelect = ({
+ children,
+ label,
+ textAlignment,
+ value,
+ onChange,
+ width = "auto",
+}: CustomSelectProps) => {
return (
-
+
{children}
diff --git a/apps/app/ui/index.ts b/apps/app/ui/index.ts
index 96c097668..6b564eba1 100644
--- a/apps/app/ui/index.ts
+++ b/apps/app/ui/index.ts
@@ -2,11 +2,11 @@ export { default as Button } from "./Button";
export { default as Input } from "./Input";
export { default as Select } from "./Select";
export { default as TextArea } from "./TextArea";
-export { default as CustomListbox } from "./CustomListbox";
-export { default as CustomMenu } from "./CustomMenu";
+export { default as CustomListbox } from "./custom-listbox";
+export { default as CustomMenu } from "./custom-menu";
export { default as Spinner } from "./Spinner";
export { default as Tooltip } from "./Tooltip";
-export { default as SearchListbox } from "./SearchListbox";
+export { default as SearchListbox } from "./search-listbox";
export { default as HeaderButton } from "./HeaderButton";
export * from "./Breadcrumbs";
export * from "./EmptySpace";
diff --git a/apps/app/ui/SearchListbox/index.tsx b/apps/app/ui/search-listbox/index.tsx
similarity index 94%
rename from apps/app/ui/SearchListbox/index.tsx
rename to apps/app/ui/search-listbox/index.tsx
index c489fdff2..d2cbf8870 100644
--- a/apps/app/ui/SearchListbox/index.tsx
+++ b/apps/app/ui/search-listbox/index.tsx
@@ -100,12 +100,12 @@ const SearchListbox: React.FC = ({
} ${optionsClassName || ""}`}
>
setQuery(event.target.value)}
placeholder="Search"
displayValue={(assigned: any) => assigned?.name}
/>
-
+
{filteredOptions ? (
filteredOptions.length > 0 ? (
filteredOptions.map((option) => (
@@ -113,8 +113,8 @@ const SearchListbox: React.FC
= ({
key={option.value}
className={({ active }) =>
`${
- active ? "text-white bg-theme" : "text-gray-900"
- } cursor-pointer select-none truncate font-medium relative p-2 rounded-md`
+ active ? "bg-indigo-50" : ""
+ } cursor-pointer select-none truncate text-gray-900 p-2`
}
value={option.value}
>
diff --git a/apps/app/ui/SearchListbox/types.d.ts b/apps/app/ui/search-listbox/types.d.ts
similarity index 100%
rename from apps/app/ui/SearchListbox/types.d.ts
rename to apps/app/ui/search-listbox/types.d.ts