[WEB-4934] dev: propel button implementation (#7859)
* dev: button component code refactor * dev: propel button component implementation
This commit is contained in:
parent
0ad439fa63
commit
726529044e
199 changed files with 660 additions and 290 deletions
|
|
@ -2,8 +2,9 @@
|
||||||
import { FC } from "react";
|
import { FC } from "react";
|
||||||
import { useForm } from "react-hook-form";
|
import { useForm } from "react-hook-form";
|
||||||
import { Lightbulb } from "lucide-react";
|
import { Lightbulb } from "lucide-react";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { IFormattedInstanceConfiguration, TInstanceAIConfigurationKeys } from "@plane/types";
|
import { IFormattedInstanceConfiguration, TInstanceAIConfigurationKeys } from "@plane/types";
|
||||||
import { Button, TOAST_TYPE, setToast } from "@plane/ui";
|
import { TOAST_TYPE, setToast } from "@plane/ui";
|
||||||
// components
|
// components
|
||||||
import { ControllerInput, TControllerInputFormField } from "@/components/common/controller-input";
|
import { ControllerInput, TControllerInputFormField } from "@/components/common/controller-input";
|
||||||
// hooks
|
// hooks
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,9 @@ import Link from "next/link";
|
||||||
import { useForm } from "react-hook-form";
|
import { useForm } from "react-hook-form";
|
||||||
// plane internal packages
|
// plane internal packages
|
||||||
import { API_BASE_URL } from "@plane/constants";
|
import { API_BASE_URL } from "@plane/constants";
|
||||||
|
import { Button, getButtonStyling } from "@plane/propel/button";
|
||||||
import { IFormattedInstanceConfiguration, TInstanceGithubAuthenticationConfigurationKeys } from "@plane/types";
|
import { IFormattedInstanceConfiguration, TInstanceGithubAuthenticationConfigurationKeys } from "@plane/types";
|
||||||
import { Button, TOAST_TYPE, getButtonStyling, setToast } from "@plane/ui";
|
import { TOAST_TYPE, setToast } from "@plane/ui";
|
||||||
import { cn } from "@plane/utils";
|
import { cn } from "@plane/utils";
|
||||||
// components
|
// components
|
||||||
import { CodeBlock } from "@/components/common/code-block";
|
import { CodeBlock } from "@/components/common/code-block";
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,9 @@ import Link from "next/link";
|
||||||
import { useForm } from "react-hook-form";
|
import { useForm } from "react-hook-form";
|
||||||
// plane internal packages
|
// plane internal packages
|
||||||
import { API_BASE_URL } from "@plane/constants";
|
import { API_BASE_URL } from "@plane/constants";
|
||||||
|
import { Button, getButtonStyling } from "@plane/propel/button";
|
||||||
import { IFormattedInstanceConfiguration, TInstanceGitlabAuthenticationConfigurationKeys } from "@plane/types";
|
import { IFormattedInstanceConfiguration, TInstanceGitlabAuthenticationConfigurationKeys } from "@plane/types";
|
||||||
import { Button, TOAST_TYPE, getButtonStyling, setToast } from "@plane/ui";
|
import { TOAST_TYPE, setToast } from "@plane/ui";
|
||||||
import { cn } from "@plane/utils";
|
import { cn } from "@plane/utils";
|
||||||
// components
|
// components
|
||||||
import { CodeBlock } from "@/components/common/code-block";
|
import { CodeBlock } from "@/components/common/code-block";
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,9 @@ import Link from "next/link";
|
||||||
import { useForm } from "react-hook-form";
|
import { useForm } from "react-hook-form";
|
||||||
// plane internal packages
|
// plane internal packages
|
||||||
import { API_BASE_URL } from "@plane/constants";
|
import { API_BASE_URL } from "@plane/constants";
|
||||||
|
import { Button, getButtonStyling } from "@plane/propel/button";
|
||||||
import { IFormattedInstanceConfiguration, TInstanceGoogleAuthenticationConfigurationKeys } from "@plane/types";
|
import { IFormattedInstanceConfiguration, TInstanceGoogleAuthenticationConfigurationKeys } from "@plane/types";
|
||||||
import { Button, TOAST_TYPE, getButtonStyling, setToast } from "@plane/ui";
|
import { TOAST_TYPE, setToast } from "@plane/ui";
|
||||||
import { cn } from "@plane/utils";
|
import { cn } from "@plane/utils";
|
||||||
// components
|
// components
|
||||||
import { CodeBlock } from "@/components/common/code-block";
|
import { CodeBlock } from "@/components/common/code-block";
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,10 @@
|
||||||
import React, { FC, useMemo, useState } from "react";
|
import React, { FC, useMemo, useState } from "react";
|
||||||
import { useForm } from "react-hook-form";
|
import { useForm } from "react-hook-form";
|
||||||
// types
|
// types
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { IFormattedInstanceConfiguration, TInstanceEmailConfigurationKeys } from "@plane/types";
|
import { IFormattedInstanceConfiguration, TInstanceEmailConfigurationKeys } from "@plane/types";
|
||||||
// ui
|
// ui
|
||||||
import { Button, CustomSelect, TOAST_TYPE, setToast } from "@plane/ui";
|
import { CustomSelect, TOAST_TYPE, setToast } from "@plane/ui";
|
||||||
// components
|
// components
|
||||||
import { ControllerInput, TControllerInputFormField } from "@/components/common/controller-input";
|
import { ControllerInput, TControllerInputFormField } from "@/components/common/controller-input";
|
||||||
// hooks
|
// hooks
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
import React, { FC, useEffect, useState } from "react";
|
import React, { FC, useEffect, useState } from "react";
|
||||||
import { Dialog, Transition } from "@headlessui/react";
|
import { Dialog, Transition } from "@headlessui/react";
|
||||||
// plane imports
|
// plane imports
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { InstanceService } from "@plane/services";
|
import { InstanceService } from "@plane/services";
|
||||||
// ui
|
// ui
|
||||||
import { Button, Input } from "@plane/ui";
|
import { Input } from "@plane/ui";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
isOpen: boolean;
|
isOpen: boolean;
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,10 @@ import { observer } from "mobx-react";
|
||||||
import { Controller, useForm } from "react-hook-form";
|
import { Controller, useForm } from "react-hook-form";
|
||||||
import { Telescope } from "lucide-react";
|
import { Telescope } from "lucide-react";
|
||||||
// types
|
// types
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { IInstance, IInstanceAdmin } from "@plane/types";
|
import { IInstance, IInstanceAdmin } from "@plane/types";
|
||||||
// ui
|
// ui
|
||||||
import { Button, Input, TOAST_TYPE, ToggleSwitch, setToast } from "@plane/ui";
|
import { Input, TOAST_TYPE, ToggleSwitch, setToast } from "@plane/ui";
|
||||||
// components
|
// components
|
||||||
import { ControllerInput } from "@/components/common/controller-input";
|
import { ControllerInput } from "@/components/common/controller-input";
|
||||||
import { useInstance } from "@/hooks/store";
|
import { useInstance } from "@/hooks/store";
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
"use client";
|
"use client";
|
||||||
import { FC } from "react";
|
import { FC } from "react";
|
||||||
import { useForm } from "react-hook-form";
|
import { useForm } from "react-hook-form";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { IFormattedInstanceConfiguration, TInstanceImageConfigurationKeys } from "@plane/types";
|
import { IFormattedInstanceConfiguration, TInstanceImageConfigurationKeys } from "@plane/types";
|
||||||
import { Button, TOAST_TYPE, setToast } from "@plane/ui";
|
import { TOAST_TYPE, setToast } from "@plane/ui";
|
||||||
// components
|
// components
|
||||||
import { ControllerInput } from "@/components/common/controller-input";
|
import { ControllerInput } from "@/components/common/controller-input";
|
||||||
// hooks
|
// hooks
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,11 @@ import { useRouter } from "next/navigation";
|
||||||
import { Controller, useForm } from "react-hook-form";
|
import { Controller, useForm } from "react-hook-form";
|
||||||
// plane imports
|
// plane imports
|
||||||
import { WEB_BASE_URL, ORGANIZATION_SIZE, RESTRICTED_URLS } from "@plane/constants";
|
import { WEB_BASE_URL, ORGANIZATION_SIZE, RESTRICTED_URLS } from "@plane/constants";
|
||||||
|
import { Button, getButtonStyling } from "@plane/propel/button";
|
||||||
import { InstanceWorkspaceService } from "@plane/services";
|
import { InstanceWorkspaceService } from "@plane/services";
|
||||||
import { IWorkspace } from "@plane/types";
|
import { IWorkspace } from "@plane/types";
|
||||||
// components
|
// components
|
||||||
import { Button, CustomSelect, getButtonStyling, Input, setToast, TOAST_TYPE } from "@plane/ui";
|
import { CustomSelect, Input, setToast, TOAST_TYPE } from "@plane/ui";
|
||||||
// hooks
|
// hooks
|
||||||
import { useWorkspace } from "@/hooks/store";
|
import { useWorkspace } from "@/hooks/store";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,9 @@ import Link from "next/link";
|
||||||
import useSWR from "swr";
|
import useSWR from "swr";
|
||||||
import { Loader as LoaderIcon } from "lucide-react";
|
import { Loader as LoaderIcon } from "lucide-react";
|
||||||
// types
|
// types
|
||||||
|
import { Button, getButtonStyling } from "@plane/propel/button";
|
||||||
import { TInstanceConfigurationKeys } from "@plane/types";
|
import { TInstanceConfigurationKeys } from "@plane/types";
|
||||||
import { Button, getButtonStyling, Loader, setPromiseToast, ToggleSwitch } from "@plane/ui";
|
import { Loader, setPromiseToast, ToggleSwitch } from "@plane/ui";
|
||||||
import { cn } from "@plane/utils";
|
import { cn } from "@plane/utils";
|
||||||
// components
|
// components
|
||||||
import { WorkspaceListItem } from "@/components/workspace/list-item";
|
import { WorkspaceListItem } from "@/components/workspace/list-item";
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,9 @@ import { useSearchParams } from "next/navigation";
|
||||||
import { Eye, EyeOff } from "lucide-react";
|
import { Eye, EyeOff } from "lucide-react";
|
||||||
// plane internal packages
|
// plane internal packages
|
||||||
import { API_BASE_URL, EAdminAuthErrorCodes, TAdminAuthErrorInfo } from "@plane/constants";
|
import { API_BASE_URL, EAdminAuthErrorCodes, TAdminAuthErrorInfo } from "@plane/constants";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { AuthService } from "@plane/services";
|
import { AuthService } from "@plane/services";
|
||||||
import { Button, Input, Spinner } from "@plane/ui";
|
import { Input, Spinner } from "@plane/ui";
|
||||||
// components
|
// components
|
||||||
import { Banner } from "@/components/common/banner";
|
import { Banner } from "@/components/common/banner";
|
||||||
// local components
|
// local components
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import React from "react";
|
||||||
// icons
|
// icons
|
||||||
import { SquareArrowOutUpRight } from "lucide-react";
|
import { SquareArrowOutUpRight } from "lucide-react";
|
||||||
// plane internal packages
|
// plane internal packages
|
||||||
import { getButtonStyling } from "@plane/ui";
|
import { getButtonStyling } from "@plane/propel/button";
|
||||||
import { cn } from "@plane/utils";
|
import { cn } from "@plane/utils";
|
||||||
|
|
||||||
export const UpgradeButton: React.FC = () => (
|
export const UpgradeButton: React.FC = () => (
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,9 @@ import Link from "next/link";
|
||||||
// icons
|
// icons
|
||||||
import { Settings2 } from "lucide-react";
|
import { Settings2 } from "lucide-react";
|
||||||
// plane internal packages
|
// plane internal packages
|
||||||
|
import { getButtonStyling } from "@plane/propel/button";
|
||||||
import { TInstanceAuthenticationMethodKeys } from "@plane/types";
|
import { TInstanceAuthenticationMethodKeys } from "@plane/types";
|
||||||
import { ToggleSwitch, getButtonStyling } from "@plane/ui";
|
import { ToggleSwitch } from "@plane/ui";
|
||||||
import { cn } from "@plane/utils";
|
import { cn } from "@plane/utils";
|
||||||
// hooks
|
// hooks
|
||||||
import { useInstance } from "@/hooks/store";
|
import { useInstance } from "@/hooks/store";
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,9 @@ import Link from "next/link";
|
||||||
// icons
|
// icons
|
||||||
import { Settings2 } from "lucide-react";
|
import { Settings2 } from "lucide-react";
|
||||||
// plane internal packages
|
// plane internal packages
|
||||||
|
import { getButtonStyling } from "@plane/propel/button";
|
||||||
import { TInstanceAuthenticationMethodKeys } from "@plane/types";
|
import { TInstanceAuthenticationMethodKeys } from "@plane/types";
|
||||||
import { ToggleSwitch, getButtonStyling } from "@plane/ui";
|
import { ToggleSwitch } from "@plane/ui";
|
||||||
import { cn } from "@plane/utils";
|
import { cn } from "@plane/utils";
|
||||||
// hooks
|
// hooks
|
||||||
import { useInstance } from "@/hooks/store";
|
import { useInstance } from "@/hooks/store";
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,9 @@ import Link from "next/link";
|
||||||
// icons
|
// icons
|
||||||
import { Settings2 } from "lucide-react";
|
import { Settings2 } from "lucide-react";
|
||||||
// plane internal packages
|
// plane internal packages
|
||||||
|
import { getButtonStyling } from "@plane/propel/button";
|
||||||
import { TInstanceAuthenticationMethodKeys } from "@plane/types";
|
import { TInstanceAuthenticationMethodKeys } from "@plane/types";
|
||||||
import { ToggleSwitch, getButtonStyling } from "@plane/ui";
|
import { ToggleSwitch } from "@plane/ui";
|
||||||
import { cn } from "@plane/utils";
|
import { cn } from "@plane/utils";
|
||||||
// hooks
|
// hooks
|
||||||
import { useInstance } from "@/hooks/store";
|
import { useInstance } from "@/hooks/store";
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import Link from "next/link";
|
||||||
// headless ui
|
// headless ui
|
||||||
import { Dialog, Transition } from "@headlessui/react";
|
import { Dialog, Transition } from "@headlessui/react";
|
||||||
// ui
|
// ui
|
||||||
import { Button, getButtonStyling } from "@plane/ui";
|
import { Button, getButtonStyling } from "@plane/propel/button";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
isOpen: boolean;
|
isOpen: boolean;
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,8 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
// ui
|
// ui
|
||||||
import { Copy } from "lucide-react";
|
import { Copy } from "lucide-react";
|
||||||
import { Button, TOAST_TYPE, setToast } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
|
import { TOAST_TYPE, setToast } from "@plane/ui";
|
||||||
// icons
|
// icons
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import { Button } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
title: string;
|
title: string;
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import { FC } from "react";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import { useTheme } from "next-themes";
|
import { useTheme } from "next-themes";
|
||||||
import { Button } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
// assets
|
// assets
|
||||||
import { AuthHeader } from "@/app/(all)/(home)/auth-header";
|
import { AuthHeader } from "@/app/(all)/(home)/auth-header";
|
||||||
import InstanceFailureDarkImage from "@/public/instance/instance-failure-dark.svg";
|
import InstanceFailureDarkImage from "@/public/instance/instance-failure-dark.svg";
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
import { FC } from "react";
|
import { FC } from "react";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { Button } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
// assets
|
// assets
|
||||||
import PlaneTakeOffImage from "@/public/images/plane-takeoff.png";
|
import PlaneTakeOffImage from "@/public/images/plane-takeoff.png";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,9 @@ import { useSearchParams } from "next/navigation";
|
||||||
import { Eye, EyeOff } from "lucide-react";
|
import { Eye, EyeOff } from "lucide-react";
|
||||||
// plane internal packages
|
// plane internal packages
|
||||||
import { API_BASE_URL, E_PASSWORD_STRENGTH } from "@plane/constants";
|
import { API_BASE_URL, E_PASSWORD_STRENGTH } from "@plane/constants";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { AuthService } from "@plane/services";
|
import { AuthService } from "@plane/services";
|
||||||
import { Button, Checkbox, Input, PasswordStrengthIndicator, Spinner } from "@plane/ui";
|
import { Checkbox, Input, PasswordStrengthIndicator, Spinner } from "@plane/ui";
|
||||||
import { getPasswordStrength } from "@plane/utils";
|
import { getPasswordStrength } from "@plane/utils";
|
||||||
// components
|
// components
|
||||||
import { AuthHeader } from "@/app/(all)/(home)/auth-header";
|
import { AuthHeader } from "@/app/(all)/(home)/auth-header";
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import Image from "next/image";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { useTheme as nextUseTheme } from "next-themes";
|
import { useTheme as nextUseTheme } from "next-themes";
|
||||||
// ui
|
// ui
|
||||||
import { Button, getButtonStyling } from "@plane/ui";
|
import { Button, getButtonStyling } from "@plane/propel/button";
|
||||||
import { resolveGeneralTheme } from "@plane/utils";
|
import { resolveGeneralTheme } from "@plane/utils";
|
||||||
// hooks
|
// hooks
|
||||||
import { useTheme } from "@/hooks/store";
|
import { useTheme } from "@/hooks/store";
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
// ui
|
// ui
|
||||||
import { Button } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
|
|
||||||
const ErrorPage = () => {
|
const ErrorPage = () => {
|
||||||
const handleRetry = () => {
|
const handleRetry = () => {
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,10 @@ import { observer } from "mobx-react";
|
||||||
// icons
|
// icons
|
||||||
import { CircleAlert, XCircle } from "lucide-react";
|
import { CircleAlert, XCircle } from "lucide-react";
|
||||||
// types
|
// types
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { IEmailCheckData } from "@plane/types";
|
import { IEmailCheckData } from "@plane/types";
|
||||||
// ui
|
// ui
|
||||||
import { Button, Input, Spinner } from "@plane/ui";
|
import { Input, Spinner } from "@plane/ui";
|
||||||
// helpers
|
// helpers
|
||||||
import { cn } from "@plane/utils";
|
import { cn } from "@plane/utils";
|
||||||
import { checkEmailValidity } from "@/helpers/string.helper";
|
import { checkEmailValidity } from "@/helpers/string.helper";
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,9 @@ import { observer } from "mobx-react";
|
||||||
import { Eye, EyeOff, XCircle } from "lucide-react";
|
import { Eye, EyeOff, XCircle } from "lucide-react";
|
||||||
// plane imports
|
// plane imports
|
||||||
import { API_BASE_URL, E_PASSWORD_STRENGTH } from "@plane/constants";
|
import { API_BASE_URL, E_PASSWORD_STRENGTH } from "@plane/constants";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { AuthService } from "@plane/services";
|
import { AuthService } from "@plane/services";
|
||||||
import { Button, Input, Spinner, PasswordStrengthIndicator } from "@plane/ui";
|
import { Input, Spinner, PasswordStrengthIndicator } from "@plane/ui";
|
||||||
import { getPasswordStrength } from "@plane/utils";
|
import { getPasswordStrength } from "@plane/utils";
|
||||||
// types
|
// types
|
||||||
import { EAuthModes, EAuthSteps } from "@/types/auth";
|
import { EAuthModes, EAuthSteps } from "@/types/auth";
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,9 @@ import React, { useEffect, useState } from "react";
|
||||||
import { CircleCheck, XCircle } from "lucide-react";
|
import { CircleCheck, XCircle } from "lucide-react";
|
||||||
// plane imports
|
// plane imports
|
||||||
import { API_BASE_URL } from "@plane/constants";
|
import { API_BASE_URL } from "@plane/constants";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { AuthService } from "@plane/services";
|
import { AuthService } from "@plane/services";
|
||||||
import { Button, Input, Spinner } from "@plane/ui";
|
import { Input, Spinner } from "@plane/ui";
|
||||||
// hooks
|
// hooks
|
||||||
import useTimer from "@/hooks/use-timer";
|
import useTimer from "@/hooks/use-timer";
|
||||||
// types
|
// types
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@
|
||||||
import React, { useEffect, useState, useCallback } from "react";
|
import React, { useEffect, useState, useCallback } from "react";
|
||||||
// plane imports
|
// plane imports
|
||||||
import { TOOLBAR_ITEMS, type ToolbarMenuItem, type EditorRefApi } from "@plane/editor";
|
import { TOOLBAR_ITEMS, type ToolbarMenuItem, type EditorRefApi } from "@plane/editor";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { Tooltip } from "@plane/propel/tooltip";
|
import { Tooltip } from "@plane/propel/tooltip";
|
||||||
import { Button } from "@plane/ui";
|
|
||||||
import { cn } from "@plane/utils";
|
import { cn } from "@plane/utils";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
import { FC } from "react";
|
import { FC } from "react";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import { useTheme } from "next-themes";
|
import { useTheme } from "next-themes";
|
||||||
import { Button } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
// assets
|
// assets
|
||||||
import InstanceFailureDarkImage from "public/instance/instance-failure-dark.svg";
|
import InstanceFailureDarkImage from "public/instance/instance-failure-dark.svg";
|
||||||
import InstanceFailureImage from "public/instance/instance-failure.svg";
|
import InstanceFailureImage from "public/instance/instance-failure.svg";
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import { Placement } from "@popperjs/core";
|
||||||
import { usePopper } from "react-popper";
|
import { usePopper } from "react-popper";
|
||||||
import { Popover, Transition } from "@headlessui/react";
|
import { Popover, Transition } from "@headlessui/react";
|
||||||
// ui
|
// ui
|
||||||
import { Button } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,9 @@ import { LogOut } from "lucide-react";
|
||||||
import { Popover, Transition } from "@headlessui/react";
|
import { Popover, Transition } from "@headlessui/react";
|
||||||
// plane imports
|
// plane imports
|
||||||
import { API_BASE_URL } from "@plane/constants";
|
import { API_BASE_URL } from "@plane/constants";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { AuthService } from "@plane/services";
|
import { AuthService } from "@plane/services";
|
||||||
import { Avatar, Button } from "@plane/ui";
|
import { Avatar } from "@plane/ui";
|
||||||
import { getFileURL } from "@plane/utils";
|
import { getFileURL } from "@plane/utils";
|
||||||
// helpers
|
// helpers
|
||||||
import { queryParamGenerator } from "@/helpers/query-param-generator";
|
import { queryParamGenerator } from "@/helpers/query-param-generator";
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import { observer } from "mobx-react";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { usePathname } from "next/navigation";
|
import { usePathname } from "next/navigation";
|
||||||
// plane imports
|
// plane imports
|
||||||
import { Button } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
// components
|
// components
|
||||||
import { AddComment } from "@/components/issues/peek-overview/comment/add-comment";
|
import { AddComment } from "@/components/issues/peek-overview/comment/add-comment";
|
||||||
import { CommentCard } from "@/components/issues/peek-overview/comment/comment-detail-card";
|
import { CommentCard } from "@/components/issues/peek-overview/comment/comment-detail-card";
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,9 @@ import { PenSquare } from "lucide-react";
|
||||||
import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
|
import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
// ui
|
// ui
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { EIssuesStoreType } from "@plane/types";
|
import { EIssuesStoreType } from "@plane/types";
|
||||||
import { Breadcrumbs, Button, Header } from "@plane/ui";
|
import { Breadcrumbs, Header } from "@plane/ui";
|
||||||
// components
|
// components
|
||||||
import { BreadcrumbLink } from "@/components/common/breadcrumb-link";
|
import { BreadcrumbLink } from "@/components/common/breadcrumb-link";
|
||||||
import { CountChip } from "@/components/common/count-chip";
|
import { CountChip } from "@/components/common/count-chip";
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,8 @@ import { observer } from "mobx-react";
|
||||||
import { Home, Shapes } from "lucide-react";
|
import { Home, Shapes } from "lucide-react";
|
||||||
// plane imports
|
// plane imports
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
import { Breadcrumbs, Button, Header } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
|
import { Breadcrumbs, Header } from "@plane/ui";
|
||||||
// components
|
// components
|
||||||
import { BreadcrumbLink } from "@/components/common/breadcrumb-link";
|
import { BreadcrumbLink } from "@/components/common/breadcrumb-link";
|
||||||
// hooks
|
// hooks
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import { observer } from "mobx-react";
|
||||||
// plane imports
|
// plane imports
|
||||||
import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
|
import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
import { Button } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
// components
|
// components
|
||||||
import { PageHead } from "@/components/core/page-title";
|
import { PageHead } from "@/components/core/page-title";
|
||||||
import { DownloadActivityButton } from "@/components/profile/activity/download-button";
|
import { DownloadActivityButton } from "@/components/profile/activity/download-button";
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ import {
|
||||||
} from "@plane/constants";
|
} from "@plane/constants";
|
||||||
import { usePlatformOS } from "@plane/hooks";
|
import { usePlatformOS } from "@plane/hooks";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { ContrastIcon } from "@plane/propel/icons";
|
import { ContrastIcon } from "@plane/propel/icons";
|
||||||
import { Tooltip } from "@plane/propel/tooltip";
|
import { Tooltip } from "@plane/propel/tooltip";
|
||||||
import {
|
import {
|
||||||
|
|
@ -25,7 +26,7 @@ import {
|
||||||
IIssueDisplayProperties,
|
IIssueDisplayProperties,
|
||||||
EIssueLayoutTypes,
|
EIssueLayoutTypes,
|
||||||
} from "@plane/types";
|
} from "@plane/types";
|
||||||
import { Breadcrumbs, Button, BreadcrumbNavigationSearchDropdown, Header } from "@plane/ui";
|
import { Breadcrumbs, BreadcrumbNavigationSearchDropdown, Header } from "@plane/ui";
|
||||||
import { cn } from "@plane/utils";
|
import { cn } from "@plane/utils";
|
||||||
// components
|
// components
|
||||||
import { WorkItemsModal } from "@/components/analytics/work-items/modal";
|
import { WorkItemsModal } from "@/components/analytics/work-items/modal";
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,8 @@ import { useParams } from "next/navigation";
|
||||||
// ui
|
// ui
|
||||||
import { EProjectFeatureKey, EUserPermissions, EUserPermissionsLevel, CYCLE_TRACKER_ELEMENTS } from "@plane/constants";
|
import { EProjectFeatureKey, EUserPermissions, EUserPermissionsLevel, CYCLE_TRACKER_ELEMENTS } from "@plane/constants";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
import { Breadcrumbs, Button, Header } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
|
import { Breadcrumbs, Header } from "@plane/ui";
|
||||||
// components
|
// components
|
||||||
import { CyclesViewHeader } from "@/components/cycles/cycles-view-header";
|
import { CyclesViewHeader } from "@/components/cycles/cycles-view-header";
|
||||||
// hooks
|
// hooks
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@ import {
|
||||||
EProjectFeatureKey,
|
EProjectFeatureKey,
|
||||||
WORK_ITEM_TRACKER_ELEMENTS,
|
WORK_ITEM_TRACKER_ELEMENTS,
|
||||||
} from "@plane/constants";
|
} from "@plane/constants";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { DiceIcon } from "@plane/propel/icons";
|
import { DiceIcon } from "@plane/propel/icons";
|
||||||
import { Tooltip } from "@plane/propel/tooltip";
|
import { Tooltip } from "@plane/propel/tooltip";
|
||||||
import {
|
import {
|
||||||
|
|
@ -23,7 +24,7 @@ import {
|
||||||
IIssueDisplayProperties,
|
IIssueDisplayProperties,
|
||||||
EIssueLayoutTypes,
|
EIssueLayoutTypes,
|
||||||
} from "@plane/types";
|
} from "@plane/types";
|
||||||
import { Breadcrumbs, Button, Header, BreadcrumbNavigationSearchDropdown } from "@plane/ui";
|
import { Breadcrumbs, Header, BreadcrumbNavigationSearchDropdown } from "@plane/ui";
|
||||||
import { cn } from "@plane/utils";
|
import { cn } from "@plane/utils";
|
||||||
// components
|
// components
|
||||||
import { WorkItemsModal } from "@/components/analytics/work-items/modal";
|
import { WorkItemsModal } from "@/components/analytics/work-items/modal";
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,8 @@ import { useParams } from "next/navigation";
|
||||||
import { EProjectFeatureKey, EUserPermissions, EUserPermissionsLevel, MODULE_TRACKER_ELEMENTS } from "@plane/constants";
|
import { EProjectFeatureKey, EUserPermissions, EUserPermissionsLevel, MODULE_TRACKER_ELEMENTS } from "@plane/constants";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
// ui
|
// ui
|
||||||
import { Breadcrumbs, Button, Header } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
|
import { Breadcrumbs, Header } from "@plane/ui";
|
||||||
// components
|
// components
|
||||||
import { ModuleViewHeader } from "@/components/modules";
|
import { ModuleViewHeader } from "@/components/modules";
|
||||||
// hooks
|
// hooks
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,9 @@ import Link from "next/link";
|
||||||
import { useParams } from "next/navigation";
|
import { useParams } from "next/navigation";
|
||||||
import useSWR from "swr";
|
import useSWR from "swr";
|
||||||
// plane types
|
// plane types
|
||||||
|
import { getButtonStyling } from "@plane/propel/button";
|
||||||
import { EFileAssetType, TSearchEntityRequestPayload, TWebhookConnectionQueryParams } from "@plane/types";
|
import { EFileAssetType, TSearchEntityRequestPayload, TWebhookConnectionQueryParams } from "@plane/types";
|
||||||
// plane ui
|
// plane ui
|
||||||
import { getButtonStyling } from "@plane/ui";
|
|
||||||
// plane utils
|
// plane utils
|
||||||
import { cn } from "@plane/utils";
|
import { cn } from "@plane/utils";
|
||||||
// components
|
// components
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,10 @@ import {
|
||||||
PROJECT_TRACKER_ELEMENTS,
|
PROJECT_TRACKER_ELEMENTS,
|
||||||
} from "@plane/constants";
|
} from "@plane/constants";
|
||||||
// plane types
|
// plane types
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { TPage } from "@plane/types";
|
import { TPage } from "@plane/types";
|
||||||
// plane ui
|
// plane ui
|
||||||
import { Breadcrumbs, Button, Header, setToast, TOAST_TYPE } from "@plane/ui";
|
import { Breadcrumbs, Header, setToast, TOAST_TYPE } from "@plane/ui";
|
||||||
// helpers
|
// helpers
|
||||||
import { captureError, captureSuccess } from "@/helpers/event-tracker.helper";
|
import { captureError, captureSuccess } from "@/helpers/event-tracker.helper";
|
||||||
// hooks
|
// hooks
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@ import {
|
||||||
WORK_ITEM_TRACKER_ELEMENTS,
|
WORK_ITEM_TRACKER_ELEMENTS,
|
||||||
} from "@plane/constants";
|
} from "@plane/constants";
|
||||||
// types
|
// types
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { Tooltip } from "@plane/propel/tooltip";
|
import { Tooltip } from "@plane/propel/tooltip";
|
||||||
import {
|
import {
|
||||||
EIssuesStoreType,
|
EIssuesStoreType,
|
||||||
|
|
@ -24,7 +25,7 @@ import {
|
||||||
EIssueLayoutTypes,
|
EIssueLayoutTypes,
|
||||||
} from "@plane/types";
|
} from "@plane/types";
|
||||||
// ui
|
// ui
|
||||||
import { Breadcrumbs, Button, Header, BreadcrumbNavigationSearchDropdown } from "@plane/ui";
|
import { Breadcrumbs, Header, BreadcrumbNavigationSearchDropdown } from "@plane/ui";
|
||||||
// components
|
// components
|
||||||
import { SwitcherIcon, SwitcherLabel } from "@/components/common/switcher-label";
|
import { SwitcherIcon, SwitcherLabel } from "@/components/common/switcher-label";
|
||||||
import { DisplayFiltersSelection, FiltersDropdown, LayoutSelection } from "@/components/issues/issue-layouts/filters";
|
import { DisplayFiltersSelection, FiltersDropdown, LayoutSelection } from "@/components/issues/issue-layouts/filters";
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,8 @@ import { observer } from "mobx-react";
|
||||||
import { useParams } from "next/navigation";
|
import { useParams } from "next/navigation";
|
||||||
// ui
|
// ui
|
||||||
import { EProjectFeatureKey, PROJECT_VIEW_TRACKER_ELEMENTS } from "@plane/constants";
|
import { EProjectFeatureKey, PROJECT_VIEW_TRACKER_ELEMENTS } from "@plane/constants";
|
||||||
import { Breadcrumbs, Button, Header } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
|
import { Breadcrumbs, Header } from "@plane/ui";
|
||||||
// components
|
// components
|
||||||
import { ViewListHeader } from "@/components/views/view-list-header";
|
import { ViewListHeader } from "@/components/views/view-list-header";
|
||||||
// hooks
|
// hooks
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,9 @@
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import { useParams } from "next/navigation";
|
import { useParams } from "next/navigation";
|
||||||
// plane imports
|
// plane imports
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { RecentStickyIcon } from "@plane/propel/icons";
|
import { RecentStickyIcon } from "@plane/propel/icons";
|
||||||
import { Breadcrumbs, Button, Header } from "@plane/ui";
|
import { Breadcrumbs, Header } from "@plane/ui";
|
||||||
// components
|
// components
|
||||||
import { BreadcrumbLink } from "@/components/common/breadcrumb-link";
|
import { BreadcrumbLink } from "@/components/common/breadcrumb-link";
|
||||||
import { StickySearch } from "@/components/stickies/modal/search";
|
import { StickySearch } from "@/components/stickies/modal/search";
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ import {
|
||||||
DEFAULT_GLOBAL_VIEWS_LIST,
|
DEFAULT_GLOBAL_VIEWS_LIST,
|
||||||
} from "@plane/constants";
|
} from "@plane/constants";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import {
|
import {
|
||||||
EIssuesStoreType,
|
EIssuesStoreType,
|
||||||
IIssueDisplayFilterOptions,
|
IIssueDisplayFilterOptions,
|
||||||
|
|
@ -19,7 +20,7 @@ import {
|
||||||
ICustomSearchSelectOption,
|
ICustomSearchSelectOption,
|
||||||
EIssueLayoutTypes,
|
EIssueLayoutTypes,
|
||||||
} from "@plane/types";
|
} from "@plane/types";
|
||||||
import { Breadcrumbs, Button, Header, BreadcrumbNavigationSearchDropdown } from "@plane/ui";
|
import { Breadcrumbs, Header, BreadcrumbNavigationSearchDropdown } from "@plane/ui";
|
||||||
// components
|
// components
|
||||||
import { BreadcrumbLink } from "@/components/common/breadcrumb-link";
|
import { BreadcrumbLink } from "@/components/common/breadcrumb-link";
|
||||||
import { SwitcherLabel } from "@/components/common/switcher-label";
|
import { SwitcherLabel } from "@/components/common/switcher-label";
|
||||||
|
|
|
||||||
|
|
@ -12,9 +12,10 @@ import {
|
||||||
MEMBER_TRACKER_EVENTS,
|
MEMBER_TRACKER_EVENTS,
|
||||||
} from "@plane/constants";
|
} from "@plane/constants";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { IWorkspaceBulkInviteFormData } from "@plane/types";
|
import { IWorkspaceBulkInviteFormData } from "@plane/types";
|
||||||
// ui
|
// ui
|
||||||
import { Button, TOAST_TYPE, setToast } from "@plane/ui";
|
import { TOAST_TYPE, setToast } from "@plane/ui";
|
||||||
import { cn } from "@plane/utils";
|
import { cn } from "@plane/utils";
|
||||||
// components
|
// components
|
||||||
import { NotAuthorizedView } from "@/components/auth-screens/not-authorized-view";
|
import { NotAuthorizedView } from "@/components/auth-screens/not-authorized-view";
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import { useState } from "react";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
// ui
|
// ui
|
||||||
import { Button } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
// components
|
// components
|
||||||
import { PageHead } from "@/components/core/page-title";
|
import { PageHead } from "@/components/core/page-title";
|
||||||
import { DetailedEmptyState } from "@/components/empty-state/detailed-empty-state-root";
|
import { DetailedEmptyState } from "@/components/empty-state/detailed-empty-state-root";
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,8 @@ import { Eye, EyeOff } from "lucide-react";
|
||||||
// plane imports
|
// plane imports
|
||||||
import { E_PASSWORD_STRENGTH } from "@plane/constants";
|
import { E_PASSWORD_STRENGTH } from "@plane/constants";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
import { Button, Input, PasswordStrengthIndicator, TOAST_TYPE, setToast } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
|
import { Input, PasswordStrengthIndicator, TOAST_TYPE, setToast } from "@plane/ui";
|
||||||
import { getPasswordStrength } from "@plane/utils";
|
import { getPasswordStrength } from "@plane/utils";
|
||||||
// components
|
// components
|
||||||
import { PageHead } from "@/components/core/page-title";
|
import { PageHead } from "@/components/core/page-title";
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import Image from "next/image";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { useTheme } from "next-themes";
|
import { useTheme } from "next-themes";
|
||||||
import { PROJECT_TRACKER_ELEMENTS } from "@plane/constants";
|
import { PROJECT_TRACKER_ELEMENTS } from "@plane/constants";
|
||||||
import { Button, getButtonStyling } from "@plane/ui";
|
import { Button, getButtonStyling } from "@plane/propel/button";
|
||||||
import { cn } from "@plane/utils";
|
import { cn } from "@plane/utils";
|
||||||
import { useCommandPalette } from "@/hooks/store/use-command-palette";
|
import { useCommandPalette } from "@/hooks/store/use-command-palette";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,9 @@ import Image from "next/image";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
// plane imports
|
// plane imports
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
|
import { Button, getButtonStyling } from "@plane/propel/button";
|
||||||
import { PlaneLogo } from "@plane/propel/icons";
|
import { PlaneLogo } from "@plane/propel/icons";
|
||||||
import { IWorkspace } from "@plane/types";
|
import { IWorkspace } from "@plane/types";
|
||||||
import { Button, getButtonStyling } from "@plane/ui";
|
|
||||||
// components
|
// components
|
||||||
import { CreateWorkspaceForm } from "@/components/workspace/create-workspace-form";
|
import { CreateWorkspaceForm } from "@/components/workspace/create-workspace-form";
|
||||||
// hooks
|
// hooks
|
||||||
|
|
|
||||||
|
|
@ -10,10 +10,11 @@ import { CheckCircle2 } from "lucide-react";
|
||||||
import { ROLE, MEMBER_TRACKER_EVENTS, MEMBER_TRACKER_ELEMENTS, GROUP_WORKSPACE_TRACKER_EVENT } from "@plane/constants";
|
import { ROLE, MEMBER_TRACKER_EVENTS, MEMBER_TRACKER_ELEMENTS, GROUP_WORKSPACE_TRACKER_EVENT } from "@plane/constants";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
// types
|
// types
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { PlaneLogo } from "@plane/propel/icons";
|
import { PlaneLogo } from "@plane/propel/icons";
|
||||||
import type { IWorkspaceMemberInvitation } from "@plane/types";
|
import type { IWorkspaceMemberInvitation } from "@plane/types";
|
||||||
// ui
|
// ui
|
||||||
import { Button, TOAST_TYPE, setToast } from "@plane/ui";
|
import { TOAST_TYPE, setToast } from "@plane/ui";
|
||||||
import { truncateText } from "@plane/utils";
|
import { truncateText } from "@plane/utils";
|
||||||
// components
|
// components
|
||||||
import { EmptyState } from "@/components/common/empty-state";
|
import { EmptyState } from "@/components/common/empty-state";
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import { useState } from "react";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
// plane imports
|
// plane imports
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
import { Button } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
// components
|
// components
|
||||||
import { PageHead } from "@/components/core/page-title";
|
import { PageHead } from "@/components/core/page-title";
|
||||||
import { DetailedEmptyState } from "@/components/empty-state/detailed-empty-state-root";
|
import { DetailedEmptyState } from "@/components/empty-state/detailed-empty-state-root";
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,8 @@ import { Eye, EyeOff } from "lucide-react";
|
||||||
// plane imports
|
// plane imports
|
||||||
import { E_PASSWORD_STRENGTH } from "@plane/constants";
|
import { E_PASSWORD_STRENGTH } from "@plane/constants";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
import { Button, Input, PasswordStrengthIndicator, TOAST_TYPE, setToast } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
|
import { Input, PasswordStrengthIndicator, TOAST_TYPE, setToast } from "@plane/ui";
|
||||||
// components
|
// components
|
||||||
import { getPasswordStrength } from "@plane/utils";
|
import { getPasswordStrength } from "@plane/utils";
|
||||||
import { PageHead } from "@/components/core/page-title";
|
import { PageHead } from "@/components/core/page-title";
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import { useTheme } from "next-themes";
|
import { useTheme } from "next-themes";
|
||||||
// layouts
|
// layouts
|
||||||
import { Button } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
import { useAppRouter } from "@/hooks/use-app-router";
|
import { useAppRouter } from "@/hooks/use-app-router";
|
||||||
import DefaultLayout from "@/layouts/default-layout";
|
import DefaultLayout from "@/layouts/default-layout";
|
||||||
// images
|
// images
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import { Metadata } from "next";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
// ui
|
// ui
|
||||||
import { Button } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
// images
|
// images
|
||||||
import Image404 from "@/public/404.svg";
|
import Image404 from "@/public/404.svg";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,8 @@ import { AlertOctagon, BarChart4, CircleDashed, Folder, Microscope, Search } fro
|
||||||
// plane imports
|
// plane imports
|
||||||
import { MARKETING_PRICING_PAGE_LINK } from "@plane/constants";
|
import { MARKETING_PRICING_PAGE_LINK } from "@plane/constants";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
import { ContentWrapper, getButtonStyling } from "@plane/ui";
|
import { getButtonStyling } from "@plane/propel/button";
|
||||||
|
import { ContentWrapper } from "@plane/ui";
|
||||||
import { cn } from "@plane/utils";
|
import { cn } from "@plane/utils";
|
||||||
// components
|
// components
|
||||||
import { ProIcon } from "@/components/common/pro-icon";
|
import { ProIcon } from "@/components/common/pro-icon";
|
||||||
|
|
|
||||||
|
|
@ -14,9 +14,10 @@ import {
|
||||||
EProjectFeatureKey,
|
EProjectFeatureKey,
|
||||||
} from "@plane/constants";
|
} from "@plane/constants";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { Tooltip } from "@plane/propel/tooltip";
|
import { Tooltip } from "@plane/propel/tooltip";
|
||||||
import { EIssuesStoreType } from "@plane/types";
|
import { EIssuesStoreType } from "@plane/types";
|
||||||
import { Breadcrumbs, Button, Header } from "@plane/ui";
|
import { Breadcrumbs, Header } from "@plane/ui";
|
||||||
// components
|
// components
|
||||||
import { CountChip } from "@/components/common/count-chip";
|
import { CountChip } from "@/components/common/count-chip";
|
||||||
// constants
|
// constants
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
// plane imports
|
// plane imports
|
||||||
import { getButtonStyling } from "@plane/ui";
|
import { getButtonStyling } from "@plane/propel/button";
|
||||||
import { cn } from "@plane/utils";
|
import { cn } from "@plane/utils";
|
||||||
// components
|
// components
|
||||||
import { ProIcon } from "@/components/common/pro-icon";
|
import { ProIcon } from "@/components/common/pro-icon";
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,8 @@ import { RefreshCcw } from "lucide-react";
|
||||||
// ui
|
// ui
|
||||||
import { EProjectFeatureKey, EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
|
import { EProjectFeatureKey, EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
import { Breadcrumbs, Button, Header } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
|
import { Breadcrumbs, Header } from "@plane/ui";
|
||||||
// components
|
// components
|
||||||
import { InboxIssueCreateModalRoot } from "@/components/inbox/modals/create-modal";
|
import { InboxIssueCreateModalRoot } from "@/components/inbox/modals/create-modal";
|
||||||
// hooks
|
// hooks
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,9 @@ import {
|
||||||
WORKSPACE_SETTINGS_TRACKER_EVENTS,
|
WORKSPACE_SETTINGS_TRACKER_EVENTS,
|
||||||
} from "@plane/constants";
|
} from "@plane/constants";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
|
import { getButtonStyling } from "@plane/propel/button";
|
||||||
import { EProductSubscriptionEnum, TBillingFrequency } from "@plane/types";
|
import { EProductSubscriptionEnum, TBillingFrequency } from "@plane/types";
|
||||||
import { getButtonStyling, getUpgradeButtonStyle } from "@plane/ui";
|
import { getUpgradeButtonStyle } from "@plane/ui";
|
||||||
import { cn, getSubscriptionName } from "@plane/utils";
|
import { cn, getSubscriptionName } from "@plane/utils";
|
||||||
// components
|
// components
|
||||||
import { DiscountInfo } from "@/components/license/modal/card/discount-info";
|
import { DiscountInfo } from "@/components/license/modal/card/discount-info";
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,10 @@ import { ChevronDown, ChevronUp } from "lucide-react";
|
||||||
// types
|
// types
|
||||||
import { WORKSPACE_TRACKER_ELEMENTS } from "@plane/constants";
|
import { WORKSPACE_TRACKER_ELEMENTS } from "@plane/constants";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { IWorkspace } from "@plane/types";
|
import { IWorkspace } from "@plane/types";
|
||||||
// ui
|
// ui
|
||||||
import { Button, Collapsible } from "@plane/ui";
|
import { Collapsible } from "@plane/ui";
|
||||||
import { DeleteWorkspaceModal } from "./delete-workspace-modal";
|
import { DeleteWorkspaceModal } from "./delete-workspace-modal";
|
||||||
// components
|
// components
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@ import { useState } from "react";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
// ui
|
// ui
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { Tooltip } from "@plane/propel/tooltip";
|
import { Tooltip } from "@plane/propel/tooltip";
|
||||||
import { Button } from "@plane/ui";
|
|
||||||
// hooks
|
// hooks
|
||||||
import { usePlatformOS } from "@/hooks/use-platform-os";
|
import { usePlatformOS } from "@/hooks/use-platform-os";
|
||||||
import packageJson from "package.json";
|
import packageJson from "package.json";
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,9 @@ import { observer } from "mobx-react";
|
||||||
import { CircleAlert, XCircle } from "lucide-react";
|
import { CircleAlert, XCircle } from "lucide-react";
|
||||||
// plane imports
|
// plane imports
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { IEmailCheckData } from "@plane/types";
|
import { IEmailCheckData } from "@plane/types";
|
||||||
import { Button, Input, Spinner } from "@plane/ui";
|
import { Input, Spinner } from "@plane/ui";
|
||||||
import { cn, checkEmailValidity } from "@plane/utils";
|
import { cn, checkEmailValidity } from "@plane/utils";
|
||||||
// helpers
|
// helpers
|
||||||
type TAuthEmailForm = {
|
type TAuthEmailForm = {
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,8 @@ import { CircleCheck } from "lucide-react";
|
||||||
// plane imports
|
// plane imports
|
||||||
import { AUTH_TRACKER_EVENTS } from "@plane/constants";
|
import { AUTH_TRACKER_EVENTS } from "@plane/constants";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
import { Button, Input, TOAST_TYPE, getButtonStyling, setToast } from "@plane/ui";
|
import { Button, getButtonStyling } from "@plane/propel/button";
|
||||||
|
import { Input, TOAST_TYPE, setToast } from "@plane/ui";
|
||||||
import { cn, checkEmailValidity } from "@plane/utils";
|
import { cn, checkEmailValidity } from "@plane/utils";
|
||||||
// helpers
|
// helpers
|
||||||
import { captureError, captureSuccess } from "@/helpers/event-tracker.helper";
|
import { captureError, captureSuccess } from "@/helpers/event-tracker.helper";
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,8 @@ import { Eye, EyeOff, Info, X, XCircle } from "lucide-react";
|
||||||
// plane imports
|
// plane imports
|
||||||
import { API_BASE_URL, E_PASSWORD_STRENGTH, AUTH_TRACKER_EVENTS, AUTH_TRACKER_ELEMENTS } from "@plane/constants";
|
import { API_BASE_URL, E_PASSWORD_STRENGTH, AUTH_TRACKER_EVENTS, AUTH_TRACKER_ELEMENTS } from "@plane/constants";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
import { Button, Input, PasswordStrengthIndicator, Spinner } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
|
import { Input, PasswordStrengthIndicator, Spinner } from "@plane/ui";
|
||||||
import { getPasswordStrength } from "@plane/utils";
|
import { getPasswordStrength } from "@plane/utils";
|
||||||
// components
|
// components
|
||||||
import { ForgotPasswordPopover } from "@/components/account/auth-forms/forgot-password-popover";
|
import { ForgotPasswordPopover } from "@/components/account/auth-forms/forgot-password-popover";
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,8 @@ import { Eye, EyeOff } from "lucide-react";
|
||||||
// ui
|
// ui
|
||||||
import { API_BASE_URL, E_PASSWORD_STRENGTH } from "@plane/constants";
|
import { API_BASE_URL, E_PASSWORD_STRENGTH } from "@plane/constants";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
import { Button, Input, PasswordStrengthIndicator } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
|
import { Input, PasswordStrengthIndicator } from "@plane/ui";
|
||||||
// components
|
// components
|
||||||
import { getPasswordStrength } from "@plane/utils";
|
import { getPasswordStrength } from "@plane/utils";
|
||||||
// helpers
|
// helpers
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,8 @@ import { Eye, EyeOff } from "lucide-react";
|
||||||
// plane imports
|
// plane imports
|
||||||
import { AUTH_TRACKER_ELEMENTS, AUTH_TRACKER_EVENTS, E_PASSWORD_STRENGTH } from "@plane/constants";
|
import { AUTH_TRACKER_ELEMENTS, AUTH_TRACKER_EVENTS, E_PASSWORD_STRENGTH } from "@plane/constants";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
import { Button, Input, PasswordStrengthIndicator, TOAST_TYPE, setToast } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
|
import { Input, PasswordStrengthIndicator, TOAST_TYPE, setToast } from "@plane/ui";
|
||||||
// components
|
// components
|
||||||
import { getPasswordStrength } from "@plane/utils";
|
import { getPasswordStrength } from "@plane/utils";
|
||||||
// helpers
|
// helpers
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,8 @@ import React, { useEffect, useState } from "react";
|
||||||
import { CircleCheck, XCircle } from "lucide-react";
|
import { CircleCheck, XCircle } from "lucide-react";
|
||||||
import { API_BASE_URL, AUTH_TRACKER_ELEMENTS, AUTH_TRACKER_EVENTS } from "@plane/constants";
|
import { API_BASE_URL, AUTH_TRACKER_ELEMENTS, AUTH_TRACKER_EVENTS } from "@plane/constants";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
import { Button, Input, Spinner } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
|
import { Input, Spinner } from "@plane/ui";
|
||||||
// constants
|
// constants
|
||||||
// helpers
|
// helpers
|
||||||
import { EAuthModes } from "@/helpers/authentication.helper";
|
import { EAuthModes } from "@/helpers/authentication.helper";
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,8 @@ import { Dialog, Transition } from "@headlessui/react";
|
||||||
import { PROFILE_SETTINGS_TRACKER_EVENTS } from "@plane/constants";
|
import { PROFILE_SETTINGS_TRACKER_EVENTS } from "@plane/constants";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
// ui
|
// ui
|
||||||
import { Button, TOAST_TYPE, setToast } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
|
import { TOAST_TYPE, setToast } from "@plane/ui";
|
||||||
// hooks
|
// hooks
|
||||||
import { captureError, captureSuccess } from "@/helpers/event-tracker.helper";
|
import { captureError, captureSuccess } from "@/helpers/event-tracker.helper";
|
||||||
import { useUser } from "@/hooks/store/user";
|
import { useUser } from "@/hooks/store/user";
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
import { ColumnDef, Row, Table } from "@tanstack/react-table";
|
import { ColumnDef, Row, Table } from "@tanstack/react-table";
|
||||||
import { Download } from "lucide-react";
|
import { Download } from "lucide-react";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { AnalyticsTableDataMap, TAnalyticsTabsBase } from "@plane/types";
|
import { AnalyticsTableDataMap, TAnalyticsTabsBase } from "@plane/types";
|
||||||
import { Button } from "@plane/ui";
|
|
||||||
import { DataTable } from "./data-table";
|
import { DataTable } from "./data-table";
|
||||||
import { TableLoader } from "./loader";
|
import { TableLoader } from "./loader";
|
||||||
interface InsightTableProps<T extends Exclude<TAnalyticsTabsBase, "overview">> {
|
interface InsightTableProps<T extends Exclude<TAnalyticsTabsBase, "overview">> {
|
||||||
|
|
|
||||||
|
|
@ -14,10 +14,10 @@ import {
|
||||||
EChartModels,
|
EChartModels,
|
||||||
} from "@plane/constants";
|
} from "@plane/constants";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { BarChart } from "@plane/propel/charts/bar-chart";
|
import { BarChart } from "@plane/propel/charts/bar-chart";
|
||||||
import { TBarItem, TChart, TChartDatum, ChartXAxisProperty, ChartYAxisMetric } from "@plane/types";
|
import { TBarItem, TChart, TChartDatum, ChartXAxisProperty, ChartYAxisMetric } from "@plane/types";
|
||||||
// plane web components
|
// plane web components
|
||||||
import { Button } from "@plane/ui";
|
|
||||||
import { generateExtendedColors, parseChartData } from "@/components/chart/utils";
|
import { generateExtendedColors, parseChartData } from "@/components/chart/utils";
|
||||||
// hooks
|
// hooks
|
||||||
import { useAnalytics } from "@/hooks/store/use-analytics";
|
import { useAnalytics } from "@/hooks/store/use-analytics";
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
// ui
|
// ui
|
||||||
import { Button } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
// assets
|
// assets
|
||||||
import emptyApiTokens from "@/public/empty-state/api-token.svg";
|
import emptyApiTokens from "@/public/empty-state/api-token.svg";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,10 @@ import { Controller, useForm } from "react-hook-form";
|
||||||
import { Calendar } from "lucide-react";
|
import { Calendar } from "lucide-react";
|
||||||
// types
|
// types
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { IApiToken } from "@plane/types";
|
import { IApiToken } from "@plane/types";
|
||||||
// ui
|
// ui
|
||||||
import { Button, CustomSelect, Input, TextArea, ToggleSwitch, TOAST_TYPE, setToast } from "@plane/ui";
|
import { CustomSelect, Input, TextArea, ToggleSwitch, TOAST_TYPE, setToast } from "@plane/ui";
|
||||||
import { cn, renderFormattedDate, renderFormattedTime } from "@plane/utils";
|
import { cn, renderFormattedDate, renderFormattedTime } from "@plane/utils";
|
||||||
// components
|
// components
|
||||||
import { DateDropdown } from "@/components/dropdowns/date";
|
import { DateDropdown } from "@/components/dropdowns/date";
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,11 @@
|
||||||
|
|
||||||
import { Copy } from "lucide-react";
|
import { Copy } from "lucide-react";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { Tooltip } from "@plane/propel/tooltip";
|
import { Tooltip } from "@plane/propel/tooltip";
|
||||||
import { IApiToken } from "@plane/types";
|
import { IApiToken } from "@plane/types";
|
||||||
// ui
|
// ui
|
||||||
import { Button, TOAST_TYPE, setToast } from "@plane/ui";
|
import { TOAST_TYPE, setToast } from "@plane/ui";
|
||||||
import { renderFormattedDate, renderFormattedTime, copyTextToClipboard } from "@plane/utils";
|
import { renderFormattedDate, renderFormattedTime, copyTextToClipboard } from "@plane/utils";
|
||||||
// helpers
|
// helpers
|
||||||
// types
|
// types
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import Image from "next/image";
|
||||||
import { useParams } from "next/navigation";
|
import { useParams } from "next/navigation";
|
||||||
import { ClipboardList } from "lucide-react";
|
import { ClipboardList } from "lucide-react";
|
||||||
// plane imports
|
// plane imports
|
||||||
import { Button } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
// hooks
|
// hooks
|
||||||
import { useProject } from "@/hooks/store/use-project";
|
import { useProject } from "@/hooks/store/use-project";
|
||||||
import { useUserPermissions } from "@/hooks/store/user";
|
import { useUserPermissions } from "@/hooks/store/user";
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
// ui
|
// ui
|
||||||
import { Button } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
// layouts
|
// layouts
|
||||||
import DefaultLayout from "@/layouts/default-layout";
|
import DefaultLayout from "@/layouts/default-layout";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,10 @@ import { useParams } from "next/navigation";
|
||||||
import { Controller, useForm } from "react-hook-form";
|
import { Controller, useForm } from "react-hook-form";
|
||||||
// headless ui
|
// headless ui
|
||||||
import { Dialog, Transition } from "@headlessui/react";
|
import { Dialog, Transition } from "@headlessui/react";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import type { IProject } from "@plane/types";
|
import type { IProject } from "@plane/types";
|
||||||
// ui
|
// ui
|
||||||
import { Button, Input } from "@plane/ui";
|
import { Input } from "@plane/ui";
|
||||||
// types
|
// types
|
||||||
|
|
||||||
// types
|
// types
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import React from "react";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
|
|
||||||
// ui
|
// ui
|
||||||
import { Button } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
title: string;
|
title: string;
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import React, { useState } from "react";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
|
|
||||||
// ui
|
// ui
|
||||||
import { Button } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
title: string;
|
title: string;
|
||||||
|
|
|
||||||
|
|
@ -4,19 +4,10 @@ import { ChevronLeft, ChevronRight, Copy } from "lucide-react";
|
||||||
// plane imports
|
// plane imports
|
||||||
import type { EditorRefApi } from "@plane/editor";
|
import type { EditorRefApi } from "@plane/editor";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
|
import { Button, getButtonStyling } from "@plane/propel/button";
|
||||||
import { Tooltip } from "@plane/propel/tooltip";
|
import { Tooltip } from "@plane/propel/tooltip";
|
||||||
import { TDescriptionVersion } from "@plane/types";
|
import { TDescriptionVersion } from "@plane/types";
|
||||||
import {
|
import { Avatar, EModalPosition, EModalWidth, Loader, ModalCore, setToast, TOAST_TYPE } from "@plane/ui";
|
||||||
Avatar,
|
|
||||||
Button,
|
|
||||||
EModalPosition,
|
|
||||||
EModalWidth,
|
|
||||||
getButtonStyling,
|
|
||||||
Loader,
|
|
||||||
ModalCore,
|
|
||||||
setToast,
|
|
||||||
TOAST_TYPE,
|
|
||||||
} from "@plane/ui";
|
|
||||||
import { calculateTimeAgo, cn, copyTextToClipboard, getFileURL } from "@plane/utils";
|
import { calculateTimeAgo, cn, copyTextToClipboard, getFileURL } from "@plane/utils";
|
||||||
// components
|
// components
|
||||||
import { RichTextEditor } from "@/components/editor/rich-text";
|
import { RichTextEditor } from "@/components/editor/rich-text";
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ import { Controller, useForm } from "react-hook-form";
|
||||||
import { X } from "lucide-react";
|
import { X } from "lucide-react";
|
||||||
import { Dialog, Transition } from "@headlessui/react";
|
import { Dialog, Transition } from "@headlessui/react";
|
||||||
|
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { Calendar } from "@plane/propel/calendar";
|
import { Calendar } from "@plane/propel/calendar";
|
||||||
import { Button } from "@plane/ui";
|
|
||||||
|
|
||||||
import { renderFormattedPayloadDate, renderFormattedDate, getDate } from "@plane/utils";
|
import { renderFormattedPayloadDate, renderFormattedDate, getDate } from "@plane/utils";
|
||||||
import { DateFilterSelect } from "./date-filter-select";
|
import { DateFilterSelect } from "./date-filter-select";
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,9 @@ import { Tab, Popover } from "@headlessui/react";
|
||||||
// plane imports
|
// plane imports
|
||||||
import { ACCEPTED_COVER_IMAGE_MIME_TYPES_FOR_REACT_DROPZONE, MAX_FILE_SIZE } from "@plane/constants";
|
import { ACCEPTED_COVER_IMAGE_MIME_TYPES_FOR_REACT_DROPZONE, MAX_FILE_SIZE } from "@plane/constants";
|
||||||
import { useOutsideClickDetector } from "@plane/hooks";
|
import { useOutsideClickDetector } from "@plane/hooks";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { EFileAssetType } from "@plane/types";
|
import { EFileAssetType } from "@plane/types";
|
||||||
import { Button, Input, Loader, TOAST_TYPE, setToast } from "@plane/ui";
|
import { Input, Loader, TOAST_TYPE, setToast } from "@plane/ui";
|
||||||
// helpers
|
// helpers
|
||||||
import { getFileURL } from "@plane/utils";
|
import { getFileURL } from "@plane/utils";
|
||||||
// hooks
|
// hooks
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,9 @@ import { Search } from "lucide-react";
|
||||||
import { Combobox, Dialog, Transition } from "@headlessui/react";
|
import { Combobox, Dialog, Transition } from "@headlessui/react";
|
||||||
// plane imports
|
// plane imports
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { EIssuesStoreType, ISearchIssueResponse, IUser } from "@plane/types";
|
import { EIssuesStoreType, ISearchIssueResponse, IUser } from "@plane/types";
|
||||||
import { Button, Loader, TOAST_TYPE, setToast } from "@plane/ui";
|
import { Loader, TOAST_TYPE, setToast } from "@plane/ui";
|
||||||
// components
|
// components
|
||||||
import { SimpleEmptyState } from "@/components/empty-state/simple-empty-state-root";
|
import { SimpleEmptyState } from "@/components/empty-state/simple-empty-state-root";
|
||||||
// hooks
|
// hooks
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,11 @@ import { Combobox, Dialog, Transition } from "@headlessui/react";
|
||||||
// i18n
|
// i18n
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
// types
|
// types
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { Tooltip } from "@plane/propel/tooltip";
|
import { Tooltip } from "@plane/propel/tooltip";
|
||||||
import { ISearchIssueResponse, TProjectIssuesSearchParams } from "@plane/types";
|
import { ISearchIssueResponse, TProjectIssuesSearchParams } from "@plane/types";
|
||||||
// ui
|
// ui
|
||||||
import { Button, Loader, ToggleSwitch, TOAST_TYPE, setToast } from "@plane/ui";
|
import { Loader, ToggleSwitch, TOAST_TYPE, setToast } from "@plane/ui";
|
||||||
import { generateWorkItemLink, getTabIndex } from "@plane/utils";
|
import { generateWorkItemLink, getTabIndex } from "@plane/utils";
|
||||||
// helpers
|
// helpers
|
||||||
// hooks
|
// hooks
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,8 @@ import { AlertCircle } from "lucide-react";
|
||||||
import { Popover, Transition } from "@headlessui/react";
|
import { Popover, Transition } from "@headlessui/react";
|
||||||
// plane imports
|
// plane imports
|
||||||
import type { EditorRefApi } from "@plane/editor";
|
import type { EditorRefApi } from "@plane/editor";
|
||||||
import { Button, Input, TOAST_TYPE, setToast } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
|
import { Input, TOAST_TYPE, setToast } from "@plane/ui";
|
||||||
// components
|
// components
|
||||||
import { RichTextEditor } from "@/components/editor/rich-text";
|
import { RichTextEditor } from "@/components/editor/rich-text";
|
||||||
// services
|
// services
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,9 @@ import { UserCircle2 } from "lucide-react";
|
||||||
import { Transition, Dialog } from "@headlessui/react";
|
import { Transition, Dialog } from "@headlessui/react";
|
||||||
// plane imports
|
// plane imports
|
||||||
import { ACCEPTED_AVATAR_IMAGE_MIME_TYPES_FOR_REACT_DROPZONE, MAX_FILE_SIZE } from "@plane/constants";
|
import { ACCEPTED_AVATAR_IMAGE_MIME_TYPES_FOR_REACT_DROPZONE, MAX_FILE_SIZE } from "@plane/constants";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { EFileAssetType } from "@plane/types";
|
import { EFileAssetType } from "@plane/types";
|
||||||
import { Button, TOAST_TYPE, setToast } from "@plane/ui";
|
import { TOAST_TYPE, setToast } from "@plane/ui";
|
||||||
import { getAssetIdFromUrl, getFileURL, checkURLValidity } from "@plane/utils";
|
import { getAssetIdFromUrl, getFileURL, checkURLValidity } from "@plane/utils";
|
||||||
// helpers
|
// helpers
|
||||||
// services
|
// services
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,9 @@ import { UserCircle2 } from "lucide-react";
|
||||||
import { Transition, Dialog } from "@headlessui/react";
|
import { Transition, Dialog } from "@headlessui/react";
|
||||||
// plane imports
|
// plane imports
|
||||||
import { ACCEPTED_AVATAR_IMAGE_MIME_TYPES_FOR_REACT_DROPZONE, MAX_FILE_SIZE } from "@plane/constants";
|
import { ACCEPTED_AVATAR_IMAGE_MIME_TYPES_FOR_REACT_DROPZONE, MAX_FILE_SIZE } from "@plane/constants";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { EFileAssetType } from "@plane/types";
|
import { EFileAssetType } from "@plane/types";
|
||||||
import { Button, TOAST_TYPE, setToast } from "@plane/ui";
|
import { TOAST_TYPE, setToast } from "@plane/ui";
|
||||||
import { getAssetIdFromUrl, getFileURL, checkURLValidity } from "@plane/utils";
|
import { getAssetIdFromUrl, getFileURL, checkURLValidity } from "@plane/utils";
|
||||||
// helpers
|
// helpers
|
||||||
// hooks
|
// hooks
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,10 @@ import { Controller, useForm } from "react-hook-form";
|
||||||
// types
|
// types
|
||||||
import { PROFILE_SETTINGS_TRACKER_ELEMENTS, PROFILE_SETTINGS_TRACKER_EVENTS } from "@plane/constants";
|
import { PROFILE_SETTINGS_TRACKER_ELEMENTS, PROFILE_SETTINGS_TRACKER_EVENTS } from "@plane/constants";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { IUserTheme } from "@plane/types";
|
import { IUserTheme } from "@plane/types";
|
||||||
// ui
|
// ui
|
||||||
import { Button, InputColorPicker, setPromiseToast } from "@plane/ui";
|
import { InputColorPicker, setPromiseToast } from "@plane/ui";
|
||||||
// hooks
|
// hooks
|
||||||
import { captureElementAndEvent } from "@/helpers/event-tracker.helper";
|
import { captureElementAndEvent } from "@/helpers/event-tracker.helper";
|
||||||
import { useUserProfile } from "@/hooks/store/user";
|
import { useUserProfile } from "@/hooks/store/user";
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,8 @@ import { useState, Fragment } from "react";
|
||||||
import { Dialog, Transition } from "@headlessui/react";
|
import { Dialog, Transition } from "@headlessui/react";
|
||||||
// ui
|
// ui
|
||||||
import { CYCLE_TRACKER_EVENTS } from "@plane/constants";
|
import { CYCLE_TRACKER_EVENTS } from "@plane/constants";
|
||||||
import { Button, TOAST_TYPE, setToast } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
|
import { TOAST_TYPE, setToast } from "@plane/ui";
|
||||||
// hooks
|
// hooks
|
||||||
import { captureError, captureSuccess } from "@/helpers/event-tracker.helper";
|
import { captureError, captureSuccess } from "@/helpers/event-tracker.helper";
|
||||||
import { useCycle } from "@/hooks/store/use-cycle";
|
import { useCycle } from "@/hooks/store/use-cycle";
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,10 @@ import { Controller, useForm } from "react-hook-form";
|
||||||
import { ETabIndices } from "@plane/constants";
|
import { ETabIndices } from "@plane/constants";
|
||||||
// types
|
// types
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { ICycle } from "@plane/types";
|
import { ICycle } from "@plane/types";
|
||||||
// ui
|
// ui
|
||||||
import { Button, Input, TextArea } from "@plane/ui";
|
import { Input, TextArea } from "@plane/ui";
|
||||||
import { getDate, renderFormattedPayloadDate, getTabIndex } from "@plane/utils";
|
import { getDate, renderFormattedPayloadDate, getTabIndex } from "@plane/utils";
|
||||||
// components
|
// components
|
||||||
import { DateRangeDropdown } from "@/components/dropdowns/date-range";
|
import { DateRangeDropdown } from "@/components/dropdowns/date-range";
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { AlertCircle } from "lucide-react";
|
import { AlertCircle } from "lucide-react";
|
||||||
// ui
|
// ui
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { TransferIcon } from "@plane/propel/icons";
|
import { TransferIcon } from "@plane/propel/icons";
|
||||||
import { Button } from "@plane/ui";
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
handleClick: () => void;
|
handleClick: () => void;
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,8 @@ import type { EditorRefApi } from "@plane/editor";
|
||||||
// i18n
|
// i18n
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
// ui
|
// ui
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { Tooltip } from "@plane/propel/tooltip";
|
import { Tooltip } from "@plane/propel/tooltip";
|
||||||
import { Button } from "@plane/ui";
|
|
||||||
// constants
|
// constants
|
||||||
import { cn } from "@plane/utils";
|
import { cn } from "@plane/utils";
|
||||||
import { TOOLBAR_ITEMS, ToolbarMenuItem } from "@/constants/editor";
|
import { TOOLBAR_ITEMS, ToolbarMenuItem } from "@/constants/editor";
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import { usePopper } from "react-popper";
|
||||||
import { Popover } from "@headlessui/react";
|
import { Popover } from "@headlessui/react";
|
||||||
// popper
|
// popper
|
||||||
// helper
|
// helper
|
||||||
import { getButtonStyling } from "@plane/ui";
|
import { getButtonStyling } from "@plane/propel/button";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
label: string;
|
label: string;
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import React from "react";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
// ui
|
// ui
|
||||||
import { Button } from "@plane/ui/src/button";
|
import { Button } from "@plane/propel/button";
|
||||||
// utils
|
// utils
|
||||||
import { cn } from "@plane/utils";
|
import { cn } from "@plane/utils";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,9 @@ import { ChevronLeft } from "lucide-react";
|
||||||
// plane imports
|
// plane imports
|
||||||
import { EEstimateSystem, ESTIMATE_SYSTEMS } from "@plane/constants";
|
import { EEstimateSystem, ESTIMATE_SYSTEMS } from "@plane/constants";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { IEstimateFormData, TEstimateSystemKeys, TEstimatePointsObject, TEstimateTypeError } from "@plane/types";
|
import { IEstimateFormData, TEstimateSystemKeys, TEstimatePointsObject, TEstimateTypeError } from "@plane/types";
|
||||||
import { Button, EModalPosition, EModalWidth, ModalCore, TOAST_TYPE, setToast } from "@plane/ui";
|
import { EModalPosition, EModalWidth, ModalCore, TOAST_TYPE, setToast } from "@plane/ui";
|
||||||
// hooks
|
// hooks
|
||||||
import { useProjectEstimates } from "@/hooks/store/estimates";
|
import { useProjectEstimates } from "@/hooks/store/estimates";
|
||||||
// local imports
|
// local imports
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,8 @@ import { FC, useState } from "react";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
// ui
|
// ui
|
||||||
import { PROJECT_SETTINGS_TRACKER_EVENTS } from "@plane/constants";
|
import { PROJECT_SETTINGS_TRACKER_EVENTS } from "@plane/constants";
|
||||||
import { Button, EModalPosition, EModalWidth, ModalCore, TOAST_TYPE, setToast } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
|
import { EModalPosition, EModalWidth, ModalCore, TOAST_TYPE, setToast } from "@plane/ui";
|
||||||
// hooks
|
// hooks
|
||||||
import { captureError, captureSuccess } from "@/helpers/event-tracker.helper";
|
import { captureError, captureSuccess } from "@/helpers/event-tracker.helper";
|
||||||
import { useProjectEstimates } from "@/hooks/store/estimates";
|
import { useProjectEstimates } from "@/hooks/store/estimates";
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,9 @@ import { observer } from "mobx-react";
|
||||||
import { Plus } from "lucide-react";
|
import { Plus } from "lucide-react";
|
||||||
// plane imports
|
// plane imports
|
||||||
import { estimateCount } from "@plane/constants";
|
import { estimateCount } from "@plane/constants";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { TEstimatePointsObject, TEstimateSystemKeys, TEstimateTypeError } from "@plane/types";
|
import { TEstimatePointsObject, TEstimateSystemKeys, TEstimateTypeError } from "@plane/types";
|
||||||
import { Button, Sortable } from "@plane/ui";
|
import { Sortable } from "@plane/ui";
|
||||||
// local imports
|
// local imports
|
||||||
import { EstimatePointCreate } from "./create";
|
import { EstimatePointCreate } from "./create";
|
||||||
import { EstimatePointItemPreview } from "./preview";
|
import { EstimatePointItemPreview } from "./preview";
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,8 @@ import {
|
||||||
WORKSPACE_SETTINGS_TRACKER_ELEMENTS,
|
WORKSPACE_SETTINGS_TRACKER_ELEMENTS,
|
||||||
} from "@plane/constants";
|
} from "@plane/constants";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
import { Button, CustomSearchSelect, CustomSelect, TOAST_TYPE, setToast } from "@plane/ui";
|
import { Button } from "@plane/propel/button";
|
||||||
|
import { CustomSearchSelect, CustomSelect, TOAST_TYPE, setToast } from "@plane/ui";
|
||||||
import { captureError, captureSuccess } from "@/helpers/event-tracker.helper";
|
import { captureError, captureSuccess } from "@/helpers/event-tracker.helper";
|
||||||
import { useProject } from "@/hooks/store/use-project";
|
import { useProject } from "@/hooks/store/use-project";
|
||||||
import { useUser, useUserPermissions } from "@/hooks/store/user";
|
import { useUser, useUserPermissions } from "@/hooks/store/user";
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,10 @@ import { useParams } from "next/navigation";
|
||||||
import { Dialog, Transition } from "@headlessui/react";
|
import { Dialog, Transition } from "@headlessui/react";
|
||||||
// types
|
// types
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { IUser, IImporterService } from "@plane/types";
|
import { IUser, IImporterService } from "@plane/types";
|
||||||
// ui
|
// ui
|
||||||
import { Button, CustomSearchSelect, TOAST_TYPE, setToast } from "@plane/ui";
|
import { CustomSearchSelect, TOAST_TYPE, setToast } from "@plane/ui";
|
||||||
// hooks
|
// hooks
|
||||||
import { useProject } from "@/hooks/store/use-project";
|
import { useProject } from "@/hooks/store/use-project";
|
||||||
import { useUser } from "@/hooks/store/user";
|
import { useUser } from "@/hooks/store/user";
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
import { useState, FC } from "react";
|
import { useState, FC } from "react";
|
||||||
// ui
|
// ui
|
||||||
|
import { Button } from "@plane/propel/button";
|
||||||
import { IExportData } from "@plane/types";
|
import { IExportData } from "@plane/types";
|
||||||
import { Button } from "@plane/ui";
|
|
||||||
// helpers
|
// helpers
|
||||||
import { getDate, renderFormattedDate } from "@plane/utils";
|
import { getDate, renderFormattedDate } from "@plane/utils";
|
||||||
// types
|
// types
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
import { USER_TRACKER_ELEMENTS } from "@plane/constants";
|
import { USER_TRACKER_ELEMENTS } from "@plane/constants";
|
||||||
import { useTranslation } from "@plane/i18n";
|
import { useTranslation } from "@plane/i18n";
|
||||||
// ui
|
// ui
|
||||||
|
import { getButtonStyling } from "@plane/propel/button";
|
||||||
import { PlaneLogo } from "@plane/propel/icons";
|
import { PlaneLogo } from "@plane/propel/icons";
|
||||||
import { getButtonStyling } from "@plane/ui";
|
|
||||||
// helpers
|
// helpers
|
||||||
import { cn } from "@plane/utils";
|
import { cn } from "@plane/utils";
|
||||||
|
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue