Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: app dir migration #4743

Merged
merged 111 commits into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
704bd07
feat: creating new app dir structure for web app
sriramveeraghanta May 30, 2024
2955480
fix: moving few pages to app dir
sriramveeraghanta May 31, 2024
e12e874
fix: adding profile settings layout
sriramveeraghanta May 31, 2024
7dda61a
fix: errors on app dir.
prateekshourya29 May 31, 2024
a43a38f
chore: remove pages routes.
prateekshourya29 May 31, 2024
205930c
chore: add sign-in/ sign-up, invitations, onboarding pages.
prateekshourya29 May 31, 2024
6abc272
[WEB-1374] fix: clear changes made on modal close (#4555)
rahulramesha May 29, 2024
4c22c01
[WEB-1480] fix: preserve page access when making a copy (#4568)
aaryan610 May 29, 2024
7537bb5
[WEB-1465] fix: theme fluctuation on initial load. (#4638)
prateekshourya29 May 29, 2024
2d3020f
[WEB-1445] fix: issue creation on sub groups when cycle/ module group…
prateekshourya29 May 29, 2024
767774c
[WEB-1244] fix: add better image insertion and replacement logic in t…
Palanikannan1437 May 29, 2024
f3fc2d1
fix: notification mark all as read (#4643)
anmolsinghbhatia May 30, 2024
7804e16
chore: remove enter key extension (#4648)
aaryan610 May 30, 2024
94a34c5
[WEB-1467] chore: run the API's required to bootstrap the application…
prateekshourya29 May 30, 2024
453984c
[WEB - 1482] fix: uploads when using block storages other than s3 and…
pablohashescobar May 30, 2024
2e7823e
fix: negate check while trying to discard (#4653)
Palanikannan1437 May 30, 2024
8d4382b
fix: email notification preferences (#4656)
anmolsinghbhatia May 31, 2024
8e74054
[WEB-1493] chore: product tour asset and app sidebar quick action hov…
anmolsinghbhatia May 31, 2024
1df67ae
fix: project state setting state name remove camel case logic (#4652)
anmolsinghbhatia May 31, 2024
5e46232
[WEB-1419] chore: enable module creation with dates older than today.…
prateekshourya29 May 31, 2024
8a08772
[WEB-1216] chore: increase module empty state for consistency. (#4658)
prateekshourya29 May 31, 2024
a132065
fix: build errors
sriramveeraghanta May 31, 2024
63d3f65
[WEB-1235] chore: module and cycle sidebar graph improvement (#4650)
anmolsinghbhatia May 31, 2024
a457798
[WEB-1424] chore: page and view logo implementation, and emoji/icon (…
sriramveeraghanta May 31, 2024
99048bf
refactor: drag handle component (#4663)
aaryan610 May 31, 2024
ec3151e
refactor: checkbox ui component (#4665)
aaryan610 May 31, 2024
3af2219
[WEB-1325] chore: refactor inbox issue store to avoid data loss. (#4640)
prateekshourya29 May 31, 2024
217ed6c
chore: priority dropdown accepts undefined (#4666)
aaryan610 May 31, 2024
a2e6596
chore: added buttonClassName prop to label dropdown (#4671)
aaryan610 May 31, 2024
f807405
chore: created new constants for marketing website page links (#4670)
aaryan610 May 31, 2024
2127368
chore: added a prop to render default state conditionally (#4669)
aaryan610 May 31, 2024
87f1653
[WEB-1501] dev: multiple select core components (#4667)
aaryan610 May 31, 2024
a80b395
chore: created a new constant for archivable state groups (#4668)
aaryan610 May 31, 2024
463b6b1
chore: added primary variant to the alert modal (#4664)
aaryan610 May 31, 2024
48d07ba
[WEB-1436] chore: pages improvement. (#4657)
prateekshourya29 May 31, 2024
fb07b95
[WEB-1440] chore: update cycle empty state to use project level acces…
prateekshourya29 May 31, 2024
630cd23
fix: checkbox ui component (#4675)
anmolsinghbhatia May 31, 2024
55528f2
fix: ai buttons overlapping issue (#4621)
aaryan610 May 31, 2024
83d15b8
[WEB - 1500] chore: add extra fields on instance and create changelog…
pablohashescobar May 31, 2024
49d92da
[WEB - 1505] chore: alter instance id field (#4676)
pablohashescobar May 31, 2024
7692313
feat: creating new app dir structure for web app
sriramveeraghanta May 30, 2024
8f3d68e
fix: moving few pages to app dir
sriramveeraghanta May 31, 2024
396c38a
feat: creating new app dir structure for web app
sriramveeraghanta May 30, 2024
8fb7e87
fix: moving few pages to app dir
sriramveeraghanta May 31, 2024
facf94d
fix: errors on app dir.
prateekshourya29 May 31, 2024
8a2e3e0
chore: remove pages routes.
prateekshourya29 May 31, 2024
6f56020
chore: add sign-in/ sign-up, invitations, onboarding pages.
prateekshourya29 May 31, 2024
b5ffb84
fix: instance serializer
sriramveeraghanta May 31, 2024
c6e5c16
fix: instance register script (#4681)
pablohashescobar Jun 3, 2024
8f35629
[WEB-1492] fix: resolved issue creation error in layouts while group_…
gurusainath Jun 3, 2024
8fe229a
fix: inbox issue store update logic. (#4683)
prateekshourya29 Jun 3, 2024
679cc95
chore: update package version
sriramveeraghanta Jun 3, 2024
9f6e947
[WEB-1184] feat: issue bulk operations (#4674)
aaryan610 Jun 4, 2024
9b392eb
style: fix overlapping of response container in AI popover. (#4684)
prateekshourya29 Jun 4, 2024
9ce0c90
[WEB-1498] style: fix comments reaction alignment. (#4686)
prateekshourya29 Jun 4, 2024
f0a0791
[WEB-1503] chore: add `autofocus` to name field in inline create/ upd…
prateekshourya29 Jun 4, 2024
c9fdf45
[WEB-1312] fix: trim file name before uploading (#4661)
Palanikannan1437 Jun 4, 2024
42b1a1a
[WEB-1481] fix: multiple API calls in inbox issues on closed issues t…
prateekshourya29 Jun 4, 2024
c0bd74e
feat: Add components required for estimates (#4690)
SatishGandham Jun 4, 2024
50710e4
[WEB-1521] chore: add configuration to enable/disable sign-ups. (#4697)
prateekshourya29 Jun 4, 2024
e02feb3
fix: regenerating lock file
sriramveeraghanta Jun 4, 2024
df6dd98
fix: docker image build errors
sriramveeraghanta Jun 4, 2024
0c9e793
fix: remove `setupInterceptors` to avoid circular dependency.
prateekshourya29 Jun 5, 2024
8935b01
chore: migrate all `accounts` related routes.
prateekshourya29 Jun 5, 2024
550dd41
chore: migrate all `profiles` related routes.
prateekshourya29 Jun 5, 2024
7503274
chore: workspace invitation and onboarding migration / fixes.
prateekshourya29 Jun 5, 2024
089d9a8
chore: installation provider migrations.
prateekshourya29 Jun 5, 2024
d9cfc08
regression: focus changing issue with the peek overview editor (#4700)
Palanikannan1437 Jun 5, 2024
07c338d
[WEB-1459] chore: save users all / favorite project list collapse sta…
prateekshourya29 Jun 5, 2024
c94703f
[WEB-1501] chore: update selected entity details on entities list cha…
aaryan610 Jun 5, 2024
abad10b
[WEB-1517] chore: remove drag handle from list drag block (#4698)
rahulramesha Jun 5, 2024
3ce2e19
fix: email validation (#4707)
pablohashescobar Jun 5, 2024
63f9c01
fix: cache invalidation on new members invite (#4699)
pablohashescobar Jun 5, 2024
cc0baf3
fix: build test pull request running on non draft PRs (#4708)
henit-chobisa Jun 5, 2024
1d130b2
fix: cache invalidation on new members invite (#4699)
pablohashescobar Jun 5, 2024
83f97dc
fix: add version max length (#4713)
pablohashescobar Jun 5, 2024
2eefee7
chore: migrations for `routing` hooks.
prateekshourya29 Jun 6, 2024
30c863d
[WEB-1533] chore: fix alignment issues in List and Spreadsheet view (…
rahulramesha Jun 6, 2024
2d83c48
chore: migration for workspace dashboard/ views/ analytics/ settings …
prateekshourya29 Jun 7, 2024
8d129ca
chore: handle undefined identifier case
aaryan610 Jun 6, 2024
a63ddb6
fix: Overflowing loader in issue edit modal (#4720)
gurusainath Jun 6, 2024
c175312
[WEB-1529] chore: workspace sidebar updates. (#4710)
prateekshourya29 Jun 7, 2024
284b4a7
fix: temporary fix exiting lines with slashes (#4725)
Palanikannan1437 Jun 7, 2024
5bf10e9
[WEB-1537] fix: inline code block size fixed for headers, etc (#4709)
Palanikannan1437 Jun 7, 2024
0a5748b
[WEB-1526] feat: add auto merge behaviour to task lists and fix infin…
Palanikannan1437 Jun 7, 2024
96cee7b
chore: migration for profile activity along with headers refactor.
prateekshourya29 Jun 7, 2024
4643ad3
[WEB-1201] dev: dropdowns (#4721)
anmolsinghbhatia Jun 7, 2024
d556ada
chore: added disabled prop to multiple select components (#4724)
aaryan610 Jun 7, 2024
f0e1c58
fix: don't add as a sub-issue if parent has been removed (#4731)
aaryan610 Jun 7, 2024
cce7bf2
fix: member list item custom menu placement (#4729)
anmolsinghbhatia Jun 7, 2024
25bcc53
[WEB-1535] chore: project logo picker improvement (#4718)
anmolsinghbhatia Jun 7, 2024
7708f2b
fix: resolved border flicker on issue title (#4727)
anmolsinghbhatia Jun 7, 2024
5827a3c
chore: profile activity empty state added (#4732)
anmolsinghbhatia Jun 7, 2024
8ae1c80
[WEB-1481] fix: inbox issue list update after changing issue status. …
prateekshourya29 Jun 7, 2024
8935aac
style: fix ux copy style on project feature preview page. (#4734)
prateekshourya29 Jun 7, 2024
c979456
chore: remove clear seleciton logic on escape key press (#4735)
aaryan610 Jun 7, 2024
36cb36a
chore: migrations for projects and project issues.
prateekshourya29 Jun 7, 2024
0fa703a
chore: issue and properties filter dropdown improvement (#4733)
anmolsinghbhatia Jun 7, 2024
be75f1a
save all filters and properties for views (#4728)
rahulramesha Jun 7, 2024
f84b600
chore: migrations for issue details route.
prateekshourya29 Jun 7, 2024
4238fce
chore: migration for cycle routes.
prateekshourya29 Jun 7, 2024
7d043bf
chore: migration for module routes.
prateekshourya29 Jun 7, 2024
f405d41
chore: migrations for project views routes.
prateekshourya29 Jun 7, 2024
c8f4ce1
chore: migrations for project pages routes.
prateekshourya29 Jun 7, 2024
c3cae8c
chore: migration for project inbox routes.
prateekshourya29 Jun 7, 2024
7587911
chore: migration for project settings routes.
prateekshourya29 Jun 7, 2024
edbd463
chore: migrations for draft issues routes.
prateekshourya29 Jun 7, 2024
e466947
chore: migrations for project archives routes.
prateekshourya29 Jun 7, 2024
499ad14
chore: remove unused headers.
prateekshourya29 Jun 7, 2024
04651e9
temp: comment out auth constant and use-reload-confirmation code to a…
prateekshourya29 Jun 7, 2024
297b98b
fix: merge conflicts resovled
sriramveeraghanta Jun 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
533 changes: 267 additions & 266 deletions packages/constants/src/auth.ts

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/tailwind-config-custom/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = {
content: {
relative: true,
files: [
"./app/**/*.{js,ts,jsx,tsx}",
"./components/**/*.tsx",
"./constants/**/*.{js,ts,jsx,tsx}",
"./layouts/**/*.tsx",
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/src/sortable/sortable.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { Meta, StoryObj } from "@storybook/react";
import React from "react";
import { Draggable } from "./draggable";
import { Sortable } from "./sortable";

const meta: Meta<typeof Sortable> = {
Expand All @@ -12,7 +13,7 @@ type Story = StoryObj<typeof Sortable>;

const data = [
{ id: "1", name: "John Doe" },
{ id: "2", name: "Satish" },
{ id: "2", name: "Jane Doe 2" },
{ id: "3", name: "Alice" },
{ id: "4", name: "Bob" },
{ id: "5", name: "Charlie" },
Expand Down
42 changes: 42 additions & 0 deletions space/types/project.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import { TLogoProps } from "@plane/types";

export type TWorkspaceDetails = {
name: string;
slug: string;
id: string;
};

export type TViewDetails = {
list: boolean;
gantt: boolean;
kanban: boolean;
calendar: boolean;
spreadsheet: boolean;
};

export type TProjectDetails = {
id: string;
identifier: string;
name: string;
cover_image: string | undefined;
logo_props: TLogoProps;
description: string;
};

export type TProjectSettings = {
id: string;
anchor: string;
comments: boolean;
reactions: boolean;
votes: boolean;
inbox: unknown;
workspace: string;
workspace_detail: TWorkspaceDetails;
project: string;
project_details: TProjectDetails;
views: TViewDetails;
created_by: string;
updated_by: string;
created_at: string;
updated_at: string;
};
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
"use client";

import { observer } from "mobx-react";
// ui
import { Crown } from "lucide-react";
import { Breadcrumbs, ContrastIcon } from "@plane/ui";
import { BreadcrumbLink } from "@/components/common";
// icons

export const WorkspaceActiveCycleHeader = observer(() => (
const WorkspaceActiveCycleHeader = observer(() => (
<div className="relative z-10 flex h-[3.75rem] w-full flex-shrink-0 flex-row items-center justify-between gap-x-2 gap-y-4 bg-custom-sidebar-background-100 p-4">
<div className="flex w-full flex-grow items-center gap-2 overflow-ellipsis whitespace-nowrap">
<div className="flex items-center gap-2">
Expand All @@ -25,3 +27,5 @@ export const WorkspaceActiveCycleHeader = observer(() => (
</div>
</div>
));

export default WorkspaceActiveCycleHeader;
9 changes: 9 additions & 0 deletions web/app/[workspaceSlug]/@header/active-cycles/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"use client";

// components
import AppHeaderWrapper from "../../app-header-wrapper";
import WorkspaceActiveCycleHeader from "./header";

const WorkspaceActiveCycleHeaderPage = () => <AppHeaderWrapper header={<WorkspaceActiveCycleHeader />} />;

export default WorkspaceActiveCycleHeaderPage;
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
"use client";

import { useEffect } from "react";
import { observer } from "mobx-react";
import { useRouter } from "next/router";
import { useSearchParams } from "next/navigation";
// icons
import { BarChart2, PanelRight } from "lucide-react";
// ui
import { Breadcrumbs } from "@plane/ui";
// components
import { BreadcrumbLink } from "@/components/common";
// helpers
import { cn } from "@/helpers/common.helper";
// hooks
import { useAppTheme } from "@/hooks/store";

export const WorkspaceAnalyticsHeader = observer(() => {
const router = useRouter();
const { analytics_tab } = router.query;
const WorkspaceAnalyticsHeader = observer(() => {
const searchParams = useSearchParams();
const analytics_tab = searchParams.get("analytics_tab");
// store hooks
const { workspaceAnalyticsSidebarCollapsed, toggleWorkspaceAnalyticsSidebar } = useAppTheme();

Expand Down Expand Up @@ -66,3 +71,5 @@ export const WorkspaceAnalyticsHeader = observer(() => {
</>
);
});

export default WorkspaceAnalyticsHeader;
9 changes: 9 additions & 0 deletions web/app/[workspaceSlug]/@header/analytics/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"use client";

// components
import AppHeaderWrapper from "../../app-header-wrapper";
import WorkspaceAnalyticsHeader from "./header";

const WorkspaceAnalyticsHeaderPage = () => <AppHeaderWrapper header={<WorkspaceAnalyticsHeader />} />;

export default WorkspaceAnalyticsHeaderPage;
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
"use client";

import Image from "next/image";
import { useTheme } from "next-themes";
import { Home, Zap } from "lucide-react";
// images
import githubBlackImage from "/public/logos/github-black.png";
import githubWhiteImage from "/public/logos/github-white.png";
// hooks
// components
// ui
import { Breadcrumbs } from "@plane/ui";
// components
import { BreadcrumbLink } from "@/components/common";
// constants
import { CHANGELOG_REDIRECTED, GITHUB_REDIRECTED } from "@/constants/event-tracker";
// hooks
import { useEventTracker } from "@/hooks/store";

export const WorkspaceDashboardHeader = () => {
const WorkspaceDashboardHeader = () => {
// hooks
const { captureEvent } = useEventTracker();
const { resolvedTheme } = useTheme();
Expand Down Expand Up @@ -69,3 +72,5 @@ export const WorkspaceDashboardHeader = () => {
</>
);
};

export default WorkspaceDashboardHeader;
9 changes: 9 additions & 0 deletions web/app/[workspaceSlug]/@header/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"use client";

// components
import AppHeaderWrapper from "../app-header-wrapper";
import WorkspaceDashboardHeader from "./header";

const WorkspaceDashboardHeaderPage = () => <AppHeaderWrapper header={<WorkspaceDashboardHeader />} />;

export default WorkspaceDashboardHeaderPage;
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"use client";

import AppHeaderWrapper from "@/app/[workspaceSlug]/app-header-wrapper";
import UserProfileHeader from "../header";

const ProfileActivityHeader = () => <AppHeaderWrapper header={<UserProfileHeader type="Activity" />} />;

export default ProfileActivityHeader;
12 changes: 12 additions & 0 deletions web/app/[workspaceSlug]/@header/profile/[userId]/assigned/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"use client";

// components
import AppHeaderWrapper from "@/app/[workspaceSlug]/app-header-wrapper";
import UserProfileHeader from "../header";
import ProfileIssuesMobileHeader from "../mobile-header";

const ProfileAssignedHeader = () => (
<AppHeaderWrapper header={<UserProfileHeader type="Assigned" />} mobileHeader={<ProfileIssuesMobileHeader />} />
);

export default ProfileAssignedHeader;
12 changes: 12 additions & 0 deletions web/app/[workspaceSlug]/@header/profile/[userId]/created/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"use client";

// components
import AppHeaderWrapper from "@/app/[workspaceSlug]/app-header-wrapper";
import UserProfileHeader from "../header";
import ProfileIssuesMobileHeader from "../mobile-header";

const ProfileCreatedHeader = () => (
<AppHeaderWrapper header={<UserProfileHeader type="Created" />} mobileHeader={<ProfileIssuesMobileHeader />} />
);

export default ProfileCreatedHeader;
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
"use client";

// ui
import { FC } from "react";
import { observer } from "mobx-react";
import Link from "next/link";
import { useRouter } from "next/router";
import { useParams } from "next/navigation";
import { ChevronDown, PanelRight } from "lucide-react";
import { Breadcrumbs, CustomMenu } from "@plane/ui";
import { BreadcrumbLink } from "@/components/common";
Expand All @@ -15,11 +17,10 @@ type TUserProfileHeader = {
type?: string | undefined;
};

export const UserProfileHeader: FC<TUserProfileHeader> = observer((props) => {
const UserProfileHeader: FC<TUserProfileHeader> = observer((props) => {
const { type = undefined } = props;
// router
const router = useRouter();
const { workspaceSlug, userId } = router.query;
const { workspaceSlug, userId } = useParams();
// store hooks
const { toggleProfileSidebar, profileSidebarCollapsed } = useAppTheme();
const {
Expand Down Expand Up @@ -89,3 +90,5 @@ export const UserProfileHeader: FC<TUserProfileHeader> = observer((props) => {
</div>
);
});

export default UserProfileHeader;
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"use client";

import { useCallback } from "react";
import { observer } from "mobx-react";
import { useRouter } from "next/router";
import { useParams } from "next/navigation";
// icons
import { ChevronDown } from "lucide-react";
// types
Expand All @@ -18,8 +20,7 @@ import { useIssues, useLabel } from "@/hooks/store";

const ProfileIssuesMobileHeader = observer(() => {
// router
const router = useRouter();
const { workspaceSlug, userId } = router.query;
const { workspaceSlug, userId } = useParams();
// store hook
const {
issuesFilter: { issueFilters, updateFilters },
Expand Down
8 changes: 8 additions & 0 deletions web/app/[workspaceSlug]/@header/profile/[userId]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"use client";

import AppHeaderWrapper from "@/app/[workspaceSlug]/app-header-wrapper";
import UserProfileHeader from "./header";

const ProfileOverviewHeader = () => <AppHeaderWrapper header={<UserProfileHeader type="Summary" />} />;

export default ProfileOverviewHeader;
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"use client";

// components
import AppHeaderWrapper from "@/app/[workspaceSlug]/app-header-wrapper";
import UserProfileHeader from "../header";
import ProfileIssuesMobileHeader from "../mobile-header";

const ProfileSubscribedHeader = () => (
<AppHeaderWrapper header={<UserProfileHeader type="Subscribed" />} mobileHeader={<ProfileIssuesMobileHeader />} />
);

export default ProfileSubscribedHeader;
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import DefaultProjectArchivesHeader from "../page";
export default DefaultProjectArchivesHeader;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { FC } from "react";
import { observer } from "mobx-react-lite";
import { useRouter } from "next/router";
import { useParams, usePathname, useRouter } from "next/navigation";
// ui
import { ArchiveIcon, Breadcrumbs, Tooltip } from "@plane/ui";
// components
Expand All @@ -12,11 +12,12 @@ import { EIssuesStoreType } from "@/constants/issue";
import { useIssues, useProject } from "@/hooks/store";
import { usePlatformOS } from "@/hooks/use-platform-os";

export const ProjectArchivesHeader: FC = observer(() => {
const ProjectArchivesHeader: FC = observer(() => {
// router
const router = useRouter();
const { workspaceSlug, projectId } = router.query;
const activeTab = router.pathname.split("/").pop();
const { workspaceSlug, projectId } = useParams();
const pathname = usePathname();
const activeTab = pathname.split("/").pop();
// store hooks
const {
issuesFilter: { issueFilters },
Expand Down Expand Up @@ -93,3 +94,5 @@ export const ProjectArchivesHeader: FC = observer(() => {
</div>
);
});

export default ProjectArchivesHeader;
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
import { FC } from "react";
import { observer } from "mobx-react";
import { useRouter } from "next/router";
import { useParams } from "next/navigation";
import useSWR from "swr";
// hooks
// ui
import { ArchiveIcon, Breadcrumbs, LayersIcon } from "@plane/ui";
// components
import { BreadcrumbLink, Logo } from "@/components/common";
// constants
import { ISSUE_DETAILS } from "@/constants/fetch-keys";
// hooks
import { useProject } from "@/hooks/store";
// components
// ui
// types
import { IssueArchiveService } from "@/services/issue";
// constants
// services
// helpers
// components
import { IssueArchiveService } from "@/services/issue";

const issueArchiveService = new IssueArchiveService();

export const ProjectArchivedIssueDetailsHeader: FC = observer(() => {
const ProjectArchivedIssueDetailsHeader: FC = observer(() => {
// router
const router = useRouter();
const { workspaceSlug, projectId, archivedIssueId } = router.query;
const { workspaceSlug, projectId, archivedIssueId } = useParams();
// store hooks
const { currentProjectDetails } = useProject();

Expand Down Expand Up @@ -96,3 +92,5 @@ export const ProjectArchivedIssueDetailsHeader: FC = observer(() => {
</div>
);
});

export default ProjectArchivedIssueDetailsHeader;
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"use client";

// components
import AppHeaderWrapper from "@/app/[workspaceSlug]/app-header-wrapper";
import ProjectArchivedIssueDetailsHeader from "./header";

const ProjectArchivedIssueDetailsHeaderPage = () => <AppHeaderWrapper header={<ProjectArchivedIssueDetailsHeader />} />;

export default ProjectArchivedIssueDetailsHeaderPage;
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"use client";

// components
import AppHeaderWrapper from "@/app/[workspaceSlug]/app-header-wrapper";
import ProjectArchivesHeader from "./header";

const ProjectArchivesHeaderPage = () => <AppHeaderWrapper header={<ProjectArchivesHeader />} />;

export default ProjectArchivesHeaderPage;
Loading
Loading