Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions apps/space/app/issues/[anchor]/client-layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
import { observer } from "mobx-react";
import useSWR from "swr";
// components
import { LogoSpinner, PoweredBy } from "@/components/common";
import { IssuesNavbarRoot } from "@/components/issues";
import { LogoSpinner } from "@/components/common/logo-spinner";
import { PoweredBy } from "@/components/common/powered-by";
Comment on lines +6 to +7
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Replace remaining barrel imports with file-level modules

Great move on de-barreling most imports. Two spots still import from folder-level barrels. To fully meet the PR objective and improve tree-shaking, import from the concrete modules.

-import { IssuesNavbarRoot } from "@/components/issues/navbar";
+import { IssuesNavbarRoot } from "@/components/issues/navbar/root";
...
-import { usePublish, usePublishList } from "@/hooks/store/publish";
+import { usePublish } from "@/hooks/store/publish/use-publish";
+import { usePublishList } from "@/hooks/store/publish/use-publish-list";

Check repo-wide for remaining barrels for these modules and confirm granular modules exist:

Also applies to: 9-13


🏁 Script executed:

#!/bin/bash
# 1) Find residual imports from "@/components/issues/navbar" (likely index barrel)
rg -n $'from\\s+[\'"]@/components/issues/navbar[\'"]' -S || true

# 2) Find residual imports from "@/hooks/store/publish" (likely index barrel)
rg -n $'from\\s+[\'"]@/hooks/store/publish[\'"]' -S || true

# 3) Ensure the granular files exist
fd -a --hidden --follow --strip-cwd-prefix $'apps/space/core/components/issues/navbar/root.tsx\napps/space/core/hooks/store/publish/use-publish.ts\napps/space/core/hooks/store/publish/use-publish-list.ts' \
  --exec bash -lc 'for f; do [[ -f "$f" ]] && echo "FOUND $f" || echo "MISSING $f"; done' _

Length of output: 2180


#!/usr/bin/env bash
# Verify existence of granular module files
for file in \
  apps/space/core/components/issues/navbar/root.tsx \
  apps/space/core/hooks/store/publish/use-publish.ts \
  apps/space/core/hooks/store/publish/use-publish-list.ts; do
  if [[ -f "$file" ]]; then
    echo "FOUND $file"
  else
    echo "MISSING $file"
  fi
done

#!/usr/bin/env bash
# Verify that the granular module files exist
for file in \
  apps/space/core/components/issues/navbar/root.tsx \
  apps/space/core/hooks/store/publish/use-publish.ts \
  apps/space/core/hooks/store/publish/use-publish-list.ts; do
  if [[ -f "$file" ]]; then
    echo "FOUND $file"
  else
    echo "MISSING $file"
  fi
done

#!/usr/bin/env bash
# Verify that the concrete modules exist for replacing barrel imports
FILES=(
  "apps/space/core/components/issues/navbar/root.tsx"
  "apps/space/core/hooks/store/publish/use-publish.ts"
  "apps/space/core/hooks/store/publish/use-publish-list.ts"
)

for f in "${FILES[@]}"; do
  if [[ -f "$f" ]]; then
    echo "FOUND: $f"
  else
    echo "MISSING: $f"
  fi
done

#!/usr/bin/env bash
# Locate granular module files to confirm replacement targets
fd 'components/issues/navbar/root.tsx' -t f
fd 'hooks/store/publish/use-publish.ts' -t f
fd 'hooks/store/publish/use-publish-list.ts' -t f

#!/usr/bin/env bash
# Check that the target module files exist for replacing barrel imports
FILES=(
  "apps/space/core/components/issues/navbar/root.tsx"
  "apps/space/core/hooks/store/publish/use-publish.ts"
  "apps/space/core/hooks/store/publish/use-publish-list.ts"
)
for f in "${FILES[@]}"; do
  if [[ -f "$f" ]]; then
    echo "FOUND: $f"
  else
    echo "MISSING: $f"
  fi
done

Replace all remaining barrel imports for issues/navbar and hooks/store/publish

We still have multiple occurrences of barrel imports that need to switch to the concrete modules to complete the de-barreling effort and improve tree-shaking:

• apps/space/app/issues/[anchor]/client-layout.tsx

  • import { IssuesNavbarRoot } from "@/components/issues/navbar";
  • import { usePublish, usePublishList } from "@/hooks/store/publish";

• apps/space/app/views/[anchor]/page.tsx

  • import { usePublish } from "@/hooks/store/publish";

• apps/space/app/issues/[anchor]/page.tsx

  • import { usePublish } from "@/hooks/store/publish";

• apps/space/app/views/[anchor]/layout.tsx

  • import { usePublish, usePublishList } from "@/hooks/store/publish";

(And similarly in core components under apps/space/core/components/issues/...)

Please update each to:

-import { IssuesNavbarRoot } from "@/components/issues/navbar";
+import { IssuesNavbarRoot } from "@/components/issues/navbar/root";

-import { usePublish, usePublishList } from "@/hooks/store/publish";
+import { usePublish } from "@/hooks/store/publish/use-publish";
+import { usePublishList } from "@/hooks/store/publish/use-publish-list";

Before applying, verify these files exist in the apps/space/core/… directory:

  • components/issues/navbar/root.tsx
  • hooks/store/publish/use-publish.ts
  • hooks/store/publish/use-publish-list.ts

This will complete the PR objective and ensure all barrel imports are replaced.

Committable suggestion skipped: line range outside the PR's diff.

🤖 Prompt for AI Agents
In apps/space/app/issues/[anchor]/client-layout.tsx around lines 6-7, replace
the barrel imports with concrete module imports: import IssuesNavbarRoot from
"apps/space/core/components/issues/navbar/root"; import usePublish from
"apps/space/core/hooks/store/publish/use-publish"; import usePublishList from
"apps/space/core/hooks/store/publish/use-publish-list"; before changing, verify
the files exist at apps/space/core/components/issues/navbar/root.tsx and
apps/space/core/hooks/store/publish/use-publish.ts and use-publish-list.ts, then
update the other listed files similarly (apps/space/app/views/[anchor]/page.tsx,
apps/space/app/issues/[anchor]/page.tsx,
apps/space/app/views/[anchor]/layout.tsx) to import the specific hooks from
those concrete paths.

import { SomethingWentWrongError } from "@/components/issues/issue-layouts/error";
import { IssuesNavbarRoot } from "@/components/issues/navbar";
// hooks
import { useIssueFilter, usePublish, usePublishList } from "@/hooks/store";
import { usePublish, usePublishList } from "@/hooks/store/publish";
import { useIssueFilter } from "@/hooks/store/use-issue-filter";

type Props = {
children: React.ReactNode;
Expand Down
6 changes: 4 additions & 2 deletions apps/space/app/issues/[anchor]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ import { observer } from "mobx-react";
import { useSearchParams } from "next/navigation";
import useSWR from "swr";
// components
import { IssuesLayoutsRoot } from "@/components/issues";
import { IssuesLayoutsRoot } from "@/components/issues/issue-layouts";
// hooks
import { usePublish, useLabel, useStates } from "@/hooks/store";
import { usePublish } from "@/hooks/store/publish";
import { useLabel } from "@/hooks/store/use-label";
import { useStates } from "@/hooks/store/use-state";
Comment on lines +7 to +11
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Verify named export path and consider importing directly from root to avoid the folder barrel.

If the goal is to eliminate barrels, import the component directly from its module file.

Apply this minimal change if root.tsx exports IssuesLayoutsRoot:

-import { IssuesLayoutsRoot } from "@/components/issues/issue-layouts";
+import { IssuesLayoutsRoot } from "@/components/issues/issue-layouts/root";

Also validate that IssuesLayoutsRoot is a named export in the module:


🏁 Script executed:

#!/bin/bash
# Check that IssuesLayoutsRoot is exported (named or default)
rg -n "export .*IssuesLayoutsRoot|export \\{[^}]*IssuesLayoutsRoot" -A 2

Length of output: 381


🏁 Script executed:

#!/bin/bash
# List all files directly under the issue-layouts directory
find apps/space/core/components/issues/issue-layouts -maxdepth 1 -type f

Length of output: 453


🏁 Script executed:

#!/bin/bash
# Check if IssuesLayoutsRoot is re-exported in the barrel file
rg -n "IssuesLayoutsRoot" -A 5 apps/space/core/components/issues/issue-layouts/index.ts

Length of output: 87


🏁 Script executed:

#!/bin/bash
# Display the contents of the barrel file to verify exports
sed -n '1,200p' apps/space/core/components/issues/issue-layouts/index.ts

Length of output: 96


Import IssuesLayoutsRoot directly from its module
Since apps/space/core/components/issues/issue-layouts/index.ts merely re-exports from root.tsx, you can avoid the folder barrel by importing the component straight from its source file:

• In apps/space/app/issues/[anchor]/page.tsx, update the import:

-import { IssuesLayoutsRoot } from "@/components/issues/issue-layouts";
+import { IssuesLayoutsRoot } from "@/components/issues/issue-layouts/root";

This makes the dependency explicit and removes the indirection through the barrel.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
import { IssuesLayoutsRoot } from "@/components/issues/issue-layouts";
// hooks
import { usePublish, useLabel, useStates } from "@/hooks/store";
import { usePublish } from "@/hooks/store/publish";
import { useLabel } from "@/hooks/store/use-label";
import { useStates } from "@/hooks/store/use-state";
import { IssuesLayoutsRoot } from "@/components/issues/issue-layouts/root";
// hooks
import { usePublish } from "@/hooks/store/publish";
import { useLabel } from "@/hooks/store/use-label";
import { useStates } from "@/hooks/store/use-state";
🤖 Prompt for AI Agents
In apps/space/app/issues/[anchor]/page.tsx around lines 7 to 11, the file
imports IssuesLayoutsRoot from the folder barrel
"@/components/issues/issue-layouts"; change that import to reference the actual
source file by importing directly from "@/components/issues/issue-layouts/root"
(keep the named import IssuesLayoutsRoot) so the module depends on the concrete
implementation rather than the re-exporting index barrel.


type Props = {
params: {
Expand Down
6 changes: 3 additions & 3 deletions apps/space/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

import { observer } from "mobx-react";
// components
import { UserLoggedIn } from "@/components/account";
import { LogoSpinner } from "@/components/common";
import { UserLoggedIn } from "@/components/account/user-logged-in";
import { LogoSpinner } from "@/components/common/logo-spinner";
import { AuthView } from "@/components/views";
// hooks
import { useUser } from "@/hooks/store";
import { useUser } from "@/hooks/store/use-user";

const HomePage = observer(() => {
const { data: currentUser, isAuthenticated, isInitializing } = useUser();
Expand Down
17 changes: 10 additions & 7 deletions apps/space/app/provider.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"use client";

import { FC, ReactNode } from "react";
import { ThemeProvider } from "next-themes";
// components
import { TranslationProvider } from "@plane/i18n";
import { InstanceProvider } from "@/lib/instance-provider";
Expand All @@ -15,12 +16,14 @@ export const AppProvider: FC<IAppProvider> = (props) => {
const { children } = props;

return (
<StoreProvider>
<TranslationProvider>
<ToastProvider>
<InstanceProvider>{children}</InstanceProvider>
</ToastProvider>
</TranslationProvider>
</StoreProvider>
<ThemeProvider themes={["light", "dark"]} defaultTheme="system" enableSystem>
<StoreProvider>
<TranslationProvider>
<ToastProvider>
<InstanceProvider>{children}</InstanceProvider>
</ToastProvider>
</TranslationProvider>
</StoreProvider>
</ThemeProvider>
);
};
9 changes: 5 additions & 4 deletions apps/space/app/views/[anchor]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
import { observer } from "mobx-react";
import useSWR from "swr";
// components
import { LogoSpinner, PoweredBy } from "@/components/common";
import { LogoSpinner } from "@/components/common/logo-spinner";
import { PoweredBy } from "@/components/common/powered-by";
import { SomethingWentWrongError } from "@/components/issues/issue-layouts/error";
// hooks
import { usePublish, usePublishList } from "@/hooks/store";
import { usePublish, usePublishList } from "@/hooks/store/publish";
// Plane web
import { ViewNavbarRoot } from "@/plane-web/components/navbar";
import { useView } from "@/plane-web/hooks/store";
Expand All @@ -18,7 +19,7 @@ type Props = {
};
};

const IssuesLayout = observer((props: Props) => {
const ViewsLayout = observer((props: Props) => {
const { children, params } = props;
// params
const { anchor } = params;
Expand Down Expand Up @@ -61,4 +62,4 @@ const IssuesLayout = observer((props: Props) => {
);
});

export default IssuesLayout;
export default ViewsLayout;
8 changes: 4 additions & 4 deletions apps/space/app/views/[anchor]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import { observer } from "mobx-react";
import { useSearchParams } from "next/navigation";
// components
import { PoweredBy } from "@/components/common";
import { PoweredBy } from "@/components/common/powered-by";
// hooks
import { usePublish } from "@/hooks/store";
import { usePublish } from "@/hooks/store/publish";
// plane-web
import { ViewLayoutsRoot } from "@/plane-web/components/issue-layouts/root";

Expand All @@ -15,7 +15,7 @@ type Props = {
};
};

const IssuesPage = observer((props: Props) => {
const ViewsPage = observer((props: Props) => {
const { params } = props;
const { anchor } = params;
// params
Expand All @@ -34,4 +34,4 @@ const IssuesPage = observer((props: Props) => {
);
});

export default IssuesPage;
export default ViewsPage;
5 changes: 2 additions & 3 deletions apps/space/ce/components/issue-layouts/root.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { PageNotFound } from "@/components/ui/not-found";
import { PublishStore } from "@/store/publish/publish.store";
import type { PublishStore } from "@/store/publish/publish.store";

type Props = {
peekId: string | undefined;
publishSettings: PublishStore;
};

// eslint-disable-next-line @typescript-eslint/no-unused-vars
export const ViewLayoutsRoot = (props: Props) => <PageNotFound />;
export const ViewLayoutsRoot = (_props: Props) => <PageNotFound />;
2 changes: 1 addition & 1 deletion apps/space/ce/components/navbar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PublishStore } from "@/store/publish/publish.store";
import type { PublishStore } from "@/store/publish/publish.store";

type Props = {
publishSettings: PublishStore;
Expand Down
17 changes: 8 additions & 9 deletions apps/space/core/components/account/auth-forms/auth-root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@ import { SitesAuthService } from "@plane/services";
import { IEmailCheckData } from "@plane/types";
import { OAuthOptions } from "@plane/ui";
// components
import {
AuthHeader,
AuthBanner,
AuthEmailForm,
AuthUniqueCodeForm,
AuthPasswordForm,
TermsAndConditions,
} from "@/components/account";
// helpers
import {
EAuthenticationErrorCodes,
Expand All @@ -27,14 +19,21 @@ import {
authErrorHandler,
} from "@/helpers/authentication.helper";
// hooks
import { useInstance } from "@/hooks/store";
import { useInstance } from "@/hooks/store/use-instance";
// types
import { EAuthModes, EAuthSteps } from "@/types/auth";
// assets
import GithubLightLogo from "/public/logos/github-black.png";
import GithubDarkLogo from "/public/logos/github-dark.svg";
import GitlabLogo from "/public/logos/gitlab-logo.svg";
import GoogleLogo from "/public/logos/google-logo.svg";
// local imports
import { TermsAndConditions } from "../terms-and-conditions";
import { AuthBanner } from "./auth-banner";
import { AuthHeader } from "./auth-header";
import { AuthEmailForm } from "./email";
import { AuthPasswordForm } from "./password";
import { AuthUniqueCodeForm } from "./unique-code";

const authService = new SitesAuthService();

Expand Down
7 changes: 0 additions & 7 deletions apps/space/core/components/account/auth-forms/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
export * from "./auth-root";

export * from "./auth-header";
export * from "./auth-banner";

export * from "./email";
export * from "./password";
export * from "./unique-code";
3 changes: 0 additions & 3 deletions apps/space/core/components/account/index.ts

This file was deleted.

6 changes: 3 additions & 3 deletions apps/space/core/components/account/user-logged-in.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { observer } from "mobx-react";
import Image from "next/image";
import { PlaneLockup } from "@plane/ui";
// components
import { PoweredBy } from "@/components/common";
import { UserAvatar } from "@/components/issues";
import { PoweredBy } from "@/components/common/powered-by";
import { UserAvatar } from "@/components/issues/navbar/user-avatar";
// hooks
import { useUser } from "@/hooks/store";
import { useUser } from "@/hooks/store/use-user";
// assets
import UserLoggedInImage from "@/public/user-logged-in.svg";

Expand Down
3 changes: 0 additions & 3 deletions apps/space/core/components/common/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion apps/space/core/components/editor/embeds/index.ts

This file was deleted.

3 changes: 2 additions & 1 deletion apps/space/core/components/editor/embeds/mentions/user.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { observer } from "mobx-react";
// helpers
import { cn } from "@plane/utils";
// hooks
import { useMember, useUser } from "@/hooks/store";
import { useMember } from "@/hooks/store/use-member";
import { useUser } from "@/hooks/store/use-user";

type Props = {
id: string;
Expand Down
4 changes: 0 additions & 4 deletions apps/space/core/components/editor/index.ts

This file was deleted.

5 changes: 3 additions & 2 deletions apps/space/core/components/editor/lite-text-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ import React from "react";
import { type EditorRefApi, type ILiteTextEditorProps, LiteTextEditorWithRef, type TFileHandler } from "@plane/editor";
import type { MakeOptional } from "@plane/types";
import { cn } from "@plane/utils";
// components
import { EditorMentionsRoot, IssueCommentToolbar } from "@/components/editor";
// helpers
import { getEditorFileHandlers } from "@/helpers/editor.helper";
import { isCommentEmpty } from "@/helpers/string.helper";
import { useEditorFlagging } from "@/plane-web/hooks/use-editor-flagging";
// local imports
import { EditorMentionsRoot } from "./embeds/mentions";
import { IssueCommentToolbar } from "./toolbar";
Comment on lines +10 to +12
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Imports correctly de-barreled; verify local paths resolve

Switching to local module imports for mentions and toolbar aligns with the PR goal and avoids barrel side effects.

Run this to ensure there are no remaining editor barrel imports and that these local modules exist:


🏁 Script executed:

#!/bin/bash
# 1) Check for residual editor barrel imports
rg -n $'from\\s+[\'"]@/components/editor[\'"]|from\\s+[\'"]@/components/editor/' -S || true

# 2) Confirm the local files referenced here exist
fd -a --hidden --follow --strip-cwd-prefix $'apps/space/core/components/editor/embeds/mentions.tsx\napps/space/core/components/editor/toolbar.tsx' \
  --exec bash -lc 'for f; do [[ -f "$f" ]] && echo "FOUND $f" || echo "MISSING $f"; done' _

Length of output: 3204


🏁 Script executed:

#!/bin/bash
# 1) Check for any remaining @/components/editor barrel imports within apps/space
rg -n "from\s+['\"]@/components/editor(/|['\"])" --glob "apps/space/**/*" || true

# 2) Confirm the local modules referenced by lite-text-editor.tsx actually exist
for f in \
  apps/space/core/components/editor/embeds/mentions.tsx \
  apps/space/core/components/editor/toolbar.tsx; do
  if [[ -f "$f" ]]; then
    echo "FOUND $f"
  else
    echo "MISSING $f"
  fi
done

Length of output: 1108


Missing local module & residual barrel imports detected

The import in apps/space/core/components/editor/lite-text-editor.tsx:

import { EditorMentionsRoot } from "./embeds/mentions";

points to apps/space/core/components/editor/embeds/mentions.tsx, which does not exist. Please either:

  • Add the missing embeds/mentions.tsx module
  • Or correct the import path to the actual file location

Additionally, there are still editor imports using the @/components/editor alias under apps/space:

  • apps/space/core/components/issues/peek-overview/comment/add-comment.tsx
  • apps/space/core/components/issues/peek-overview/comment/comment-detail-card.tsx
  • apps/space/core/components/issues/peek-overview/issue-details.tsx

Please update these to match the new file structure or confirm they resolve correctly.

🤖 Prompt for AI Agents
In apps/space/core/components/editor/lite-text-editor.tsx around lines 10-12 the
import "import { EditorMentionsRoot } from \"./embeds/mentions\";" points to a
non-existent file; either create
apps/space/core/components/editor/embeds/mentions.tsx exporting
EditorMentionsRoot or change the import to the correct relative path where
EditorMentionsRoot actually lives. Also audit and update the remaining
barrel/alias imports under apps/space that still use "@/components/editor" in
these files:
apps/space/core/components/issues/peek-overview/comment/add-comment.tsx,
apps/space/core/components/issues/peek-overview/comment/comment-detail-card.tsx,
and apps/space/core/components/issues/peek-overview/issue-details.tsx — replace
the alias with the new relative paths or adjust the barrel exports so they
resolve correctly.


type LiteTextEditorWrapperProps = MakeOptional<
Omit<ILiteTextEditorProps, "fileHandler" | "mentionHandler">,
Expand Down
12 changes: 6 additions & 6 deletions apps/space/core/components/editor/rich-text-editor.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import React, { forwardRef } from "react";
// plane imports
import { useEditorFlagging } from "ce/hooks/use-editor-flagging";
import { EditorRefApi, IRichTextEditorProps, RichTextEditorWithRef, TFileHandler } from "@plane/editor";
import { MakeOptional } from "@plane/types";
// components
import { EditorMentionsRoot } from "@/components/editor";
import { type EditorRefApi, type IRichTextEditorProps, RichTextEditorWithRef, type TFileHandler } from "@plane/editor";
import type { MakeOptional } from "@plane/types";
// helpers
import { getEditorFileHandlers } from "@/helpers/editor.helper";
// store hooks
import { useMember } from "@/hooks/store";
// hooks
import { useMember } from "@/hooks/store/use-member";
// local imports
import { EditorMentionsRoot } from "./embeds/mentions";

type RichTextEditorWrapperProps = MakeOptional<
Omit<IRichTextEditorProps, "editable" | "fileHandler" | "mentionHandler">,
Expand Down
2 changes: 1 addition & 1 deletion apps/space/core/components/editor/toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import React, { useEffect, useState, useCallback } from "react";
// plane imports
import { TOOLBAR_ITEMS, ToolbarMenuItem, EditorRefApi } from "@plane/editor";
import { TOOLBAR_ITEMS, type ToolbarMenuItem, type EditorRefApi } from "@plane/editor";
import { Button, Tooltip } from "@plane/ui";
import { cn } from "@plane/utils";

Expand Down
1 change: 0 additions & 1 deletion apps/space/core/components/instance/index.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import cloneDeep from "lodash/cloneDeep";
import { observer } from "mobx-react";
import { useRouter } from "next/navigation";
// hooks
import { useIssueFilter } from "@/hooks/store";
import { useIssueFilter } from "@/hooks/store/use-issue-filter";
// store
import type { TIssueLayout, TIssueQueryFilters } from "@/types/issue";
// components
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { X } from "lucide-react";
import { EIconSize } from "@plane/constants";
import { StateGroupIcon } from "@plane/ui";
// hooks
import { useStates } from "@/hooks/store";
import { useStates } from "@/hooks/store/use-state";

type Props = {
handleRemove: (val: string) => void;
Expand Down
3 changes: 0 additions & 3 deletions apps/space/core/components/issues/filters/helpers/index.ts

This file was deleted.

10 changes: 0 additions & 10 deletions apps/space/core/components/issues/filters/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
// filters
export * from "./root";
export * from "./selection";

// properties
export * from "./state";
export * from "./priority";
export * from "./labels";

// helpers
export * from "./helpers";
8 changes: 5 additions & 3 deletions apps/space/core/components/issues/filters/labels.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
"use client";

import React, { useState } from "react";
// plane imports
import { Loader } from "@plane/ui";
// components
import { FilterHeader, FilterOption } from "@/components/issues/filters/helpers";
// types
import { IIssueLabel } from "@/types/issue";
import type { IIssueLabel } from "@/types/issue";
// local imports
import { FilterHeader } from "./helpers/filter-header";
import { FilterOption } from "./helpers/filter-option";

const LabelIcons = ({ color }: { color: string }) => (
<span className="h-2.5 w-2.5 rounded-full" style={{ backgroundColor: color }} />
Expand Down
8 changes: 4 additions & 4 deletions apps/space/core/components/issues/filters/priority.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

import React, { useState } from "react";
import { observer } from "mobx-react";
// plane imports
import { ISSUE_PRIORITY_FILTERS } from "@plane/constants";
import { useTranslation } from "@plane/i18n";
// ui
import { PriorityIcon } from "@plane/ui";
// components
import { FilterHeader, FilterOption } from "./helpers";
// constants
// local imports
import { FilterHeader } from "./helpers/filter-header";
import { FilterOption } from "./helpers/filter-option";

type Props = {
appliedFilters: string[] | null;
Expand Down
2 changes: 1 addition & 1 deletion apps/space/core/components/issues/filters/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { FilterSelection } from "@/components/issues/filters/selection";
// helpers
import { queryParamGenerator } from "@/helpers/query-param-generator";
// hooks
import { useIssueFilter } from "@/hooks/store";
import { useIssueFilter } from "@/hooks/store/use-issue-filter";
// types
import { TIssueQueryFilters } from "@/types/issue";

Expand Down
7 changes: 4 additions & 3 deletions apps/space/core/components/issues/filters/selection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import React, { useState } from "react";
import { observer } from "mobx-react";
import { Search, X } from "lucide-react";
// types
import { IIssueFilterOptions, TIssueFilterKeys } from "@/types/issue";
// components
import { FilterPriority, FilterState } from ".";
import type { IIssueFilterOptions, TIssueFilterKeys } from "@/types/issue";
// local imports
import { FilterPriority } from "./priority";
import { FilterState } from "./state";

type Props = {
filters: IIssueFilterOptions;
Expand Down
7 changes: 4 additions & 3 deletions apps/space/core/components/issues/filters/state.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import { observer } from "mobx-react";
// ui
import { EIconSize } from "@plane/constants";
import { Loader, StateGroupIcon } from "@plane/ui";
// components
import { FilterHeader, FilterOption } from "@/components/issues/filters/helpers";
// hooks
import { useStates } from "@/hooks/store";
import { useStates } from "@/hooks/store/use-state";
// local imports
import { FilterHeader } from "./helpers/filter-header";
import { FilterOption } from "./helpers/filter-option";

type Props = {
appliedFilters: string[] | null;
Expand Down
2 changes: 0 additions & 2 deletions apps/space/core/components/issues/index.ts

This file was deleted.

3 changes: 0 additions & 3 deletions apps/space/core/components/issues/issue-layouts/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
export * from "./kanban/base-kanban-root";
export * from "./list/base-list-root";
export * from "./properties";
export * from "./root";
Loading
Loading