fix: remove unused imports and variables (part 1 — packages & non-web-core) (#8751)
* fix: remove unused imports and variables (part 1) Resolve oxlint no-unused-vars warnings in packages/*, apps/admin, apps/space, apps/live, and apps/web (non-core). * fix: resolve CI check failures * fix: resolve check:types failures * fix: resolve check:types and check:format failures - Use destructuring alias for activeCycleResolvedPath - Format propel tab-navigation file * fix: format propel button helper with oxfmt Reorder Tailwind classes to match oxfmt canonical ordering.
This commit is contained in:
parent
c3c7c72aff
commit
d9695afcdc
95 changed files with 71 additions and 145 deletions
|
|
@ -88,7 +88,7 @@ export function HydrateFallback() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ErrorBoundary({ error }: Route.ErrorBoundaryProps) {
|
export function ErrorBoundary({ error: _error }: Route.ErrorBoundaryProps) {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<p>Something went wrong.</p>
|
<p>Something went wrong.</p>
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@ import {
|
||||||
CODE_COLORS,
|
CODE_COLORS,
|
||||||
LINK_COLORS,
|
LINK_COLORS,
|
||||||
MENTION_COLORS,
|
MENTION_COLORS,
|
||||||
NEUTRAL_COLORS,
|
|
||||||
TEXT_COLORS,
|
TEXT_COLORS,
|
||||||
} from "./colors";
|
} from "./colors";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -95,6 +95,6 @@ export function HydrateFallback() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ErrorBoundary({ error }: Route.ErrorBoundaryProps) {
|
export function ErrorBoundary({ error: _error }: Route.ErrorBoundaryProps) {
|
||||||
return <ErrorPage />;
|
return <ErrorPage />;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ export type TEditorFlaggingHookReturnType = {
|
||||||
/**
|
/**
|
||||||
* @description extensions disabled in various editors
|
* @description extensions disabled in various editors
|
||||||
*/
|
*/
|
||||||
export const useEditorFlagging = (anchor: string): TEditorFlaggingHookReturnType => ({
|
export const useEditorFlagging = (_anchor: string): TEditorFlaggingHookReturnType => ({
|
||||||
document: {
|
document: {
|
||||||
disabled: [],
|
disabled: [],
|
||||||
flagged: [],
|
flagged: [],
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ import { action, makeObservable, observable, runInAction } from "mobx";
|
||||||
import { SitesCycleService } from "@plane/services";
|
import { SitesCycleService } from "@plane/services";
|
||||||
import type { TPublicCycle } from "@/types/cycle";
|
import type { TPublicCycle } from "@/types/cycle";
|
||||||
// store
|
// store
|
||||||
import type { CoreRootStore } from "./root.store";
|
import type { RootStore } from "./root.store";
|
||||||
|
|
||||||
export interface ICycleStore {
|
export interface ICycleStore {
|
||||||
// observables
|
// observables
|
||||||
|
|
@ -23,9 +23,9 @@ export interface ICycleStore {
|
||||||
export class CycleStore implements ICycleStore {
|
export class CycleStore implements ICycleStore {
|
||||||
cycles: TPublicCycle[] | undefined = undefined;
|
cycles: TPublicCycle[] | undefined = undefined;
|
||||||
cycleService: SitesCycleService;
|
cycleService: SitesCycleService;
|
||||||
rootStore: CoreRootStore;
|
rootStore: RootStore;
|
||||||
|
|
||||||
constructor(_rootStore: CoreRootStore) {
|
constructor(_rootStore: RootStore) {
|
||||||
makeObservable(this, {
|
makeObservable(this, {
|
||||||
// observables
|
// observables
|
||||||
cycles: observable,
|
cycles: observable,
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ import type {
|
||||||
} from "@plane/types";
|
} from "@plane/types";
|
||||||
// types
|
// types
|
||||||
import type { IIssue, TIssuesResponse } from "@/types/issue";
|
import type { IIssue, TIssuesResponse } from "@/types/issue";
|
||||||
import type { CoreRootStore } from "../root.store";
|
import type { RootStore } from "../root.store";
|
||||||
// constants
|
// constants
|
||||||
// helpers
|
// helpers
|
||||||
|
|
||||||
|
|
@ -81,7 +81,7 @@ export abstract class BaseIssuesStore implements IBaseIssuesStore {
|
||||||
// root store
|
// root store
|
||||||
rootIssueStore;
|
rootIssueStore;
|
||||||
|
|
||||||
constructor(_rootStore: CoreRootStore) {
|
constructor(_rootStore: RootStore) {
|
||||||
makeObservable(this, {
|
makeObservable(this, {
|
||||||
// observable
|
// observable
|
||||||
loader: observable,
|
loader: observable,
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import { observable, action, makeObservable, runInAction } from "mobx";
|
||||||
import { InstanceService } from "@plane/services";
|
import { InstanceService } from "@plane/services";
|
||||||
import type { IInstance, IInstanceConfig } from "@plane/types";
|
import type { IInstance, IInstanceConfig } from "@plane/types";
|
||||||
// store
|
// store
|
||||||
import type { CoreRootStore } from "@/store/root.store";
|
import type { RootStore } from "@/store/root.store";
|
||||||
|
|
||||||
type TError = {
|
type TError = {
|
||||||
status: string;
|
status: string;
|
||||||
|
|
@ -40,7 +40,7 @@ export class InstanceStore implements IInstanceStore {
|
||||||
// services
|
// services
|
||||||
instanceService;
|
instanceService;
|
||||||
|
|
||||||
constructor(private store: CoreRootStore) {
|
constructor(private store: RootStore) {
|
||||||
makeObservable(this, {
|
makeObservable(this, {
|
||||||
// observable
|
// observable
|
||||||
isLoading: observable.ref,
|
isLoading: observable.ref,
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ import { SitesFileService, SitesIssueService } from "@plane/services";
|
||||||
import type { TFileSignedURLResponse, TIssuePublicComment } from "@plane/types";
|
import type { TFileSignedURLResponse, TIssuePublicComment } from "@plane/types";
|
||||||
import { EFileAssetType } from "@plane/types";
|
import { EFileAssetType } from "@plane/types";
|
||||||
// store
|
// store
|
||||||
import type { CoreRootStore } from "@/store/root.store";
|
import type { RootStore } from "@/store/root.store";
|
||||||
// types
|
// types
|
||||||
import type { IIssue, IPeekMode, IVote } from "@/types/issue";
|
import type { IIssue, IPeekMode, IVote } from "@/types/issue";
|
||||||
|
|
||||||
|
|
@ -60,12 +60,12 @@ export class IssueDetailStore implements IIssueDetailStore {
|
||||||
[key: string]: IIssue;
|
[key: string]: IIssue;
|
||||||
} = {};
|
} = {};
|
||||||
// root store
|
// root store
|
||||||
rootStore: CoreRootStore;
|
rootStore: RootStore;
|
||||||
// services
|
// services
|
||||||
issueService: SitesIssueService;
|
issueService: SitesIssueService;
|
||||||
fileService: SitesFileService;
|
fileService: SitesFileService;
|
||||||
|
|
||||||
constructor(_rootStore: CoreRootStore) {
|
constructor(_rootStore: RootStore) {
|
||||||
makeObservable(this, {
|
makeObservable(this, {
|
||||||
loader: observable.ref,
|
loader: observable.ref,
|
||||||
error: observable.ref,
|
error: observable.ref,
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ import { computedFn } from "mobx-utils";
|
||||||
import { ISSUE_DISPLAY_FILTERS_BY_LAYOUT } from "@plane/constants";
|
import { ISSUE_DISPLAY_FILTERS_BY_LAYOUT } from "@plane/constants";
|
||||||
import type { IssuePaginationOptions, TIssueParams } from "@plane/types";
|
import type { IssuePaginationOptions, TIssueParams } from "@plane/types";
|
||||||
// store
|
// store
|
||||||
import type { CoreRootStore } from "@/store/root.store";
|
import type { RootStore } from "@/store/root.store";
|
||||||
// types
|
// types
|
||||||
import type {
|
import type {
|
||||||
TIssueLayoutOptions,
|
TIssueLayoutOptions,
|
||||||
|
|
@ -60,7 +60,7 @@ export class IssueFilterStore implements IIssueFilterStore {
|
||||||
};
|
};
|
||||||
filters: { [anchor: string]: TIssueFilters } | undefined = undefined;
|
filters: { [anchor: string]: TIssueFilters } | undefined = undefined;
|
||||||
|
|
||||||
constructor(private store: CoreRootStore) {
|
constructor(private store: RootStore) {
|
||||||
makeObservable(this, {
|
makeObservable(this, {
|
||||||
// observables
|
// observables
|
||||||
layoutOptions: observable,
|
layoutOptions: observable,
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ import { action, makeObservable, runInAction } from "mobx";
|
||||||
import { SitesIssueService } from "@plane/services";
|
import { SitesIssueService } from "@plane/services";
|
||||||
import type { IssuePaginationOptions, TLoader } from "@plane/types";
|
import type { IssuePaginationOptions, TLoader } from "@plane/types";
|
||||||
// store
|
// store
|
||||||
import type { CoreRootStore } from "@/store/root.store";
|
import type { RootStore } from "@/store/root.store";
|
||||||
// types
|
// types
|
||||||
import { BaseIssuesStore } from "./helpers/base-issues.store";
|
import { BaseIssuesStore } from "./helpers/base-issues.store";
|
||||||
import type { IBaseIssuesStore } from "./helpers/base-issues.store";
|
import type { IBaseIssuesStore } from "./helpers/base-issues.store";
|
||||||
|
|
@ -28,11 +28,11 @@ export interface IIssueStore extends IBaseIssuesStore {
|
||||||
|
|
||||||
export class IssueStore extends BaseIssuesStore implements IIssueStore {
|
export class IssueStore extends BaseIssuesStore implements IIssueStore {
|
||||||
// root store
|
// root store
|
||||||
rootStore: CoreRootStore;
|
rootStore: RootStore;
|
||||||
// services
|
// services
|
||||||
issueService: SitesIssueService;
|
issueService: SitesIssueService;
|
||||||
|
|
||||||
constructor(_rootStore: CoreRootStore) {
|
constructor(_rootStore: RootStore) {
|
||||||
super(_rootStore);
|
super(_rootStore);
|
||||||
makeObservable(this, {
|
makeObservable(this, {
|
||||||
// actions
|
// actions
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import { action, computed, makeObservable, observable, runInAction } from "mobx"
|
||||||
import { SitesLabelService } from "@plane/services";
|
import { SitesLabelService } from "@plane/services";
|
||||||
import type { IIssueLabel } from "@plane/types";
|
import type { IIssueLabel } from "@plane/types";
|
||||||
// store
|
// store
|
||||||
import type { CoreRootStore } from "./root.store";
|
import type { RootStore } from "./root.store";
|
||||||
|
|
||||||
export interface IIssueLabelStore {
|
export interface IIssueLabelStore {
|
||||||
// observables
|
// observables
|
||||||
|
|
@ -25,9 +25,9 @@ export interface IIssueLabelStore {
|
||||||
export class LabelStore implements IIssueLabelStore {
|
export class LabelStore implements IIssueLabelStore {
|
||||||
labelMap: Record<string, IIssueLabel> = {};
|
labelMap: Record<string, IIssueLabel> = {};
|
||||||
labelService: SitesLabelService;
|
labelService: SitesLabelService;
|
||||||
rootStore: CoreRootStore;
|
rootStore: RootStore;
|
||||||
|
|
||||||
constructor(_rootStore: CoreRootStore) {
|
constructor(_rootStore: RootStore) {
|
||||||
makeObservable(this, {
|
makeObservable(this, {
|
||||||
// observables
|
// observables
|
||||||
labelMap: observable,
|
labelMap: observable,
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ import { action, computed, makeObservable, observable, runInAction } from "mobx"
|
||||||
// plane imports
|
// plane imports
|
||||||
import { SitesMemberService } from "@plane/services";
|
import { SitesMemberService } from "@plane/services";
|
||||||
import type { TPublicMember } from "@/types/member";
|
import type { TPublicMember } from "@/types/member";
|
||||||
import type { CoreRootStore } from "./root.store";
|
import type { RootStore } from "./root.store";
|
||||||
|
|
||||||
export interface IIssueMemberStore {
|
export interface IIssueMemberStore {
|
||||||
// observables
|
// observables
|
||||||
|
|
@ -24,9 +24,9 @@ export interface IIssueMemberStore {
|
||||||
export class MemberStore implements IIssueMemberStore {
|
export class MemberStore implements IIssueMemberStore {
|
||||||
memberMap: Record<string, TPublicMember> = {};
|
memberMap: Record<string, TPublicMember> = {};
|
||||||
memberService: SitesMemberService;
|
memberService: SitesMemberService;
|
||||||
rootStore: CoreRootStore;
|
rootStore: RootStore;
|
||||||
|
|
||||||
constructor(_rootStore: CoreRootStore) {
|
constructor(_rootStore: RootStore) {
|
||||||
makeObservable(this, {
|
makeObservable(this, {
|
||||||
// observables
|
// observables
|
||||||
memberMap: observable,
|
memberMap: observable,
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ import { SitesModuleService } from "@plane/services";
|
||||||
// types
|
// types
|
||||||
import type { TPublicModule } from "@/types/modules";
|
import type { TPublicModule } from "@/types/modules";
|
||||||
// root store
|
// root store
|
||||||
import type { CoreRootStore } from "./root.store";
|
import type { RootStore } from "./root.store";
|
||||||
|
|
||||||
export interface IIssueModuleStore {
|
export interface IIssueModuleStore {
|
||||||
// observables
|
// observables
|
||||||
|
|
@ -26,9 +26,9 @@ export interface IIssueModuleStore {
|
||||||
export class ModuleStore implements IIssueModuleStore {
|
export class ModuleStore implements IIssueModuleStore {
|
||||||
moduleMap: Record<string, TPublicModule> = {};
|
moduleMap: Record<string, TPublicModule> = {};
|
||||||
moduleService: SitesModuleService;
|
moduleService: SitesModuleService;
|
||||||
rootStore: CoreRootStore;
|
rootStore: RootStore;
|
||||||
|
|
||||||
constructor(_rootStore: CoreRootStore) {
|
constructor(_rootStore: RootStore) {
|
||||||
makeObservable(this, {
|
makeObservable(this, {
|
||||||
// observables
|
// observables
|
||||||
moduleMap: observable,
|
moduleMap: observable,
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ import { UserService } from "@plane/services";
|
||||||
import type { TUserProfile } from "@plane/types";
|
import type { TUserProfile } from "@plane/types";
|
||||||
import { EStartOfTheWeek } from "@plane/types";
|
import { EStartOfTheWeek } from "@plane/types";
|
||||||
// store
|
// store
|
||||||
import type { CoreRootStore } from "@/store/root.store";
|
import type { RootStore } from "@/store/root.store";
|
||||||
|
|
||||||
type TError = {
|
type TError = {
|
||||||
status: string;
|
status: string;
|
||||||
|
|
@ -64,7 +64,7 @@ export class ProfileStore implements IProfileStore {
|
||||||
// services
|
// services
|
||||||
userService: UserService;
|
userService: UserService;
|
||||||
|
|
||||||
constructor(public store: CoreRootStore) {
|
constructor(public store: RootStore) {
|
||||||
makeObservable(this, {
|
makeObservable(this, {
|
||||||
// observables
|
// observables
|
||||||
isLoading: observable.ref,
|
isLoading: observable.ref,
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ import type {
|
||||||
TProjectPublishViewProps,
|
TProjectPublishViewProps,
|
||||||
} from "@plane/types";
|
} from "@plane/types";
|
||||||
// store
|
// store
|
||||||
import type { CoreRootStore } from "../root.store";
|
import type { RootStore } from "../root.store";
|
||||||
|
|
||||||
export interface IPublishStore extends TProjectPublishSettings {
|
export interface IPublishStore extends TProjectPublishSettings {
|
||||||
// computed
|
// computed
|
||||||
|
|
@ -45,7 +45,7 @@ export class PublishStore implements IPublishStore {
|
||||||
workspace_detail: IWorkspaceLite | undefined;
|
workspace_detail: IWorkspaceLite | undefined;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private store: CoreRootStore,
|
private store: RootStore,
|
||||||
publishSettings: TProjectPublishSettings
|
publishSettings: TProjectPublishSettings
|
||||||
) {
|
) {
|
||||||
this.anchor = publishSettings.anchor;
|
this.anchor = publishSettings.anchor;
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ import { SitesProjectPublishService } from "@plane/services";
|
||||||
import type { TProjectPublishSettings } from "@plane/types";
|
import type { TProjectPublishSettings } from "@plane/types";
|
||||||
// store
|
// store
|
||||||
import { PublishStore } from "@/store/publish/publish.store";
|
import { PublishStore } from "@/store/publish/publish.store";
|
||||||
import type { CoreRootStore } from "@/store/root.store";
|
import type { RootStore } from "@/store/root.store";
|
||||||
|
|
||||||
export interface IPublishListStore {
|
export interface IPublishListStore {
|
||||||
// observables
|
// observables
|
||||||
|
|
@ -26,7 +26,7 @@ export class PublishListStore implements IPublishListStore {
|
||||||
// service
|
// service
|
||||||
publishService;
|
publishService;
|
||||||
|
|
||||||
constructor(private rootStore: CoreRootStore) {
|
constructor(private rootStore: RootStore) {
|
||||||
makeObservable(this, {
|
makeObservable(this, {
|
||||||
// observables
|
// observables
|
||||||
publishMap: observable,
|
publishMap: observable,
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ import type { IState } from "@plane/types";
|
||||||
// helpers
|
// helpers
|
||||||
import { sortStates } from "@/helpers/state.helper";
|
import { sortStates } from "@/helpers/state.helper";
|
||||||
// store
|
// store
|
||||||
import type { CoreRootStore } from "./root.store";
|
import type { RootStore } from "./root.store";
|
||||||
|
|
||||||
export interface IStateStore {
|
export interface IStateStore {
|
||||||
// observables
|
// observables
|
||||||
|
|
@ -28,9 +28,9 @@ export interface IStateStore {
|
||||||
export class StateStore implements IStateStore {
|
export class StateStore implements IStateStore {
|
||||||
states: IState[] | undefined = undefined;
|
states: IState[] | undefined = undefined;
|
||||||
stateService: SitesStateService;
|
stateService: SitesStateService;
|
||||||
rootStore: CoreRootStore;
|
rootStore: RootStore;
|
||||||
|
|
||||||
constructor(_rootStore: CoreRootStore) {
|
constructor(_rootStore: RootStore) {
|
||||||
makeObservable(this, {
|
makeObservable(this, {
|
||||||
// observables
|
// observables
|
||||||
states: observable,
|
states: observable,
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ import type { ActorDetail, IUser } from "@plane/types";
|
||||||
import type { IProfileStore } from "@/store/profile.store";
|
import type { IProfileStore } from "@/store/profile.store";
|
||||||
import { ProfileStore } from "@/store/profile.store";
|
import { ProfileStore } from "@/store/profile.store";
|
||||||
// store
|
// store
|
||||||
import type { CoreRootStore } from "@/store/root.store";
|
import type { RootStore } from "@/store/root.store";
|
||||||
|
|
||||||
type TUserErrorStatus = {
|
type TUserErrorStatus = {
|
||||||
status: string;
|
status: string;
|
||||||
|
|
@ -50,7 +50,7 @@ export class UserStore implements IUserStore {
|
||||||
// service
|
// service
|
||||||
userService: UserService;
|
userService: UserService;
|
||||||
|
|
||||||
constructor(private store: CoreRootStore) {
|
constructor(private store: RootStore) {
|
||||||
// stores
|
// stores
|
||||||
this.profile = new ProfileStore(store);
|
this.profile = new ProfileStore(store);
|
||||||
// service
|
// service
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
// plane imports
|
// plane imports
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// ui
|
// ui
|
||||||
import type { FC } from "react";
|
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import { useParams, useRouter } from "next/navigation";
|
import { useParams, useRouter } from "next/navigation";
|
||||||
import { PanelRight } from "lucide-react";
|
import { PanelRight } from "lucide-react";
|
||||||
|
|
@ -14,7 +13,6 @@ import { useTranslation } from "@plane/i18n";
|
||||||
import { YourWorkIcon, ChevronDownIcon } from "@plane/propel/icons";
|
import { YourWorkIcon, ChevronDownIcon } from "@plane/propel/icons";
|
||||||
import type { IUserProfileProjectSegregation } from "@plane/types";
|
import type { IUserProfileProjectSegregation } from "@plane/types";
|
||||||
import { Breadcrumbs, Header, CustomMenu } from "@plane/ui";
|
import { Breadcrumbs, Header, CustomMenu } from "@plane/ui";
|
||||||
import { cn } from "@plane/utils";
|
|
||||||
// components
|
// components
|
||||||
import { BreadcrumbLink } from "@/components/common/breadcrumb-link";
|
import { BreadcrumbLink } from "@/components/common/breadcrumb-link";
|
||||||
import { ProfileIssuesFilter } from "@/components/profile/profile-issues-filter";
|
import { ProfileIssuesFilter } from "@/components/profile/profile-issues-filter";
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
import { isEmpty } from "lodash-es";
|
import { isEmpty } from "lodash-es";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
// plane helpers
|
// plane helpers
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,6 @@ function UserInvitationsPage() {
|
||||||
.then(() => {
|
.then(() => {
|
||||||
mutate(USER_WORKSPACES_LIST);
|
mutate(USER_WORKSPACES_LIST);
|
||||||
const firstInviteId = invitationsRespond[0];
|
const firstInviteId = invitationsRespond[0];
|
||||||
const invitation = invitations?.find((i) => i.id === firstInviteId);
|
|
||||||
const redirectWorkspace = invitations?.find((i) => i.id === firstInviteId)?.workspace;
|
const redirectWorkspace = invitations?.find((i) => i.id === firstInviteId)?.workspace;
|
||||||
updateUserProfile({ last_workspace_id: redirectWorkspace?.id })
|
updateUserProfile({ last_workspace_id: redirectWorkspace?.id })
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ import { useMemo } from "react";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
import { getAnalyticsTabs } from "./tabs";
|
import { getAnalyticsTabs } from "./tabs";
|
||||||
|
|
||||||
export const useAnalyticsTabs = (workspaceSlug: string) => {
|
export const useAnalyticsTabs = (_workspaceSlug: string) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
const analyticsTabs = useMemo(() => getAnalyticsTabs(t), [t]);
|
const analyticsTabs = useMemo(() => getAnalyticsTabs(t), [t]);
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
export type TCustomAutomationsRootProps = {
|
export type TCustomAutomationsRootProps = {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import { useParams } from "next/navigation";
|
import { useParams } from "next/navigation";
|
||||||
// plane imports
|
// plane imports
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,6 @@ type TProps = {
|
||||||
workspace?: IWorkspace;
|
workspace?: IWorkspace;
|
||||||
};
|
};
|
||||||
|
|
||||||
export function SubscriptionPill(props: TProps) {
|
export function SubscriptionPill(_props: TProps) {
|
||||||
return <></>;
|
return <></>;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ type ActiveCyclesComponentProps = {
|
||||||
const ActiveCyclesComponent = observer(function ActiveCyclesComponent({
|
const ActiveCyclesComponent = observer(function ActiveCyclesComponent({
|
||||||
cycleId,
|
cycleId,
|
||||||
activeCycle,
|
activeCycle,
|
||||||
activeCycleResolvedPath,
|
activeCycleResolvedPath: _activeCycleResolvedPath,
|
||||||
workspaceSlug,
|
workspaceSlug,
|
||||||
projectId,
|
projectId,
|
||||||
handleFiltersUpdate,
|
handleFiltersUpdate,
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
type Props = {
|
type Props = {
|
||||||
cycleId: string;
|
cycleId: string;
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
// components
|
// components
|
||||||
import { SidebarChart } from "./base";
|
import { SidebarChart } from "./base";
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
// local components
|
// local components
|
||||||
|
|
||||||
|
|
@ -15,7 +14,6 @@ type TDeDupeButtonRoot = {
|
||||||
label: string;
|
label: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export function DeDupeButtonRoot(props: TDeDupeButtonRoot) {
|
export function DeDupeButtonRoot(_props: TDeDupeButtonRoot) {
|
||||||
const { workspaceSlug, isDuplicateModalOpen, label, handleOnClick } = props;
|
|
||||||
return <></>;
|
return <></>;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
// types
|
// types
|
||||||
import type { TDeDupeIssue } from "@plane/types";
|
import type { TDeDupeIssue } from "@plane/types";
|
||||||
|
|
||||||
|
|
@ -14,7 +13,6 @@ type TDuplicateModalRootProps = {
|
||||||
handleDuplicateIssueModal: (value: boolean) => void;
|
handleDuplicateIssueModal: (value: boolean) => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
export function DuplicateModalRoot(props: TDuplicateModalRootProps) {
|
export function DuplicateModalRoot(_props: TDuplicateModalRootProps) {
|
||||||
const { workspaceSlug, issues, handleDuplicateIssueModal } = props;
|
|
||||||
return <></>;
|
return <></>;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
// types
|
// types
|
||||||
|
|
|
||||||
|
|
@ -4,14 +4,11 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
|
|
||||||
type TDeDupeIssueButtonLabelProps = {
|
type TDeDupeIssueButtonLabelProps = {
|
||||||
isOpen: boolean;
|
isOpen: boolean;
|
||||||
buttonLabel: string;
|
buttonLabel: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export function DeDupeIssueButtonLabel(props: TDeDupeIssueButtonLabelProps) {
|
export function DeDupeIssueButtonLabel(_props: TDeDupeIssueButtonLabelProps) {
|
||||||
const { isOpen, buttonLabel } = props;
|
|
||||||
return <></>;
|
return <></>;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import type { TIssue } from "@plane/types";
|
import type { TIssue } from "@plane/types";
|
||||||
|
|
||||||
|
|
@ -22,6 +21,6 @@ export interface EpicModalProps {
|
||||||
isProjectSelectionDisabled?: boolean;
|
isProjectSelectionDisabled?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function CreateUpdateEpicModal(props: EpicModalProps) {
|
export function CreateUpdateEpicModal(_props: EpicModalProps) {
|
||||||
return <></>;
|
return <></>;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
|
|
||||||
export type TEstimateTimeInputProps = {
|
export type TEstimateTimeInputProps = {
|
||||||
value?: number;
|
value?: number;
|
||||||
handleEstimateInputValue: (value: string) => void;
|
handleEstimateInputValue: (value: string) => void;
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
|
|
||||||
import type { TEstimatePointsObject, TEstimateSystemKeys, TEstimateTypeErrorObject } from "@plane/types";
|
import type { TEstimatePointsObject, TEstimateSystemKeys, TEstimateTypeErrorObject } from "@plane/types";
|
||||||
|
|
||||||
export type TEstimatePointDelete = {
|
export type TEstimatePointDelete = {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
|
|
||||||
type TUpdateEstimateModal = {
|
type TUpdateEstimateModal = {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
//
|
//
|
||||||
import type { IBlockUpdateDependencyData } from "@plane/types";
|
import type { IBlockUpdateDependencyData } from "@plane/types";
|
||||||
import { GanttChartBlock } from "@/components/gantt-chart/blocks/block";
|
import { GanttChartBlock } from "@/components/gantt-chart/blocks/block";
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,6 @@ type LeftDependencyDraggableProps = {
|
||||||
ganttContainerRef: RefObject<HTMLDivElement>;
|
ganttContainerRef: RefObject<HTMLDivElement>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export function LeftDependencyDraggable(props: LeftDependencyDraggableProps) {
|
export function LeftDependencyDraggable(_props: LeftDependencyDraggableProps) {
|
||||||
return <></>;
|
return <></>;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,6 @@ type RightDependencyDraggableProps = {
|
||||||
block: IGanttBlock;
|
block: IGanttBlock;
|
||||||
ganttContainerRef: RefObject<HTMLDivElement>;
|
ganttContainerRef: RefObject<HTMLDivElement>;
|
||||||
};
|
};
|
||||||
export function RightDependencyDraggable(props: RightDependencyDraggableProps) {
|
export function RightDependencyDraggable(_props: RightDependencyDraggableProps) {
|
||||||
return <></>;
|
return <></>;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,12 +4,9 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
isEpic?: boolean;
|
isEpic?: boolean;
|
||||||
};
|
};
|
||||||
export function TimelineDependencyPaths(props: Props) {
|
export function TimelineDependencyPaths(_props: Props) {
|
||||||
const { isEpic = false } = props;
|
|
||||||
return <></>;
|
return <></>;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,6 @@ export type TInboxSourcePill = {
|
||||||
source: EInboxIssueSource;
|
source: EInboxIssueSource;
|
||||||
};
|
};
|
||||||
|
|
||||||
export function InboxSourcePill(props: TInboxSourcePill) {
|
export function InboxSourcePill(_props: TInboxSourcePill) {
|
||||||
return <></>;
|
return <></>;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type React from "react";
|
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type React from "react";
|
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
// plane types
|
// plane types
|
||||||
import type { TIssueServiceType, TWorkItemWidgets } from "@plane/types";
|
import type { TIssueServiceType, TWorkItemWidgets } from "@plane/types";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
// plane types
|
// plane types
|
||||||
import type { TIssueServiceType, TWorkItemWidgets } from "@plane/types";
|
import type { TIssueServiceType, TWorkItemWidgets } from "@plane/types";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
// plane types
|
// plane types
|
||||||
import type { TIssueServiceType, TWorkItemWidgets } from "@plane/types";
|
import type { TIssueServiceType, TWorkItemWidgets } from "@plane/types";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
|
|
||||||
export type TAdditionalActivityRoot = {
|
export type TAdditionalActivityRoot = {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
// plane imports
|
// plane imports
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
// hooks
|
// hooks
|
||||||
import { useIssueDetail } from "@/hooks/store/use-issue-detail";
|
import { useIssueDetail } from "@/hooks/store/use-issue-detail";
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
|
|
||||||
type TIssueAdditionalPropertiesActivity = {
|
type TIssueAdditionalPropertiesActivity = {
|
||||||
activityId: string;
|
activityId: string;
|
||||||
ends: "top" | "bottom" | undefined;
|
ends: "top" | "bottom" | undefined;
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
|
|
||||||
export type TIssueTypeActivity = { activityId: string; showIssue?: boolean; ends: "top" | "bottom" | undefined };
|
export type TIssueTypeActivity = { activityId: string; showIssue?: boolean; ends: "top" | "bottom" | undefined };
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ export const IssueParentSelectRoot = observer(function IssueParentSelectRoot(pro
|
||||||
await issueOperations.fetch(workspaceSlug, projectId, issueId, false);
|
await issueOperations.fetch(workspaceSlug, projectId, issueId, false);
|
||||||
if (_issueId) await fetchSubIssues(workspaceSlug, projectId, _issueId);
|
if (_issueId) await fetchSubIssues(workspaceSlug, projectId, _issueId);
|
||||||
toggleParentIssueModal(null);
|
toggleParentIssueModal(null);
|
||||||
} catch (error) {
|
} catch (_error) {
|
||||||
console.error("something went wrong while fetching the issue");
|
console.error("something went wrong while fetching the issue");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
@ -63,7 +63,7 @@ export const IssueParentSelectRoot = observer(function IssueParentSelectRoot(pro
|
||||||
await removeSubIssue(workspaceSlug, projectId, parentIssueId, issueId);
|
await removeSubIssue(workspaceSlug, projectId, parentIssueId, issueId);
|
||||||
await fetchSubIssues(workspaceSlug, projectId, parentIssueId);
|
await fetchSubIssues(workspaceSlug, projectId, parentIssueId);
|
||||||
setSubIssueHelpers(parentIssueId, "issue_loader", issueId);
|
setSubIssueHelpers(parentIssueId, "issue_loader", issueId);
|
||||||
} catch (error) {
|
} catch (_error) {
|
||||||
setToast({
|
setToast({
|
||||||
type: TOAST_TYPE.ERROR,
|
type: TOAST_TYPE.ERROR,
|
||||||
title: t("common.error.label"),
|
title: t("common.error.label"),
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import type { IIssueDisplayProperties, TIssue } from "@plane/types";
|
import type { IIssueDisplayProperties, TIssue } from "@plane/types";
|
||||||
|
|
||||||
|
|
@ -13,6 +12,6 @@ export type TWorkItemLayoutAdditionalProperties = {
|
||||||
issue: TIssue;
|
issue: TIssue;
|
||||||
};
|
};
|
||||||
|
|
||||||
export function WorkItemLayoutAdditionalProperties(props: TWorkItemLayoutAdditionalProperties) {
|
export function WorkItemLayoutAdditionalProperties(_props: TWorkItemLayoutAdditionalProperties) {
|
||||||
return <></>;
|
return <></>;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
|
|
@ -15,6 +14,6 @@ type Props = {
|
||||||
showLabel?: boolean;
|
showLabel?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
export function IssueStats(props: Props) {
|
export function IssueStats(_props: Props) {
|
||||||
return <></>;
|
return <></>;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
|
|
||||||
type TDuplicateWorkItemModalProps = {
|
type TDuplicateWorkItemModalProps = {
|
||||||
workItemId: string;
|
workItemId: string;
|
||||||
onClose: () => void;
|
onClose: () => void;
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type React from "react";
|
|
||||||
|
|
||||||
export type TWorkItemModalAdditionalPropertiesProps = {
|
export type TWorkItemModalAdditionalPropertiesProps = {
|
||||||
isDraft?: boolean;
|
isDraft?: boolean;
|
||||||
projectId: string | null;
|
projectId: string | null;
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
// plane imports
|
// plane imports
|
||||||
import type { TActivityFilters, TActivityFilterOption } from "@plane/constants";
|
import type { TActivityFilters, TActivityFilterOption } from "@plane/constants";
|
||||||
import { ACTIVITY_FILTER_TYPE_OPTIONS } from "@plane/constants";
|
import { ACTIVITY_FILTER_TYPE_OPTIONS } from "@plane/constants";
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
import type { TIssueActivityComment } from "@plane/types";
|
import type { TIssueActivityComment } from "@plane/types";
|
||||||
|
|
||||||
type TIssueActivityWorklog = {
|
type TIssueActivityWorklog = {
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
|
|
||||||
type TIssueActivityWorklogCreateButton = {
|
type TIssueActivityWorklogCreateButton = {
|
||||||
workspaceSlug: string;
|
workspaceSlug: string;
|
||||||
projectId: string;
|
projectId: string;
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
|
|
||||||
type TIssueWorklogProperty = {
|
type TIssueWorklogProperty = {
|
||||||
workspaceSlug: string;
|
workspaceSlug: string;
|
||||||
projectId: string;
|
projectId: string;
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
// plane imports
|
// plane imports
|
||||||
import { PRODUCT_TOUR_TRACKER_ELEMENTS } from "@plane/constants";
|
|
||||||
import { Button } from "@plane/propel/button";
|
import { Button } from "@plane/propel/button";
|
||||||
import { CloseIcon, PlaneLockup } from "@plane/propel/icons";
|
import { CloseIcon, PlaneLockup } from "@plane/propel/icons";
|
||||||
// assets
|
// assets
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type React from "react";
|
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
// components
|
// components
|
||||||
import type { EPageStoreType } from "@/plane-web/hooks/store";
|
import type { EPageStoreType } from "@/plane-web/hooks/store";
|
||||||
|
|
@ -16,6 +15,6 @@ export type TPageModalsProps = {
|
||||||
storeType: EPageStoreType;
|
storeType: EPageStoreType;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const PageModals = observer(function PageModals(props: TPageModalsProps) {
|
export const PageModals = observer(function PageModals(_props: TPageModalsProps) {
|
||||||
return null;
|
return null;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
// components
|
// components
|
||||||
import { ProjectNavigation } from "@/components/workspace/sidebar/project-navigation";
|
import { ProjectNavigation } from "@/components/workspace/sidebar/project-navigation";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,11 +13,11 @@ export type TLayoutSelectionProps = {
|
||||||
workspaceSlug: string;
|
workspaceSlug: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export function GlobalViewLayoutSelection(props: TLayoutSelectionProps) {
|
export function GlobalViewLayoutSelection(_props: TLayoutSelectionProps) {
|
||||||
return <></>;
|
return <></>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function WorkspaceAdditionalLayouts(props: TWorkspaceLayoutProps) {
|
export function WorkspaceAdditionalLayouts(_props: TWorkspaceLayoutProps) {
|
||||||
return <></>;
|
return <></>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
// plane imports
|
// plane imports
|
||||||
import { ENotificationLoader, ENotificationQueryParamType } from "@plane/constants";
|
import { ENotificationLoader, ENotificationQueryParamType } from "@plane/constants";
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
import type { IWorkspaceSidebarNavigationItem } from "@plane/constants";
|
import type { IWorkspaceSidebarNavigationItem } from "@plane/constants";
|
||||||
import { SidebarItemBase } from "@/components/workspace/sidebar/sidebar-item";
|
import { SidebarItemBase } from "@/components/workspace/sidebar/sidebar-item";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
// helpers
|
// helpers
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
import { cn } from "@plane/utils";
|
import { cn } from "@plane/utils";
|
||||||
|
|
|
||||||
|
|
@ -7,10 +7,10 @@
|
||||||
import type { TDeDupeIssue } from "@plane/types";
|
import type { TDeDupeIssue } from "@plane/types";
|
||||||
|
|
||||||
export const useDebouncedDuplicateIssues = (
|
export const useDebouncedDuplicateIssues = (
|
||||||
workspaceSlug: string | undefined,
|
_workspaceSlug: string | undefined,
|
||||||
workspaceId: string | undefined,
|
_workspaceId: string | undefined,
|
||||||
projectId: string | undefined,
|
_projectId: string | undefined,
|
||||||
formData: { name: string | undefined; description_html?: string | undefined; issueId?: string | undefined }
|
_formData: { name: string | undefined; description_html?: string | undefined; issueId?: string | undefined }
|
||||||
) => {
|
) => {
|
||||||
const duplicateIssues: TDeDupeIssue[] = [];
|
const duplicateIssues: TDeDupeIssue[] = [];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ export const useWorkItemProperties = (
|
||||||
projectId: string | null | undefined,
|
projectId: string | null | undefined,
|
||||||
workspaceSlug: string | null | undefined,
|
workspaceSlug: string | null | undefined,
|
||||||
workItemId: string | null | undefined,
|
workItemId: string | null | undefined,
|
||||||
issueServiceType: TIssueServiceType
|
_issueServiceType: TIssueServiceType
|
||||||
) => {
|
) => {
|
||||||
if (!projectId || !workspaceSlug || !workItemId) return;
|
if (!projectId || !workspaceSlug || !workItemId) return;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -7,4 +7,4 @@
|
||||||
import type { TIssue } from "@plane/types";
|
import type { TIssue } from "@plane/types";
|
||||||
import { getIssueIds } from "@/store/issue/helpers/base-issues-utils";
|
import { getIssueIds } from "@/store/issue/helpers/base-issues-utils";
|
||||||
|
|
||||||
export const workItemSortWithOrderByExtended = (array: TIssue[], key?: string) => getIssueIds(array);
|
export const workItemSortWithOrderByExtended = (array: TIssue[], _key?: string) => getIssueIds(array);
|
||||||
|
|
|
||||||
|
|
@ -7,4 +7,4 @@
|
||||||
import type { TIssue } from "@plane/types";
|
import type { TIssue } from "@plane/types";
|
||||||
import { getIssueIds } from "@/store/issue/helpers/base-issues-utils";
|
import { getIssueIds } from "@/store/issue/helpers/base-issues-utils";
|
||||||
|
|
||||||
export const workItemSortWithOrderByExtended = (array: TIssue[], key?: string) => getIssueIds(array);
|
export const workItemSortWithOrderByExtended = (array: TIssue[], _key?: string) => getIssueIds(array);
|
||||||
|
|
|
||||||
|
|
@ -342,5 +342,5 @@ export class BaseTimeLineStore implements IBaseTimelineStore {
|
||||||
});
|
});
|
||||||
|
|
||||||
// Dummy method to return if the current Block's dependency is being dragged
|
// Dummy method to return if the current Block's dependency is being dragged
|
||||||
getIsCurrentDependencyDragging = computedFn((blockId: string) => false);
|
getIsCurrentDependencyDragging = computedFn((_blockId: string) => false);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
import type { HocuspocusProvider } from "@hocuspocus/provider";
|
import type { HocuspocusProvider } from "@hocuspocus/provider";
|
||||||
import type { Editor } from "@tiptap/react";
|
import type { Editor } from "@tiptap/react";
|
||||||
import type { FC, ReactNode } from "react";
|
import type { ReactNode } from "react";
|
||||||
import { useCallback, useEffect, useRef } from "react";
|
import { useCallback, useEffect, useRef } from "react";
|
||||||
// plane utils
|
// plane utils
|
||||||
import { cn } from "@plane/utils";
|
import { cn } from "@plane/utils";
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@
|
||||||
import { autoUpdate, flip, hide, shift, useDismiss, useFloating, useInteractions } from "@floating-ui/react";
|
import { autoUpdate, flip, hide, shift, useDismiss, useFloating, useInteractions } from "@floating-ui/react";
|
||||||
import type { Editor } from "@tiptap/react";
|
import type { Editor } from "@tiptap/react";
|
||||||
import { useEditorState } from "@tiptap/react";
|
import { useEditorState } from "@tiptap/react";
|
||||||
import type { FC } from "react";
|
|
||||||
import { useCallback, useEffect, useRef, useState } from "react";
|
import { useCallback, useEffect, useRef, useState } from "react";
|
||||||
|
|
||||||
// components
|
// components
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ export type BlockMenuOption = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export function BlockMenu(props: Props) {
|
export function BlockMenu(props: Props) {
|
||||||
const { editor, workItemIdentifier } = props;
|
const { editor } = props;
|
||||||
const [isOpen, setIsOpen] = useState(false);
|
const [isOpen, setIsOpen] = useState(false);
|
||||||
const [isAnimatedIn, setIsAnimatedIn] = useState(false);
|
const [isAnimatedIn, setIsAnimatedIn] = useState(false);
|
||||||
const menuRef = useRef<HTMLDivElement | null>(null);
|
const menuRef = useRef<HTMLDivElement | null>(null);
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@
|
||||||
import type { Editor } from "@tiptap/react";
|
import type { Editor } from "@tiptap/react";
|
||||||
import { ALargeSmall, Ban } from "lucide-react";
|
import { ALargeSmall, Ban } from "lucide-react";
|
||||||
import { useMemo } from "react";
|
import { useMemo } from "react";
|
||||||
import type { FC } from "react";
|
|
||||||
// plane utils
|
// plane utils
|
||||||
import { cn } from "@plane/utils";
|
import { cn } from "@plane/utils";
|
||||||
// constants
|
// constants
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
import type { Editor } from "@tiptap/core";
|
import type { Editor } from "@tiptap/core";
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
import { useCallback, useRef, useState } from "react";
|
import { useCallback, useRef, useState } from "react";
|
||||||
import { LinkIcon, TrashIcon, CheckIcon } from "@plane/propel/icons";
|
import { LinkIcon, TrashIcon, CheckIcon } from "@plane/propel/icons";
|
||||||
// plane imports
|
// plane imports
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
import type { Editor } from "@tiptap/react";
|
import type { Editor } from "@tiptap/react";
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
import { CheckIcon, ChevronDownIcon } from "@plane/propel/icons";
|
import { CheckIcon, ChevronDownIcon } from "@plane/propel/icons";
|
||||||
// plane utils
|
// plane utils
|
||||||
import { cn } from "@plane/utils";
|
import { cn } from "@plane/utils";
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@ import { isNodeSelection } from "@tiptap/core";
|
||||||
import type { Editor } from "@tiptap/core";
|
import type { Editor } from "@tiptap/core";
|
||||||
import { BubbleMenu, useEditorState } from "@tiptap/react";
|
import { BubbleMenu, useEditorState } from "@tiptap/react";
|
||||||
import type { BubbleMenuProps } from "@tiptap/react";
|
import type { BubbleMenuProps } from "@tiptap/react";
|
||||||
import type { FC } from "react";
|
|
||||||
import { useEffect, useState, useRef } from "react";
|
import { useEffect, useState, useRef } from "react";
|
||||||
// plane utils
|
// plane utils
|
||||||
import { cn } from "@plane/utils";
|
import { cn } from "@plane/utils";
|
||||||
|
|
|
||||||
|
|
@ -252,7 +252,7 @@ export function CustomImageBlock(props: CustomImageBlockProps) {
|
||||||
src={displayedImageSrc}
|
src={displayedImageSrc}
|
||||||
alt=""
|
alt=""
|
||||||
onLoad={handleImageLoad}
|
onLoad={handleImageLoad}
|
||||||
onError={(e) =>
|
onError={(_e) =>
|
||||||
void (async () => {
|
void (async () => {
|
||||||
// for old image extension this command doesn't exist or if the image failed to load for the first time
|
// for old image extension this command doesn't exist or if the image failed to load for the first time
|
||||||
if (!extension.options.restoreImage || hasTriedRestoringImageOnce) {
|
if (!extension.options.restoreImage || hasTriedRestoringImageOnce) {
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,6 @@ export const useCollaborativeEditor = (props: UseCollaborativeEditorArgs) => {
|
||||||
titleRef,
|
titleRef,
|
||||||
updatePageProperties,
|
updatePageProperties,
|
||||||
user,
|
user,
|
||||||
actions,
|
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
const { mainNavigationExtension, titleNavigationExtension, setMainEditor, setTitleEditor } = useEditorNavigation();
|
const { mainNavigationExtension, titleNavigationExtension, setMainEditor, setTitleEditor } = useEditorNavigation();
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { DOMParser } from "@tiptap/pm/model";
|
|
||||||
import type { EditorProps } from "@tiptap/pm/view";
|
import type { EditorProps } from "@tiptap/pm/view";
|
||||||
// plane utils
|
// plane utils
|
||||||
import { cn } from "@plane/utils";
|
import { cn } from "@plane/utils";
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// plane imports
|
// plane imports
|
||||||
import type { TWebhookConnectionQueryParams } from "@plane/types";
|
|
||||||
import type { TExtendedFileHandler } from "@/plane-editor/types/config";
|
import type { TExtendedFileHandler } from "@/plane-editor/types/config";
|
||||||
|
|
||||||
export type TFileHandler = {
|
export type TFileHandler = {
|
||||||
|
|
|
||||||
|
|
@ -17,9 +17,9 @@ export const buttonVariants = cva(
|
||||||
"error-fill":
|
"error-fill":
|
||||||
"bg-danger-primary text-on-color hover:bg-danger-primary-hover active:bg-danger-primary-active disabled:bg-layer-disabled disabled:text-disabled",
|
"bg-danger-primary text-on-color hover:bg-danger-primary-hover active:bg-danger-primary-active disabled:bg-layer-disabled disabled:text-disabled",
|
||||||
"error-outline":
|
"error-outline":
|
||||||
"bg-layer-2 hover:bg-danger-subtle active:bg-danger-subtle-hover disabled:bg-layer-2 text-danger-secondary disabled:text-disabled border border-danger-strong disabled:border-subtle-1",
|
"border border-danger-strong bg-layer-2 text-danger-secondary hover:bg-danger-subtle active:bg-danger-subtle-hover disabled:border-subtle-1 disabled:bg-layer-2 disabled:text-disabled",
|
||||||
secondary:
|
secondary:
|
||||||
"bg-layer-2 hover:bg-layer-2-hover active:bg-layer-2-active disabled:bg-layer-transparent text-secondary disabled:text-disabled border border-strong disabled:border-subtle-1 shadow-raised-100",
|
"border border-strong bg-layer-2 text-secondary shadow-raised-100 hover:bg-layer-2-hover active:bg-layer-2-active disabled:border-subtle-1 disabled:bg-layer-transparent disabled:text-disabled",
|
||||||
tertiary:
|
tertiary:
|
||||||
"bg-layer-3 text-secondary hover:bg-layer-3-hover active:bg-layer-3-active disabled:bg-layer-transparent disabled:text-disabled",
|
"bg-layer-3 text-secondary hover:bg-layer-3-hover active:bg-layer-3-active disabled:bg-layer-transparent disabled:text-disabled",
|
||||||
ghost:
|
ghost:
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
import { LayoutGroup } from "framer-motion";
|
import { LayoutGroup } from "framer-motion";
|
||||||
import { cn } from "../utils";
|
import { cn } from "../utils";
|
||||||
import type { TTabNavigationListProps } from "./tab-navigation-types";
|
import type { TTabNavigationListProps } from "./tab-navigation-types";
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import type { ISvgIcons } from "@plane/propel/icons";
|
import type { ISvgIcons } from "@plane/propel/icons";
|
||||||
import { DropdownIcon } from "@plane/propel/icons";
|
import { DropdownIcon } from "@plane/propel/icons";
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,6 @@ export function DropdownOptions(props: IMultiSelectDropdownOptions | ISingleSele
|
||||||
keyExtractor,
|
keyExtractor,
|
||||||
options,
|
options,
|
||||||
handleClose,
|
handleClose,
|
||||||
value,
|
|
||||||
renderItem,
|
renderItem,
|
||||||
loader,
|
loader,
|
||||||
isMobile = false,
|
isMobile = false,
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
import { Combobox } from "@headlessui/react";
|
import { Combobox } from "@headlessui/react";
|
||||||
import { sortBy } from "lodash-es";
|
import { sortBy } from "lodash-es";
|
||||||
import type { FC } from "react";
|
|
||||||
import React, { useMemo, useRef, useState } from "react";
|
import React, { useMemo, useRef, useState } from "react";
|
||||||
import { usePopper } from "react-popper";
|
import { usePopper } from "react-popper";
|
||||||
// plane imports
|
// plane imports
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
import { Combobox } from "@headlessui/react";
|
import { Combobox } from "@headlessui/react";
|
||||||
import { sortBy } from "lodash-es";
|
import { sortBy } from "lodash-es";
|
||||||
import type { FC } from "react";
|
|
||||||
import React, { useMemo, useRef, useState } from "react";
|
import React, { useMemo, useRef, useState } from "react";
|
||||||
import { usePopper } from "react-popper";
|
import { usePopper } from "react-popper";
|
||||||
// plane imports
|
// plane imports
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
// plane utils
|
// plane utils
|
||||||
import { calculateTimeAgo, cn, getIconForLink } from "@plane/utils";
|
import { calculateTimeAgo, cn, getIconForLink } from "@plane/utils";
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
* See the LICENSE file for details.
|
* See the LICENSE file for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { FC } from "react";
|
|
||||||
import React, { useState, useEffect } from "react";
|
import React, { useState, useEffect } from "react";
|
||||||
|
|
||||||
interface IRadialProgressBar {
|
interface IRadialProgressBar {
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import * as RadixScrollArea from "@radix-ui/react-scroll-area";
|
import * as RadixScrollArea from "@radix-ui/react-scroll-area";
|
||||||
import type { FC } from "react";
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { cn } from "./utils";
|
import { cn } from "./utils";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Tab } from "@headlessui/react";
|
import { Tab } from "@headlessui/react";
|
||||||
import type { FC } from "react";
|
|
||||||
import React, { Fragment, useEffect, useState } from "react";
|
import React, { Fragment, useEffect, useState } from "react";
|
||||||
// helpers
|
// helpers
|
||||||
import { useLocalStorage } from "@plane/hooks";
|
import { useLocalStorage } from "@plane/hooks";
|
||||||
|
|
|
||||||
|
|
@ -261,7 +261,7 @@ export function extractURLComponents(url: URL | string): IURLComponents | undefi
|
||||||
}
|
}
|
||||||
|
|
||||||
return undefined;
|
return undefined;
|
||||||
} catch (error) {
|
} catch (_error) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -323,7 +323,7 @@ export function isValidNextPath(url: string): boolean {
|
||||||
];
|
];
|
||||||
|
|
||||||
return !maliciousPatterns.some((pattern) => pattern.test(pathname));
|
return !maliciousPatterns.some((pattern) => pattern.test(pathname));
|
||||||
} catch (error) {
|
} catch (_error) {
|
||||||
// If URL constructor fails, it's an invalid path
|
// If URL constructor fails, it's an invalid path
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue