diff --git a/web/pages/[workspaceSlug]/projects/[projectId]/settings/features.tsx b/web/pages/[workspaceSlug]/projects/[projectId]/settings/features.tsx
index 6947787f481..5c04c5f7cca 100644
--- a/web/pages/[workspaceSlug]/projects/[projectId]/settings/features.tsx
+++ b/web/pages/[workspaceSlug]/projects/[projectId]/settings/features.tsx
@@ -15,11 +15,11 @@ import useUserAuth from "hooks/use-user-auth";
// components
import { SettingsSidebar } from "components/project";
// ui
-import { Icon, ToggleSwitch } from "components/ui";
+import { ToggleSwitch } from "components/ui";
import { BreadcrumbItem, Breadcrumbs } from "components/breadcrumbs";
// icons
-import { ContrastIcon, PeopleGroupIcon, ViewListIcon, InboxIcon } from "components/icons";
-import { DocumentTextIcon } from "@heroicons/react/24/outline";
+import { ModuleIcon } from "components/icons";
+import { Contrast, FileText, Inbox, Layers } from "lucide-react";
// types
import { IProject } from "types";
import type { NextPage } from "next";
@@ -33,38 +33,35 @@ const featuresList = [
title: "Cycles",
description:
"Cycles are enabled for all the projects in this workspace. Access them from the sidebar.",
- icon:
,
+ icon:
,
property: "cycle_view",
},
{
title: "Modules",
description:
"Modules are enabled for all the projects in this workspace. Access it from the sidebar.",
- // icon:
,
- icon:
,
+ icon:
,
property: "module_view",
},
{
title: "Views",
description:
"Views are enabled for all the projects in this workspace. Access it from the sidebar.",
- icon:
,
+ icon:
,
property: "issue_views_view",
},
{
title: "Pages",
description:
"Pages are enabled for all the projects in this workspace. Access it from the sidebar.",
- // icon:
,
- icon:
,
+ icon:
,
property: "page_view",
},
{
title: "Inbox",
description:
"Inbox are enabled for all the projects in this workspace. Access it from the issues views page.",
- // icon:
,
- icon:
,
+ icon:
,
property: "inbox_view",
},
];
@@ -156,8 +153,10 @@ const FeaturesSettings: NextPage = () => {
-
- Features
+
+
+
Features
+
{featuresList.map((feature) => (
{
className="flex items-center justify-between gap-x-8 gap-y-2 border-b border-custom-border-200 bg-custom-background-100 p-4"
>
-
+
{feature.icon}
@@ -196,7 +195,7 @@ const FeaturesSettings: NextPage = () => {
[feature.property]: !projectDetails?.[feature.property as keyof IProject],
});
}}
- size="md"
+ size="sm"
/>
))}
diff --git a/web/pages/[workspaceSlug]/projects/[projectId]/settings/labels.tsx b/web/pages/[workspaceSlug]/projects/[projectId]/settings/labels.tsx
index 9541536fb8f..bd1e68a7702 100644
--- a/web/pages/[workspaceSlug]/projects/[projectId]/settings/labels.tsx
+++ b/web/pages/[workspaceSlug]/projects/[projectId]/settings/labels.tsx
@@ -118,7 +118,7 @@ const LabelsSettings: NextPage = () => {
-
+
- Defaults
+
+
Defaults
+
@@ -331,7 +333,7 @@ const MembersSettings: NextPage = () => {
-
+
Members
setInviteModal(true)}>Add Member
@@ -397,10 +399,16 @@ const MembersSettings: NextPage = () => {
-
+
{ROLE[member.role as keyof typeof ROLE]}
-
+ {member.memberId !== user?.id && (
+
+ )}
}
value={member.role}
@@ -466,7 +474,11 @@ const MembersSettings: NextPage = () => {
>
- Remove member
+
+
+ {" "}
+ {member.memberId !== user?.id ? "Remove member" : "Leave project"}
+
diff --git a/web/pages/[workspaceSlug]/projects/[projectId]/settings/states.tsx b/web/pages/[workspaceSlug]/projects/[projectId]/settings/states.tsx
index 1c4c26ae442..e36592a899a 100644
--- a/web/pages/[workspaceSlug]/projects/[projectId]/settings/states.tsx
+++ b/web/pages/[workspaceSlug]/projects/[projectId]/settings/states.tsx
@@ -78,7 +78,9 @@ const StatesSettings: NextPage = () => {
-
States
+
+
States
+
{states && projectDetails && orderedStateGroups ? (
Object.keys(orderedStateGroups).map((key) => {
From 486cab8f2ee616e1277d493d565037c82d3b9cf6 Mon Sep 17 00:00:00 2001
From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com>
Date: Wed, 13 Sep 2023 20:43:20 +0530
Subject: [PATCH 17/21] style: project label setting revamp
---
.../labels/create-update-label-inline.tsx | 16 ++--
web/components/labels/single-label-group.tsx | 73 +++++++++++--------
web/components/labels/single-label.tsx | 57 +++++++++------
3 files changed, 81 insertions(+), 65 deletions(-)
diff --git a/web/components/labels/create-update-label-inline.tsx b/web/components/labels/create-update-label-inline.tsx
index 6306d14ca36..61064e7774f 100644
--- a/web/components/labels/create-update-label-inline.tsx
+++ b/web/components/labels/create-update-label-inline.tsx
@@ -17,7 +17,7 @@ import issuesService from "services/issues.service";
// ui
import { Input, PrimaryButton, SecondaryButton } from "components/ui";
// icons
-import { ChevronDownIcon } from "@heroicons/react/24/outline";
+import { Component } from "lucide-react";
// types
import { IIssueLabels } from "types";
// fetch-keys
@@ -132,7 +132,7 @@ export const CreateUpdateLabelInline = forwardRef
(
return (
(
open ? "text-custom-text-100" : "text-custom-text-200"
}`}
>
-
-
= ({
return (
{({ open }) => (
<>
-
-
-
+
{label.name}
-
+
addLabelToGroup(label)}>
@@ -112,7 +110,9 @@ export const SingleLabelGroup: React.FC = ({
@@ -128,15 +128,15 @@ export const SingleLabelGroup: React.FC = ({
leaveTo="transform opacity-0"
>
-
+
{labelChildren.map((child) => (
= ({
/>
{child.name}
-
-
- removeFromGroup(child)}>
-
-
- Remove from group
-
-
- editLabel(child)}>
-
-
- Edit label
-
-
-
-
-
- Delete label
-
-
-
+
+
+
+
+
+ }
+ >
+
removeFromGroup(child)}>
+
+
+ Remove from group
+
+
+
editLabel(child)}>
+
+
+ Edit label
+
+
+
+
+
+
+
+
))}
diff --git a/web/components/labels/single-label.tsx b/web/components/labels/single-label.tsx
index 37aee2eff64..464b331529d 100644
--- a/web/components/labels/single-label.tsx
+++ b/web/components/labels/single-label.tsx
@@ -5,7 +5,8 @@ import { CustomMenu } from "components/ui";
// types
import { IIssueLabels } from "types";
//icons
-import { RectangleGroupIcon, PencilIcon, TrashIcon } from "@heroicons/react/24/outline";
+import { RectangleGroupIcon, PencilIcon } from "@heroicons/react/24/outline";
+import { Component, X } from "lucide-react";
type Props = {
label: IIssueLabels;
@@ -20,8 +21,8 @@ export const SingleLabel: React.FC
= ({
editLabel,
handleLabelDelete,
}) => (
-
-
+
+
= ({
/>
{label.name}
-
- addLabelToGroup(label)}>
-
-
- Convert to group
-
-
- editLabel(label)}>
-
-
- Edit label
-
-
-
-
-
- Delete label
-
-
-
+
+
+
+
+
+ }
+ >
+
addLabelToGroup(label)}>
+
+
+ Convert to group
+
+
+
editLabel(label)}>
+
+
+ Edit label
+
+
+
+
+
+
+
+
+
);
From acefff5ed2cd00544b053a9ba7a9235b5c001b3a Mon Sep 17 00:00:00 2001
From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com>
Date: Wed, 13 Sep 2023 21:05:56 +0530
Subject: [PATCH 18/21] style: project state setting ui improvement
---
web/components/states/single-state.tsx | 76 +++++++++----------
.../[projectId]/settings/features.tsx | 6 +-
.../projects/[projectId]/settings/states.tsx | 10 ++-
3 files changed, 46 insertions(+), 46 deletions(-)
diff --git a/web/components/states/single-state.tsx b/web/components/states/single-state.tsx
index bfa53974a61..6ec19ff0696 100644
--- a/web/components/states/single-state.tsx
+++ b/web/components/states/single-state.tsx
@@ -9,13 +9,10 @@ import stateService from "services/state.service";
// ui
import { Tooltip } from "components/ui";
// icons
-import {
- ArrowDownIcon,
- ArrowUpIcon,
- PencilSquareIcon,
- TrashIcon,
-} from "@heroicons/react/24/outline";
+import { ArrowDownIcon, ArrowUpIcon } from "@heroicons/react/24/outline";
import { StateGroupIcon } from "components/icons";
+import { Pencil, X } from "lucide-react";
+
// helpers
import { addSpaceIfCamelCase } from "helpers/string.helper";
import { groupBy, orderArrayBy } from "helpers/array.helper";
@@ -160,15 +157,15 @@ export const SingleState: React.FC
= ({
};
return (
-
+
-
{addSpaceIfCamelCase(state.name)}
+
{addSpaceIfCamelCase(state.name)}
{state.description}
-
+
{index !== 0 && (
);
diff --git a/web/pages/[workspaceSlug]/projects/[projectId]/settings/features.tsx b/web/pages/[workspaceSlug]/projects/[projectId]/settings/features.tsx
index 5c04c5f7cca..0aaaf0b1c93 100644
--- a/web/pages/[workspaceSlug]/projects/[projectId]/settings/features.tsx
+++ b/web/pages/[workspaceSlug]/projects/[projectId]/settings/features.tsx
@@ -47,21 +47,21 @@ const featuresList = [
title: "Views",
description:
"Views are enabled for all the projects in this workspace. Access it from the sidebar.",
- icon:
,
+ icon:
,
property: "issue_views_view",
},
{
title: "Pages",
description:
"Pages are enabled for all the projects in this workspace. Access it from the sidebar.",
- icon:
,
+ icon:
,
property: "page_view",
},
{
title: "Inbox",
description:
"Inbox are enabled for all the projects in this workspace. Access it from the issues views page.",
- icon:
,
+ icon:
,
property: "inbox_view",
},
];
diff --git a/web/pages/[workspaceSlug]/projects/[projectId]/settings/states.tsx b/web/pages/[workspaceSlug]/projects/[projectId]/settings/states.tsx
index e36592a899a..9a7d2060a8c 100644
--- a/web/pages/[workspaceSlug]/projects/[projectId]/settings/states.tsx
+++ b/web/pages/[workspaceSlug]/projects/[projectId]/settings/states.tsx
@@ -86,9 +86,11 @@ const StatesSettings: NextPage = () => {
Object.keys(orderedStateGroups).map((key) => {
if (orderedStateGroups[key].length !== 0)
return (
-
-
-
{key}
+
+
-
+
{key === activeGroup && (
Date: Wed, 13 Sep 2023 21:29:36 +0530
Subject: [PATCH 19/21] chore: integration setting repo select validation
---
web/components/integration/github/select-repository.tsx | 2 ++
web/components/integration/slack/select-channel.tsx | 6 +++---
web/components/project/single-integration-card.tsx | 2 +-
3 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/web/components/integration/github/select-repository.tsx b/web/components/integration/github/select-repository.tsx
index 9857c0088ea..b46942e6d34 100644
--- a/web/components/integration/github/select-repository.tsx
+++ b/web/components/integration/github/select-repository.tsx
@@ -66,6 +66,8 @@ export const SelectRepository: React.FC = ({
content: {truncateText(repo.full_name, characterLimit)}
,
})) ?? [];
+ if (userRepositories.length < 1) return null;
+
return (
= ({ integration }) => {
{projectIntegration ? (
{
@@ -92,8 +92,8 @@ export const SelectChannel: React.FC = ({ integration }) => {
>
diff --git a/web/components/project/single-integration-card.tsx b/web/components/project/single-integration-card.tsx
index 587db0c85d0..e7095e9ad82 100644
--- a/web/components/project/single-integration-card.tsx
+++ b/web/components/project/single-integration-card.tsx
@@ -92,7 +92,7 @@ export const SingleIntegration: React.FC = ({ integration }) => {
return (
<>
{integration && (
-
+
Date: Wed, 13 Sep 2023 21:46:08 +0530
Subject: [PATCH 20/21] chore: code refactor
---
.hintrc | 22 ----------------------
1 file changed, 22 deletions(-)
delete mode 100644 .hintrc
diff --git a/.hintrc b/.hintrc
deleted file mode 100644
index 42502f3914e..00000000000
--- a/.hintrc
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "extends": [
- "development"
- ],
- "hints": {
- "no-inline-styles": "off",
- "button-type": "off",
- "axe/name-role-value": [
- "default",
- {
- "button-name": "off"
- }
- ],
- "disown-opener": "off",
- "axe/aria": [
- "default",
- {
- "aria-required-attr": "off"
- }
- ]
- }
-}
\ No newline at end of file
From dccc3ce1d3185dab456402f9261a780947974336 Mon Sep 17 00:00:00 2001
From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com>
Date: Wed, 13 Sep 2023 22:37:31 +0530
Subject: [PATCH 21/21] fix: build fix
---
web/services/modules.service.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/services/modules.service.ts b/web/services/modules.service.ts
index dcac98d501f..5299fbaadca 100644
--- a/web/services/modules.service.ts
+++ b/web/services/modules.service.ts
@@ -2,7 +2,7 @@
import APIService from "services/api.service";
import trackEventServices from "./track-event.service";
// types
-import type { IIssueViewOptions, IModule, IIssue, ICurrentUserResponse } from "types";
+import type { IModule, IIssue, ICurrentUserResponse } from "types";
import { API_BASE_URL } from "helpers/common.helper";
const { NEXT_PUBLIC_API_BASE_URL } = process.env;