chore: renaming store to store_legacy

This commit is contained in:
sriram veeraghanta 2023-12-11 14:36:34 +05:30
parent bf2c6e36ef
commit 912213e051
186 changed files with 194 additions and 194 deletions

View File

@ -3,7 +3,7 @@ import Image from "next/image";
import { useRouter } from "next/router";
// mobx store
import { useMobxStore } from "lib/mobx/store-provider";
import { RootStore } from "store/root";
import { RootStore } from "store_legacy/root";
// ui
import { Button } from "@plane/ui";
// icons

View File

@ -19,8 +19,8 @@ import { renderEmoji } from "helpers/emoji.helper";
import { IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueFilterOptions, TIssueLayouts } from "types";
// constants
import { ISSUE_DISPLAY_FILTERS_BY_LAYOUT } from "constants/issue";
import { EFilterType } from "store/issues/types";
import { EProjectStore } from "store/command-palette.store";
import { EFilterType } from "store_legacy/issues/types";
import { EProjectStore } from "store_legacy/command-palette.store";
export const CycleIssuesHeader: React.FC = observer(() => {
const [analyticsModal, setAnalyticsModal] = useState(false);

View File

@ -15,7 +15,7 @@ import { List, PlusIcon, Sheet } from "lucide-react";
import { IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueFilterOptions } from "types";
// constants
import { ISSUE_DISPLAY_FILTERS_BY_LAYOUT } from "constants/issue";
import { EFilterType } from "store/issues/types";
import { EFilterType } from "store_legacy/issues/types";
const GLOBAL_VIEW_LAYOUTS = [
{ key: "list", title: "List", link: "/workspace-views", icon: List },

View File

@ -19,8 +19,8 @@ import { renderEmoji } from "helpers/emoji.helper";
import { IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueFilterOptions, TIssueLayouts } from "types";
// constants
import { ISSUE_DISPLAY_FILTERS_BY_LAYOUT } from "constants/issue";
import { EFilterType } from "store/issues/types";
import { EProjectStore } from "store/command-palette.store";
import { EFilterType } from "store_legacy/issues/types";
import { EProjectStore } from "store_legacy/command-palette.store";
export const ModuleIssuesHeader: React.FC = observer(() => {
const [analyticsModal, setAnalyticsModal] = useState(false);

View File

@ -9,7 +9,7 @@ import { DisplayFiltersSelection, FiltersDropdown, FilterSelection, LayoutSelect
import { Breadcrumbs, LayersIcon } from "@plane/ui";
// helper
import { renderEmoji } from "helpers/emoji.helper";
import { EFilterType } from "store/issues/types";
import { EFilterType } from "store_legacy/issues/types";
import { IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueFilterOptions, TIssueLayouts } from "types";
import { ISSUE_DISPLAY_FILTERS_BY_LAYOUT } from "constants/issue";

View File

@ -16,8 +16,8 @@ import { IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueFilterOption
import { ISSUE_DISPLAY_FILTERS_BY_LAYOUT } from "constants/issue";
// helper
import { renderEmoji } from "helpers/emoji.helper";
import { EFilterType } from "store/issues/types";
import { EProjectStore } from "store/command-palette.store";
import { EFilterType } from "store_legacy/issues/types";
import { EProjectStore } from "store_legacy/command-palette.store";
export const ProjectIssuesHeader: React.FC = observer(() => {
const [analyticsModal, setAnalyticsModal] = useState(false);

View File

@ -14,8 +14,8 @@ import { renderEmoji } from "helpers/emoji.helper";
import { IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueFilterOptions, TIssueLayouts } from "types";
// constants
import { ISSUE_DISPLAY_FILTERS_BY_LAYOUT } from "constants/issue";
import { EFilterType } from "store/issues/types";
import { EProjectStore } from "store/command-palette.store";
import { EFilterType } from "store_legacy/issues/types";
import { EProjectStore } from "store_legacy/command-palette.store";
import { Plus } from "lucide-react";
export const ProjectViewIssuesHeader: React.FC = observer(() => {

View File

@ -15,10 +15,10 @@ import {
IProjectIssuesStore,
IViewIssuesFilterStore,
IViewIssuesStore,
} from "store/issues";
} from "store_legacy/issues";
import { IQuickActionProps } from "../list/list-view-types";
import { EIssueActions } from "../types";
import { IGroupedIssues } from "store/issues/types";
import { IGroupedIssues } from "store_legacy/issues/types";
interface IBaseCalendarRoot {
issueStore: IProjectIssuesStore | IModuleIssuesStore | ICycleIssuesStore | IViewIssuesStore;

View File

@ -9,13 +9,13 @@ import { Spinner } from "@plane/ui";
// types
import { ICalendarWeek } from "./types";
import { IIssue } from "types";
import { IGroupedIssues, IIssueResponse } from "store/issues/types";
import { IGroupedIssues, IIssueResponse } from "store_legacy/issues/types";
import {
ICycleIssuesFilterStore,
IModuleIssuesFilterStore,
IProjectIssuesFilterStore,
IViewIssuesFilterStore,
} from "store/issues";
} from "store_legacy/issues";
type Props = {
issuesFilterStore:

View File

@ -7,13 +7,13 @@ import { renderDateFormat } from "helpers/date-time.helper";
// constants
import { MONTHS_LIST } from "constants/calendar";
import { IIssue } from "types";
import { IGroupedIssues, IIssueResponse } from "store/issues/types";
import { IGroupedIssues, IIssueResponse } from "store_legacy/issues/types";
import {
ICycleIssuesFilterStore,
IModuleIssuesFilterStore,
IProjectIssuesFilterStore,
IViewIssuesFilterStore,
} from "store/issues";
} from "store_legacy/issues";
type Props = {
issuesFilterStore:

View File

@ -13,13 +13,13 @@ import { Check, ChevronUp } from "lucide-react";
import { TCalendarLayouts } from "types";
// constants
import { CALENDAR_LAYOUTS } from "constants/calendar";
import { EFilterType } from "store/issues/types";
import { EFilterType } from "store_legacy/issues/types";
import {
ICycleIssuesFilterStore,
IModuleIssuesFilterStore,
IProjectIssuesFilterStore,
IViewIssuesFilterStore,
} from "store/issues";
} from "store_legacy/issues";
interface ICalendarHeader {
issuesFilterStore:

View File

@ -11,7 +11,7 @@ import {
IModuleIssuesFilterStore,
IProjectIssuesFilterStore,
IViewIssuesFilterStore,
} from "store/issues";
} from "store_legacy/issues";
interface ICalendarHeader {
issuesFilterStore:

View File

@ -9,7 +9,7 @@ import { Tooltip } from "@plane/ui";
import useOutsideClickDetector from "hooks/use-outside-click-detector";
// types
import { IIssue } from "types";
import { IIssueResponse } from "store/issues/types";
import { IIssueResponse } from "store_legacy/issues/types";
type Props = {
issues: IIssueResponse | undefined;

View File

@ -6,13 +6,13 @@ import { renderDateFormat } from "helpers/date-time.helper";
// types
import { ICalendarDate, ICalendarWeek } from "./types";
import { IIssue } from "types";
import { IGroupedIssues, IIssueResponse } from "store/issues/types";
import { IGroupedIssues, IIssueResponse } from "store_legacy/issues/types";
import {
ICycleIssuesFilterStore,
IModuleIssuesFilterStore,
IProjectIssuesFilterStore,
IViewIssuesFilterStore,
} from "store/issues";
} from "store_legacy/issues";
type Props = {
issuesFilterStore:

View File

@ -14,7 +14,7 @@ import { Button } from "@plane/ui";
import emptyIssue from "public/empty-state/issue.svg";
// types
import { ISearchIssueResponse } from "types";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
type Props = {
workspaceSlug: string | undefined;

View File

@ -6,7 +6,7 @@ import { useMobxStore } from "lib/mobx/store-provider";
import { EmptyState } from "components/common";
// assets
import emptyIssue from "public/empty-state/issue.svg";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
export const ProjectViewEmptyState: React.FC = observer(() => {
const {

View File

@ -6,7 +6,7 @@ import { useMobxStore } from "lib/mobx/store-provider";
import { NewEmptyState } from "components/common/new-empty-state";
// assets
import emptyIssue from "public/empty-state/empty_issues.webp";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
export const ProjectEmptyState: React.FC = observer(() => {
const {

View File

@ -7,7 +7,7 @@ import { useMobxStore } from "lib/mobx/store-provider";
import { AppliedFiltersList, SaveFilterView } from "components/issues";
// types
import { IIssueFilterOptions } from "types";
import { EFilterType } from "store/issues/types";
import { EFilterType } from "store_legacy/issues/types";
export const ArchivedIssueAppliedFiltersRoot: React.FC = observer(() => {
const router = useRouter();

View File

@ -7,7 +7,7 @@ import { useMobxStore } from "lib/mobx/store-provider";
import { AppliedFiltersList, SaveFilterView } from "components/issues";
// types
import { IIssueFilterOptions } from "types";
import { EFilterType } from "store/issues/types";
import { EFilterType } from "store_legacy/issues/types";
export const CycleAppliedFiltersRoot: React.FC = observer(() => {
const router = useRouter();

View File

@ -7,7 +7,7 @@ import { useMobxStore } from "lib/mobx/store-provider";
import { AppliedFiltersList, SaveFilterView } from "components/issues";
// types
import { IIssueFilterOptions } from "types";
import { EFilterType } from "store/issues/types";
import { EFilterType } from "store_legacy/issues/types";
export const DraftIssueAppliedFiltersRoot: React.FC = observer(() => {
const router = useRouter();

View File

@ -7,7 +7,7 @@ import { useMobxStore } from "lib/mobx/store-provider";
import { AppliedFiltersList } from "components/issues";
// types
import { IIssueFilterOptions } from "types";
import { EFilterType } from "store/issues/types";
import { EFilterType } from "store_legacy/issues/types";
export const GlobalViewsAppliedFiltersRoot = observer(() => {
const router = useRouter();

View File

@ -7,7 +7,7 @@ import { useMobxStore } from "lib/mobx/store-provider";
import { AppliedFiltersList, SaveFilterView } from "components/issues";
// types
import { IIssueFilterOptions } from "types";
import { EFilterType } from "store/issues/types";
import { EFilterType } from "store_legacy/issues/types";
export const ModuleAppliedFiltersRoot: React.FC = observer(() => {
const router = useRouter();

View File

@ -7,7 +7,7 @@ import { useMobxStore } from "lib/mobx/store-provider";
import { AppliedFiltersList } from "components/issues";
// types
import { IIssueFilterOptions } from "types";
import { EFilterType } from "store/issues/types";
import { EFilterType } from "store_legacy/issues/types";
export const ProfileIssuesAppliedFiltersRoot: React.FC = observer(() => {
const router = useRouter();

View File

@ -8,7 +8,7 @@ import { AppliedFiltersList, SaveFilterView } from "components/issues";
// types
import { IIssueFilterOptions } from "types";
import { EFilterType } from "store/issues/types";
import { EFilterType } from "store_legacy/issues/types";
export const ProjectAppliedFiltersRoot: React.FC = observer(() => {
const router = useRouter();

View File

@ -10,7 +10,7 @@ import { Button } from "@plane/ui";
import { areFiltersDifferent } from "helpers/filter.helper";
// types
import { IIssueFilterOptions } from "types";
import { EFilterType } from "store/issues/types";
import { EFilterType } from "store_legacy/issues/types";
export const ProjectViewAppliedFiltersRoot: React.FC = observer(() => {
const router = useRouter();

View File

@ -12,7 +12,7 @@ import {
IssueGanttSidebar,
} from "components/gantt-chart";
// types
import { IIssueUnGroupedStructure } from "store/issue";
import { IIssueUnGroupedStructure } from "store_legacy/issue";
import { IIssue } from "types";
import {
ICycleIssuesFilterStore,
@ -23,8 +23,8 @@ import {
IProjectIssuesStore,
IViewIssuesFilterStore,
IViewIssuesStore,
} from "store/issues";
import { TUnGroupedIssues } from "store/issues/types";
} from "store_legacy/issues";
import { TUnGroupedIssues } from "store_legacy/issues/types";
import { EUserWorkspaceRoles } from "constants/workspace";
interface IBaseGanttRoot {

View File

@ -21,9 +21,9 @@ import {
IProjectIssuesStore,
IViewIssuesFilterStore,
IViewIssuesStore,
} from "store/issues";
} from "store_legacy/issues";
import { IQuickActionProps } from "../list/list-view-types";
import { IIssueKanBanViewStore } from "store/issue";
import { IIssueKanBanViewStore } from "store_legacy/issue";
// hooks
import useToast from "hooks/use-toast";
// constants
@ -31,7 +31,7 @@ import { ISSUE_STATE_GROUPS, ISSUE_PRIORITIES } from "constants/issue";
//components
import { KanBan } from "./default";
import { KanBanSwimLanes } from "./swimlanes";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
import { DeleteIssueModal, IssuePeekOverview } from "components/issues";
import { EUserWorkspaceRoles } from "constants/workspace";

View File

@ -2,7 +2,7 @@
import { KanbanIssueBlock } from "components/issues";
import { IIssueDisplayProperties, IIssue } from "types";
import { EIssueActions } from "../types";
import { IIssueResponse } from "store/issues/types";
import { IIssueResponse } from "store_legacy/issues/types";
interface IssueBlocksListProps {
sub_group_id: string;

View File

@ -11,8 +11,8 @@ import { IIssueDisplayProperties, IIssue, IState } from "types";
// constants
import { getValueFromObject } from "constants/issue";
import { EIssueActions } from "../types";
import { IIssueResponse, IGroupedIssues, ISubGroupedIssues, TUnGroupedIssues } from "store/issues/types";
import { EProjectStore } from "store/command-palette.store";
import { IIssueResponse, IGroupedIssues, ISubGroupedIssues, TUnGroupedIssues } from "store_legacy/issues/types";
import { EProjectStore } from "store_legacy/command-palette.store";
export interface IGroupByKanBan {
issues: IIssueResponse;

View File

@ -5,7 +5,7 @@ import { HeaderGroupByCard } from "./group-by-card";
import { HeaderSubGroupByCard } from "./sub-group-by-card";
// ui
import { Avatar } from "@plane/ui";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
import { IIssue } from "types";
export interface IAssigneesHeader {

View File

@ -4,7 +4,7 @@ import { observer } from "mobx-react-lite";
import { HeaderGroupByCard } from "./group-by-card";
import { HeaderSubGroupByCard } from "./sub-group-by-card";
import { Icon } from "./assignee";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
import { IIssue } from "types";
export interface ICreatedByHeader {

View File

@ -13,7 +13,7 @@ import useToast from "hooks/use-toast";
import { observer } from "mobx-react-lite";
// types
import { IIssue, ISearchIssueResponse } from "types";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
interface IHeaderGroupByCard {
sub_group_by: string | null;

View File

@ -8,7 +8,7 @@ import { LabelHeader } from "./label";
import { CreatedByHeader } from "./created_by";
// mobx
import { observer } from "mobx-react-lite";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
import { IIssue } from "types";
export interface IKanBanGroupByHeaderRoot {

View File

@ -3,7 +3,7 @@ import { observer } from "mobx-react-lite";
// components
import { HeaderGroupByCard } from "./group-by-card";
import { HeaderSubGroupByCard } from "./sub-group-by-card";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
import { IIssue } from "types";
export interface ILabelHeader {

View File

@ -6,7 +6,7 @@ import { HeaderSubGroupByCard } from "./sub-group-by-card";
// Icons
import { PriorityIcon } from "@plane/ui";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
import { IIssue } from "types";
export interface IPriorityHeader {

View File

@ -5,7 +5,7 @@ import { HeaderGroupByCard } from "./group-by-card";
import { HeaderSubGroupByCard } from "./sub-group-by-card";
// emoji helper
import { renderEmoji } from "helpers/emoji.helper";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
import { IIssue } from "types";
export interface IProjectHeader {

View File

@ -4,7 +4,7 @@ import { observer } from "mobx-react-lite";
import { HeaderGroupByCard } from "./group-by-card";
import { HeaderSubGroupByCard } from "./sub-group-by-card";
import { StateGroupIcon } from "@plane/ui";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
import { IIssue } from "types";
export interface IStateGroupHeader {

View File

@ -4,7 +4,7 @@ import { observer } from "mobx-react-lite";
import { HeaderGroupByCard } from "./group-by-card";
import { HeaderSubGroupByCard } from "./sub-group-by-card";
import { Icon } from "./state-group";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
import { IIssue } from "types";
export interface IStateHeader {

View File

@ -7,7 +7,7 @@ import { AssigneesHeader } from "./assignee";
import { PriorityHeader } from "./priority";
import { LabelHeader } from "./label";
import { CreatedByHeader } from "./created_by";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
import { IIssue } from "types";
export interface IKanBanSubGroupByHeaderRoot {

View File

@ -10,8 +10,8 @@ import { IIssue } from "types";
import { EIssueActions } from "../../types";
// components
import { BaseKanBanRoot } from "../base-kanban-root";
import { EProjectStore } from "store/command-palette.store";
import { IGroupedIssues, IIssueResponse, ISubGroupedIssues, TUnGroupedIssues } from "store/issues/types";
import { EProjectStore } from "store_legacy/command-palette.store";
import { IGroupedIssues, IIssueResponse, ISubGroupedIssues, TUnGroupedIssues } from "store_legacy/issues/types";
export interface ICycleKanBanLayout {}

View File

@ -10,8 +10,8 @@ import { IIssue } from "types";
// constants
import { EIssueActions } from "../../types";
import { BaseKanBanRoot } from "../base-kanban-root";
import { EProjectStore } from "store/command-palette.store";
import { IGroupedIssues, IIssueResponse, ISubGroupedIssues, TUnGroupedIssues } from "store/issues/types";
import { EProjectStore } from "store_legacy/command-palette.store";
import { IGroupedIssues, IIssueResponse, ISubGroupedIssues, TUnGroupedIssues } from "store_legacy/issues/types";
export interface IModuleKanBanLayout {}

View File

@ -9,7 +9,7 @@ import { IIssue } from "types";
// constants
import { EIssueActions } from "../../types";
import { BaseKanBanRoot } from "../base-kanban-root";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
import { EUserWorkspaceRoles } from "constants/workspace";
export const ProfileIssuesKanBanLayout: React.FC = observer(() => {

View File

@ -9,8 +9,8 @@ import { IIssue } from "types";
// constants
import { EIssueActions } from "../../types";
import { BaseKanBanRoot } from "../base-kanban-root";
import { EProjectStore } from "store/command-palette.store";
import { IGroupedIssues, IIssueResponse, ISubGroupedIssues, TUnGroupedIssues } from "store/issues/types";
import { EProjectStore } from "store_legacy/command-palette.store";
import { IGroupedIssues, IIssueResponse, ISubGroupedIssues, TUnGroupedIssues } from "store_legacy/issues/types";
export interface IKanBanLayout {}

View File

@ -9,8 +9,8 @@ import { EIssueActions } from "../../types";
import { ProjectIssueQuickActions } from "../../quick-action-dropdowns";
// components
import { BaseKanBanRoot } from "../base-kanban-root";
import { EProjectStore } from "store/command-palette.store";
import { IGroupedIssues, IIssueResponse, ISubGroupedIssues, TUnGroupedIssues } from "store/issues/types";
import { EProjectStore } from "store_legacy/command-palette.store";
import { IGroupedIssues, IIssueResponse, ISubGroupedIssues, TUnGroupedIssues } from "store_legacy/issues/types";
export interface IViewKanBanLayout {}

View File

@ -6,11 +6,11 @@ import { KanBanSubGroupByHeaderRoot } from "./headers/sub-group-by-root";
import { KanBan } from "./default";
// types
import { IIssue, IIssueDisplayProperties, IIssueLabel, IProject, IState, IUserLite } from "types";
import { IIssueResponse, IGroupedIssues, ISubGroupedIssues, TUnGroupedIssues } from "store/issues/types";
import { IIssueResponse, IGroupedIssues, ISubGroupedIssues, TUnGroupedIssues } from "store_legacy/issues/types";
// constants
import { getValueFromObject } from "constants/issue";
import { EIssueActions } from "../types";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
interface ISubGroupSwimlaneHeader {
issues: IIssueResponse;

View File

@ -3,7 +3,7 @@ import { useMobxStore } from "lib/mobx/store-provider";
import { ISSUE_PRIORITIES, ISSUE_STATE_GROUPS } from "constants/issue";
import { FC } from "react";
import { IIssue, IProject } from "types";
import { IProjectStore } from "store/project";
import { IProjectStore } from "store_legacy/project";
import { Spinner } from "@plane/ui";
import { IQuickActionProps } from "./list-view-types";
import {
@ -19,10 +19,10 @@ import {
IProjectIssuesStore,
IViewIssuesFilterStore,
IViewIssuesStore,
} from "store/issues";
} from "store_legacy/issues";
import { observer } from "mobx-react-lite";
import { IIssueResponse } from "store/issues/types";
import { EProjectStore } from "store/command-palette.store";
import { IIssueResponse } from "store_legacy/issues/types";
import { EProjectStore } from "store_legacy/command-palette.store";
import { IssuePeekOverview } from "components/issues";
import { useRouter } from "next/router";
import { EUserWorkspaceRoles } from "constants/workspace";

View File

@ -3,7 +3,7 @@ import { FC } from "react";
import { IssueBlock } from "components/issues";
// types
import { IIssue, IIssueDisplayProperties } from "types";
import { IIssueResponse, IGroupedIssues, TUnGroupedIssues } from "store/issues/types";
import { IIssueResponse, IGroupedIssues, TUnGroupedIssues } from "store_legacy/issues/types";
import { EIssueActions } from "../types";
interface Props {

View File

@ -4,11 +4,11 @@ import { ListGroupByHeaderRoot } from "./headers/group-by-root";
import { IssueBlocksList, ListQuickAddIssueForm } from "components/issues";
// types
import { IIssue, IIssueDisplayProperties, IIssueLabel, IProject, IState, IUserLite } from "types";
import { IIssueResponse, IGroupedIssues, TUnGroupedIssues } from "store/issues/types";
import { IIssueResponse, IGroupedIssues, TUnGroupedIssues } from "store_legacy/issues/types";
import { EIssueActions } from "../types";
// constants
import { getValueFromObject } from "constants/issue";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
export interface IGroupByList {
issueIds: IGroupedIssues | TUnGroupedIssues | any;

View File

@ -4,7 +4,7 @@ import { observer } from "mobx-react-lite";
import { HeaderGroupByCard } from "./group-by-card";
// ui
import { Avatar } from "@plane/ui";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
import { IIssue } from "types";
export interface IAssigneesHeader {

View File

@ -3,7 +3,7 @@ import { observer } from "mobx-react-lite";
// components
import { HeaderGroupByCard } from "./group-by-card";
import { Icon } from "./assignee";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
import { IIssue } from "types";
export interface ICreatedByHeader {

View File

@ -1,7 +1,7 @@
import { observer } from "mobx-react-lite";
// components
import { HeaderGroupByCard } from "./group-by-card";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
import { IIssue } from "types";
export interface IEmptyHeader {

View File

@ -11,7 +11,7 @@ import { CustomMenu } from "@plane/ui";
import { observer } from "mobx-react-lite";
// types
import { IIssue, ISearchIssueResponse } from "types";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
import useToast from "hooks/use-toast";
interface IHeaderGroupByCard {

View File

@ -9,7 +9,7 @@ import { LabelHeader } from "./label";
import { CreatedByHeader } from "./created-by";
// mobx
import { observer } from "mobx-react-lite";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
import { IIssue } from "types";
export interface IListGroupByHeaderRoot {

View File

@ -2,7 +2,7 @@ import { FC } from "react";
import { observer } from "mobx-react-lite";
// components
import { HeaderGroupByCard } from "./group-by-card";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
import { IIssue } from "types";
export interface ILabelHeader {

View File

@ -3,7 +3,7 @@ import { observer } from "mobx-react-lite";
import { AlertCircle, SignalHigh, SignalMedium, SignalLow, Ban } from "lucide-react";
// components
import { HeaderGroupByCard } from "./group-by-card";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
import { IIssue } from "types";
export interface IPriorityHeader {

View File

@ -4,7 +4,7 @@ import { observer } from "mobx-react-lite";
import { HeaderGroupByCard } from "./group-by-card";
// emoji helper
import { renderEmoji } from "helpers/emoji.helper";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
import { IIssue } from "types";
export interface IProjectHeader {

View File

@ -6,7 +6,7 @@ import { HeaderGroupByCard } from "./group-by-card";
import { StateGroupIcon } from "@plane/ui";
// helpers
import { capitalizeFirstLetter } from "helpers/string.helper";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
import { IIssue } from "types";
export interface IStateGroupHeader {

View File

@ -3,7 +3,7 @@ import { observer } from "mobx-react-lite";
// components
import { HeaderGroupByCard } from "./group-by-card";
import { Icon } from "./state-group";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
import { IIssue } from "types";
export interface IStateHeader {

View File

@ -9,9 +9,9 @@ import { ArchivedIssueQuickActions } from "components/issues";
import { IIssue } from "types";
// constants
import { BaseListRoot } from "../base-list-root";
import { IProjectStore } from "store/project";
import { IProjectStore } from "store_legacy/project";
import { EIssueActions } from "../../types";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
export const ArchivedIssueListLayout: FC = observer(() => {
const router = useRouter();

View File

@ -9,9 +9,9 @@ import { CycleIssueQuickActions } from "components/issues";
import { IIssue } from "types";
// constants
import { BaseListRoot } from "../base-list-root";
import { IProjectStore } from "store/project";
import { IProjectStore } from "store_legacy/project";
import { EIssueActions } from "../../types";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
export interface ICycleListLayout {}

View File

@ -10,8 +10,8 @@ import { IIssue } from "types";
import { EIssueActions } from "../../types";
// constants
import { BaseListRoot } from "../base-list-root";
import { IProjectStore } from "store/project";
import { EProjectStore } from "store/command-palette.store";
import { IProjectStore } from "store_legacy/project";
import { EProjectStore } from "store_legacy/command-palette.store";
export const DraftIssueListLayout: FC = observer(() => {
const router = useRouter();

View File

@ -10,8 +10,8 @@ import { IIssue } from "types";
import { EIssueActions } from "../../types";
// constants
import { BaseListRoot } from "../base-list-root";
import { IProjectStore } from "store/project";
import { EProjectStore } from "store/command-palette.store";
import { IProjectStore } from "store_legacy/project";
import { EProjectStore } from "store_legacy/command-palette.store";
export interface IModuleListLayout {}

View File

@ -10,8 +10,8 @@ import { IIssue } from "types";
import { EIssueActions } from "../../types";
// constants
import { BaseListRoot } from "../base-list-root";
import { IProjectStore } from "store/project";
import { EProjectStore } from "store/command-palette.store";
import { IProjectStore } from "store_legacy/project";
import { EProjectStore } from "store_legacy/command-palette.store";
import { EUserWorkspaceRoles } from "constants/workspace";
export const ProfileIssuesListLayout: FC = observer(() => {

View File

@ -10,8 +10,8 @@ import { IIssue } from "types";
import { EIssueActions } from "../../types";
// constants
import { BaseListRoot } from "../base-list-root";
import { IProjectStore } from "store/project";
import { EProjectStore } from "store/command-palette.store";
import { IProjectStore } from "store_legacy/project";
import { EProjectStore } from "store_legacy/command-palette.store";
export const ListLayout: FC = observer(() => {
const router = useRouter();

View File

@ -3,16 +3,16 @@ import { observer } from "mobx-react-lite";
// store
import { useMobxStore } from "lib/mobx/store-provider";
import { RootStore } from "store/root";
import { RootStore } from "store_legacy/root";
// constants
import { useRouter } from "next/router";
import { EIssueActions } from "../../types";
import { IProjectStore } from "store/project";
import { IProjectStore } from "store_legacy/project";
import { IIssue } from "types";
// components
import { BaseListRoot } from "../base-list-root";
import { ProjectIssueQuickActions } from "../../quick-action-dropdowns";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
export interface IViewListLayout {}

View File

@ -9,7 +9,7 @@ import { Tooltip } from "@plane/ui";
import { Check, ChevronDown, Search } from "lucide-react";
// types
import { Placement } from "@popperjs/core";
import { RootStore } from "store/root";
import { RootStore } from "store_legacy/root";
import { IIssueLabel } from "types";
export interface IIssuePropertyLabels {

View File

@ -12,7 +12,7 @@ import { Check, ChevronDown, Search } from "lucide-react";
// types
import { IState } from "types";
import { Placement } from "@popperjs/core";
import { RootStore } from "store/root";
import { RootStore } from "store_legacy/root";
export interface IIssuePropertyState {
projectId: string | null;

View File

@ -11,7 +11,7 @@ import { copyUrlToClipboard } from "helpers/string.helper";
// types
import { IIssue } from "types";
import { IQuickActionProps } from "../list/list-view-types";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
export const AllIssueQuickActions: React.FC<IQuickActionProps> = (props) => {
const { issue, handleDelete, handleUpdate, customActionButton } = props;

View File

@ -11,7 +11,7 @@ import { copyUrlToClipboard } from "helpers/string.helper";
// types
import { IIssue } from "types";
import { IQuickActionProps } from "../list/list-view-types";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
export const CycleIssueQuickActions: React.FC<IQuickActionProps> = (props) => {
const { issue, handleDelete, handleUpdate, handleRemoveFromView, customActionButton } = props;

View File

@ -11,7 +11,7 @@ import { copyUrlToClipboard } from "helpers/string.helper";
// types
import { IIssue } from "types";
import { IQuickActionProps } from "../list/list-view-types";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
export const ModuleIssueQuickActions: React.FC<IQuickActionProps> = (props) => {
const { issue, handleDelete, handleUpdate, handleRemoveFromView, customActionButton } = props;

View File

@ -11,7 +11,7 @@ import { copyUrlToClipboard } from "helpers/string.helper";
// types
import { IIssue } from "types";
import { IQuickActionProps } from "../list/list-view-types";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
export const ProjectIssueQuickActions: React.FC<IQuickActionProps> = (props) => {
const { issue, handleDelete, handleUpdate, customActionButton } = props;

View File

@ -12,10 +12,10 @@ import { AllIssueQuickActions } from "components/issues/issue-layouts/quick-acti
import { Spinner } from "@plane/ui";
// types
import { IIssue, IIssueDisplayFilterOptions, TStaticViewTypes } from "types";
import { IIssueUnGroupedStructure } from "store/issue";
import { IIssueUnGroupedStructure } from "store_legacy/issue";
import { EIssueActions } from "../types";
import { EFilterType, TUnGroupedIssues } from "store/issues/types";
import { EFilterType, TUnGroupedIssues } from "store_legacy/issues/types";
import { EUserWorkspaceRoles } from "constants/workspace";
type Props = {

View File

@ -1,4 +1,4 @@
import { IIssueUnGroupedStructure } from "store/issue";
import { IIssueUnGroupedStructure } from "store_legacy/issue";
import { SpreadsheetView } from "./spreadsheet-view";
import { FC, useCallback } from "react";
import { IIssue, IIssueDisplayFilterOptions } from "types";
@ -13,9 +13,9 @@ import {
IProjectIssuesStore,
IViewIssuesFilterStore,
IViewIssuesStore,
} from "store/issues";
} from "store_legacy/issues";
import { observer } from "mobx-react-lite";
import { EFilterType, TUnGroupedIssues } from "store/issues/types";
import { EFilterType, TUnGroupedIssues } from "store_legacy/issues/types";
import { EIssueActions } from "../types";
import { IQuickActionProps } from "../list/list-view-types";
import { EUserWorkspaceRoles } from "constants/workspace";

View File

@ -16,7 +16,7 @@ import { IssueForm, ConfirmIssueDiscard } from "components/issues";
import type { IIssue } from "types";
// fetch-keys
import { USER_ISSUE, SUB_ISSUES } from "constants/fetch-keys";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
export interface IssuesModalProps {
data?: IIssue | null;

View File

@ -6,7 +6,7 @@ import { IssuePeekOverviewReactions } from "components/issues";
// hooks
import { useMobxStore } from "lib/mobx/store-provider";
// types
import { RootStore } from "store/root";
import { RootStore } from "store_legacy/root";
interface IIssueCommentReaction {
workspaceSlug: string;

View File

@ -5,10 +5,10 @@ import { useRouter } from "next/router";
import { DisplayFiltersSelection, FilterSelection, FiltersDropdown, LayoutSelection } from "components/issues";
// hooks
import { useMobxStore } from "lib/mobx/store-provider";
import { RootStore } from "store/root";
import { RootStore } from "store_legacy/root";
// constants
import { ISSUE_DISPLAY_FILTERS_BY_LAYOUT } from "constants/issue";
import { EFilterType } from "store/issues/types";
import { EFilterType } from "store_legacy/issues/types";
import { IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueFilterOptions, TIssueLayouts } from "types";
export const ProfileIssuesFilter = observer(() => {

View File

@ -9,7 +9,7 @@ import { ProfileIssuesAppliedFiltersRoot } from "components/issues";
import { Spinner } from "@plane/ui";
// hooks
import { useMobxStore } from "lib/mobx/store-provider";
import { RootStore } from "store/root";
import { RootStore } from "store_legacy/root";
interface IProfileIssuesPage {
type: "assigned" | "subscribed" | "created";

View File

@ -2,7 +2,7 @@ import React, { useState } from "react";
import { useRouter } from "next/router";
import { observer } from "mobx-react-lite";
import { useMobxStore } from "lib/mobx/store-provider";
import { RootStore } from "store/root";
import { RootStore } from "store_legacy/root";
// icons
import { LinkIcon, Lock, Pencil, Star } from "lucide-react";
// hooks

View File

@ -7,7 +7,7 @@ import { Button } from "@plane/ui";
import type { IProject } from "types";
// lib
import { useMobxStore } from "lib/mobx/store-provider";
import { RootStore } from "store/root";
import { RootStore } from "store_legacy/root";
// type
type TJoinProjectModalProps = {

View File

@ -9,7 +9,7 @@ import { useMobxStore } from "lib/mobx/store-provider";
import { Button, Loader, ToggleSwitch } from "@plane/ui";
import { Check, CircleDot, Globe2 } from "lucide-react";
import { CustomPopover } from "./popover";
import { IProjectPublishSettings, TProjectPublishViews } from "store/project";
import { IProjectPublishSettings, TProjectPublishViews } from "store_legacy/project";
// hooks
import useToast from "hooks/use-toast";
// types

View File

@ -9,7 +9,7 @@ import { CreateUpdateDraftIssueModal } from "components/issues";
// mobx store
import { useMobxStore } from "lib/mobx/store-provider";
import { observer } from "mobx-react-lite";
import { EProjectStore } from "store/command-palette.store";
import { EProjectStore } from "store_legacy/command-palette.store";
export const WorkspaceSidebarQuickAction = observer(() => {
// states

View File

@ -1,5 +1,5 @@
import { useMobxStore } from "lib/mobx/store-provider";
import { RootStore } from "store/root";
import { RootStore } from "store_legacy/root";
const useEditorSuggestions = () => {
const { mentionsStore }: RootStore = useMobxStore();

View File

@ -2,7 +2,7 @@
import { createContext, useContext } from "react";
// mobx store
import { RootStore } from "store/root";
import { RootStore } from "store_legacy/root";
let rootStore: RootStore = new RootStore();

View File

@ -4,7 +4,7 @@ import { APIService } from "services/api.service";
import type { CycleDateCheckData, ICycle, IIssue } from "types";
// helpers
import { API_BASE_URL } from "helpers/common.helper";
import { IIssueResponse } from "store/issues/types";
import { IIssueResponse } from "store_legacy/issues/types";
export class CycleService extends APIService {
constructor() {

View File

@ -2,7 +2,7 @@
import { APIService } from "services/api.service";
// type
import type { IUser, IIssue, IIssueActivity, ISubIssueResponse, IIssueDisplayProperties } from "types";
import { IIssueResponse } from "store/issues/types";
import { IIssueResponse } from "store_legacy/issues/types";
// helper
import { API_BASE_URL } from "helpers/common.helper";

View File

@ -1,7 +1,7 @@
import { APIService } from "services/api.service";
// helpers
import { API_BASE_URL } from "helpers/common.helper";
import { IIssueResponse } from "store/issues/types";
import { IIssueResponse } from "store_legacy/issues/types";
export class IssueDraftService extends APIService {
constructor() {

View File

@ -2,7 +2,7 @@
import { APIService } from "services/api.service";
// types
import type { IModule, IIssue, ILinkDetails } from "types";
import { IIssueResponse } from "store/issues/types";
import { IIssueResponse } from "store_legacy/issues/types";
import { API_BASE_URL } from "helpers/common.helper";
export class ModuleService extends APIService {

View File

@ -2,7 +2,7 @@ import { API_BASE_URL } from "helpers/common.helper";
// services
import { APIService } from "services/api.service";
// types
import { IProjectPublishSettings } from "store/project";
import { IProjectPublishSettings } from "store_legacy/project";
export class ProjectPublishService extends APIService {
constructor() {

View File

@ -13,7 +13,7 @@ import type {
} from "types";
// helpers
import { API_BASE_URL } from "helpers/common.helper";
import { IIssueResponse } from "store/issues/types";
import { IIssueResponse } from "store_legacy/issues/types";
export class UserService extends APIService {
constructor() {

View File

@ -17,8 +17,8 @@ import {
} from "types";
import { IWorkspaceView } from "types/workspace-views";
// store
import { IIssueGroupWithSubGroupsStructure, IIssueGroupedStructure, IIssueUnGroupedStructure } from "store/issue";
import { IIssueResponse } from "store/issues/types";
import { IIssueGroupWithSubGroupsStructure, IIssueGroupedStructure, IIssueUnGroupedStructure } from "store_legacy/issue";
import { IIssueResponse } from "store_legacy/issues/types";
export class WorkspaceService extends APIService {
constructor() {

View File

@ -11,7 +11,7 @@ import {
IIssueGroupedStructure,
IIssueType,
IIssueUnGroupedStructure,
} from "store/issue";
} from "store_legacy/issue";
export interface IArchivedIssueStore {
loader: boolean;

View File

@ -14,7 +14,7 @@ import {
IIssueGroupedStructure,
IIssueType,
IIssueUnGroupedStructure,
} from "store/issue";
} from "store_legacy/issue";
export interface ICycleIssueStore {
loader: boolean;

Some files were not shown because too many files have changed in this diff Show More