= (props: TTabsProps) => {
: tab.disabled
? "text-custom-text-400 cursor-not-allowed"
: "text-custom-text-400 hover:text-custom-text-300 hover:bg-custom-background-80/60",
+ {
+ "text-xs": size === "sm",
+ "text-sm": size === "md",
+ "text-base": size === "lg",
+ },
tabClassName
)
}
key={tab.key}
onClick={() => {
- if (!tab.disabled) setValue(tab.key);
+ if (!tab.disabled) setSelectedTab(tab.key);
+ tab.onClick?.();
}}
disabled={tab.disabled}
>
diff --git a/packages/utils/package.json b/packages/utils/package.json
index 368c14e74ea..a0e0ecca141 100644
--- a/packages/utils/package.json
+++ b/packages/utils/package.json
@@ -1,6 +1,6 @@
{
"name": "@plane/utils",
- "version": "0.24.0",
+ "version": "0.24.1",
"description": "Helper functions shared across multiple apps internally",
"private": true,
"main": "./dist/index.js",
diff --git a/space/core/store/helpers/base-issues.store.ts b/space/core/store/helpers/base-issues.store.ts
index 004aa06c630..7abfa324a8d 100644
--- a/space/core/store/helpers/base-issues.store.ts
+++ b/space/core/store/helpers/base-issues.store.ts
@@ -26,7 +26,7 @@ import { CoreRootStore } from "../root.store";
// constants
// helpers
-export type TIssueDisplayFilterOptions = Exclude | "target_date";
+export type TIssueDisplayFilterOptions = Exclude | "target_date";
export enum EIssueGroupedAction {
ADD = "ADD",
diff --git a/space/package.json b/space/package.json
index 2c05ef43f7e..941f8419fa5 100644
--- a/space/package.json
+++ b/space/package.json
@@ -1,6 +1,6 @@
{
"name": "space",
- "version": "0.24.0",
+ "version": "0.24.1",
"private": true,
"scripts": {
"dev": "turbo run develop",
diff --git a/web/app/[workspaceSlug]/(projects)/notifications/layout.tsx b/web/app/[workspaceSlug]/(projects)/notifications/layout.tsx
index 7d71948d838..e3d73036361 100644
--- a/web/app/[workspaceSlug]/(projects)/notifications/layout.tsx
+++ b/web/app/[workspaceSlug]/(projects)/notifications/layout.tsx
@@ -1,7 +1,7 @@
"use client";
// components
-import { NotificationsSidebarRoot } from "@/plane-web/components/workspace-notifications";
+import { NotificationsSidebarRoot } from "@/components/workspace-notifications";
export default function ProjectInboxIssuesLayout({ children }: { children: React.ReactNode }) {
return (
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(detail)/[cycleId]/page.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(detail)/[cycleId]/page.tsx
index a1f7071a449..7a29f055306 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(detail)/[cycleId]/page.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/cycles/(detail)/[cycleId]/page.tsx
@@ -77,7 +77,12 @@ const CycleDetailPage = observer(() => {
"0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 2px 4px 0px rgba(16, 24, 40, 0.06), 0px 1px 8px -1px rgba(16, 24, 40, 0.06)",
}}
>
-
+
)}
diff --git a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(list)/header.tsx b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(list)/header.tsx
index 1b1cffcc64a..c3aacaebb0a 100644
--- a/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(list)/header.tsx
+++ b/web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/issues/(list)/header.tsx
@@ -1,130 +1,3 @@
-"use client";
+import { IssuesHeader } from "@/plane-web/components/issues";
-import { observer } from "mobx-react";
-import { useParams } from "next/navigation";
-// icons
-import { Briefcase, Circle, ExternalLink } from "lucide-react";
-// ui
-import { Breadcrumbs, Button, LayersIcon, Tooltip, Header } from "@plane/ui";
-// components
-import { BreadcrumbLink, CountChip, Logo } from "@/components/common";
-// constants
-import HeaderFilters from "@/components/issues/filters";
-import { EIssuesStoreType } from "@/constants/issue";
-// helpers
-import { SPACE_BASE_PATH, SPACE_BASE_URL } from "@/helpers/common.helper";
-// hooks
-import { useEventTracker, useProject, useCommandPalette, useUserPermissions } from "@/hooks/store";
-import { useIssues } from "@/hooks/store/use-issues";
-import { useAppRouter } from "@/hooks/use-app-router";
-import { usePlatformOS } from "@/hooks/use-platform-os";
-import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
-
-export const ProjectIssuesHeader = observer(() => {
- // router
- const router = useAppRouter();
- const { workspaceSlug, projectId } = useParams() as { workspaceSlug: string; projectId: string };
- // store hooks
- const {
- issues: { getGroupIssueCount },
- } = useIssues(EIssuesStoreType.PROJECT);
-
- const { currentProjectDetails, loader } = useProject();
-
- const { toggleCreateIssueModal } = useCommandPalette();
- const { setTrackElement } = useEventTracker();
- const { allowPermissions } = useUserPermissions();
- const { isMobile } = usePlatformOS();
-
- const SPACE_APP_URL = (SPACE_BASE_URL.trim() === "" ? window.location.origin : SPACE_BASE_URL) + SPACE_BASE_PATH;
- const publishedURL = `${SPACE_APP_URL}/issues/${currentProjectDetails?.anchor}`;
-
- const issuesCount = getGroupIssueCount(undefined, undefined, false);
- const canUserCreateIssue = allowPermissions(
- [EUserPermissions.ADMIN, EUserPermissions.MEMBER],
- EUserPermissionsLevel.PROJECT
- );
-
- return (
-