π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
fix: update root store import in space app. (#4883)
Prateek Shourya268c35a584ac
diff --git a/space/core/store/instance.store.ts b/space/core/store/instance.store.tsindex 759ea33dcb..970824404d 100644--- a/space/core/store/instance.store.ts+++ b/space/core/store/instance.store.ts@@ -2,10 +2,10 @@ import set from "lodash/set";import { observable, action, makeObservable, runInAction } from "mobx";// typesimport { IInstance, IInstanceConfig } from "@plane/types";-// plane web store-import { RootStore } from "@/plane-web/store/root.store";// servicesimport { InstanceService } from "@/services/instance.service";+// store+import { CoreRootStore } from "@/store/root.store";type TError = {status: string;@@ -35,7 +35,7 @@ export class InstanceStore implements IInstanceStore {// servicesinstanceService;- constructor(private store: RootStore) {+ constructor(private store: CoreRootStore) {makeObservable(this, {// observableisLoading: observable.ref,diff --git a/space/core/store/issue-detail.store.ts b/space/core/store/issue-detail.store.tsindex 34d659635e..03ba4bd867 100644--- a/space/core/store/issue-detail.store.ts+++ b/space/core/store/issue-detail.store.ts@@ -1,9 +1,9 @@import { makeObservable, observable, action, runInAction } from "mobx";import { v4 as uuidv4 } from "uuid";-// plane web store-import { RootStore } from "@/plane-web/store/root.store";// servicesimport IssueService from "@/services/issue.service";+// store+import { CoreRootStore } from "@/store/root.store";// typesimport { IIssue, IPeekMode, IVote } from "@/types/issue";@@ -45,11 +45,11 @@ export class IssueDetailStore implements IIssueDetailStore {[key: string]: IIssue;} = {};// root store- rootStore: RootStore;+ rootStore: CoreRootStore;// servicesissueService: IssueService;- constructor(_rootStore: RootStore) {+ constructor(_rootStore: CoreRootStore) {makeObservable(this, {loader: observable.ref,error: observable.ref,diff --git a/space/core/store/issue-filters.store.ts b/space/core/store/issue-filters.store.tsindex 337a806ee5..9e23616713 100644--- a/space/core/store/issue-filters.store.ts+++ b/space/core/store/issue-filters.store.ts@@ -5,8 +5,8 @@ import { action, makeObservable, observable, runInAction } from "mobx";import { computedFn } from "mobx-utils";// constantsimport { ISSUE_DISPLAY_FILTERS_BY_LAYOUT } from "@/constants/issue";-// plane web store-import { RootStore } from "@/plane-web/store/root.store";+// store+import { CoreRootStore } from "@/store/root.store";// typesimport {TIssueLayoutOptions,@@ -47,7 +47,7 @@ export class IssueFilterStore implements IIssueFilterStore {};filters: { [anchor: string]: TIssueFilters } | undefined = undefined;- constructor(private store: RootStore) {+ constructor(private store: CoreRootStore) {makeObservable(this, {// observableslayoutOptions: observable,diff --git a/space/core/store/issue.store.ts b/space/core/store/issue.store.tsindex e5d7003d95..80f5f26bdf 100644--- a/space/core/store/issue.store.ts+++ b/space/core/store/issue.store.ts@@ -2,10 +2,10 @@ import { observable, action, makeObservable, runInAction } from "mobx";import { computedFn } from "mobx-utils";// typesimport { IStateLite } from "@plane/types";-// plane web store-import { RootStore } from "@/plane-web/store/root.store";// servicesimport IssueService from "@/services/issue.service";+// store+import { CoreRootStore } from "@/store/root.store";// typesimport { IIssue, IIssueLabel } from "@/types/issue";@@ -39,11 +39,11 @@ export class IssueStore implements IIssueStore {filteredLabels: string[] = [];filteredPriorities: string[] = [];// root store- rootStore: RootStore;+ rootStore: CoreRootStore;// servicesissueService: IssueService;- constructor(_rootStore: RootStore) {+ constructor(_rootStore: CoreRootStore) {makeObservable(this, {loader: observable.ref,error: observable,diff --git a/space/core/store/mentions.store.ts b/space/core/store/mentions.store.tsindex 3970eecded..77228595c3 100644--- a/space/core/store/mentions.store.ts+++ b/space/core/store/mentions.store.ts@@ -1,8 +1,8 @@import { computed, makeObservable } from "mobx";// editorimport { IMentionHighlight } from "@plane/lite-text-editor";-// plane web store-import { RootStore } from "@/plane-web/store/root.store";+// store+import { CoreRootStore } from "@/store/root.store";export interface IMentionsStore {// mentionSuggestions: IMentionSuggestion[];@@ -13,7 +13,7 @@ export class MentionsStore implements IMentionsStore {// root storerootStore;- constructor(_rootStore: RootStore) {+ constructor(_rootStore: CoreRootStore) {// rootStorethis.rootStore = _rootStore;diff --git a/space/core/store/profile.store.ts b/space/core/store/profile.store.tsindex d62a8da402..d033280589 100644--- a/space/core/store/profile.store.ts+++ b/space/core/store/profile.store.ts@@ -2,10 +2,10 @@ import set from "lodash/set";import { action, makeObservable, observable, runInAction } from "mobx";// typesimport { TUserProfile } from "@plane/types";-// plane web store-import { RootStore } from "@/plane-web/store/root.store";// servicesimport { UserService } from "@/services/user.service";+// store+import { CoreRootStore } from "@/store/root.store";type TError = {status: string;@@ -59,7 +59,7 @@ export class ProfileStore implements IProfileStore {// servicesuserService: UserService;- constructor(public store: RootStore) {+ constructor(public store: CoreRootStore) {makeObservable(this, {// observablesisLoading: observable.ref,diff --git a/space/core/store/publish/publish.store.ts b/space/core/store/publish/publish.store.tsindex aa2e7e0d9d..ce82a8a13f 100644--- a/space/core/store/publish/publish.store.ts+++ b/space/core/store/publish/publish.store.ts@@ -7,8 +7,8 @@ import {TProjectPublishSettings,TProjectPublishViewProps,} from "@plane/types";-// plane web store-import { RootStore } from "@/plane-web/store/root.store";+// store+import { CoreRootStore } from "../root.store";export interface IPublishStore extends TProjectPublishSettings {// computed@@ -39,7 +39,7 @@ export class PublishStore implements IPublishStore {workspace_detail: IWorkspaceLite | undefined;constructor(- private store: RootStore,+ private store: CoreRootStore,publishSettings: TProjectPublishSettings) {this.anchor = publishSettings.anchor;diff --git a/space/core/store/publish/publish_list.store.ts b/space/core/store/publish/publish_list.store.tsindex 05f08e47b0..d4a59f62d5 100644--- a/space/core/store/publish/publish_list.store.ts+++ b/space/core/store/publish/publish_list.store.ts@@ -2,12 +2,11 @@ import set from "lodash/set";import { makeObservable, observable, runInAction, action } from "mobx";// typesimport { TProjectPublishSettings } from "@plane/types";-// plane web store-import { RootStore } from "@/plane-web/store/root.store";// servicesimport PublishService from "@/services/publish.service";// storeimport { PublishStore } from "@/store/publish/publish.store";+import { CoreRootStore } from "@/store/root.store";export interface IPublishListStore {// observables@@ -22,7 +21,7 @@ export class PublishListStore implements IPublishListStore {// servicepublishService;- constructor(private rootStore: RootStore) {+ constructor(private rootStore: CoreRootStore) {makeObservable(this, {// observablespublishMap: observable,diff --git a/space/core/store/user.store.ts b/space/core/store/user.store.tsindex 70d84ef407..33b2cbe60a 100644--- a/space/core/store/user.store.ts+++ b/space/core/store/user.store.ts@@ -2,13 +2,13 @@ import set from "lodash/set";import { action, computed, makeObservable, observable, runInAction } from "mobx";// typesimport { IUser } from "@plane/types";-// plane web store-import { RootStore } from "@/plane-web/store/root.store";// servicesimport { AuthService } from "@/services/auth.service";import { UserService } from "@/services/user.service";// store typesimport { ProfileStore, IProfileStore } from "@/store/profile.store";+// store+import { CoreRootStore } from "@/store/root.store";// typesimport { ActorDetail } from "@/types/issue";@@ -47,7 +47,7 @@ export class UserStore implements IUserStore {userService: UserService;authService: AuthService;- constructor(private store: RootStore) {+ constructor(private store: CoreRootStore) {// storesthis.profile = new ProfileStore(store);// service