Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

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.ts
index 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";
// types
import { IInstance, IInstanceConfig } from "@plane/types";
-// plane web store
-import { RootStore } from "@/plane-web/store/root.store";
// services
import { 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 {
// services
instanceService;
- constructor(private store: RootStore) {
+ constructor(private store: CoreRootStore) {
makeObservable(this, {
// observable
isLoading: observable.ref,
diff --git a/space/core/store/issue-detail.store.ts b/space/core/store/issue-detail.store.ts
index 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";
// services
import IssueService from "@/services/issue.service";
+// store
+import { CoreRootStore } from "@/store/root.store";
// types
import { IIssue, IPeekMode, IVote } from "@/types/issue";
@@ -45,11 +45,11 @@ export class IssueDetailStore implements IIssueDetailStore {
[key: string]: IIssue;
} = {};
// root store
- rootStore: RootStore;
+ rootStore: CoreRootStore;
// services
issueService: 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.ts
index 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";
// constants
import { 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";
// types
import {
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, {
// observables
layoutOptions: observable,
diff --git a/space/core/store/issue.store.ts b/space/core/store/issue.store.ts
index 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";
// types
import { IStateLite } from "@plane/types";
-// plane web store
-import { RootStore } from "@/plane-web/store/root.store";
// services
import IssueService from "@/services/issue.service";
+// store
+import { CoreRootStore } from "@/store/root.store";
// types
import { IIssue, IIssueLabel } from "@/types/issue";
@@ -39,11 +39,11 @@ export class IssueStore implements IIssueStore {
filteredLabels: string[] = [];
filteredPriorities: string[] = [];
// root store
- rootStore: RootStore;
+ rootStore: CoreRootStore;
// services
issueService: 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.ts
index 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";
// editor
import { 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 store
rootStore;
- constructor(_rootStore: RootStore) {
+ constructor(_rootStore: CoreRootStore) {
// rootStore
this.rootStore = _rootStore;
diff --git a/space/core/store/profile.store.ts b/space/core/store/profile.store.ts
index 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";
// types
import { TUserProfile } from "@plane/types";
-// plane web store
-import { RootStore } from "@/plane-web/store/root.store";
// services
import { 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 {
// services
userService: UserService;
- constructor(public store: RootStore) {
+ constructor(public store: CoreRootStore) {
makeObservable(this, {
// observables
isLoading: observable.ref,
diff --git a/space/core/store/publish/publish.store.ts b/space/core/store/publish/publish.store.ts
index 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.ts
index 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";
// types
import { TProjectPublishSettings } from "@plane/types";
-// plane web store
-import { RootStore } from "@/plane-web/store/root.store";
// services
import PublishService from "@/services/publish.service";
// store
import { 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 {
// service
publishService;
- constructor(private rootStore: RootStore) {
+ constructor(private rootStore: CoreRootStore) {
makeObservable(this, {
// observables
publishMap: observable,
diff --git a/space/core/store/user.store.ts b/space/core/store/user.store.ts
index 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";
// types
import { IUser } from "@plane/types";
-// plane web store
-import { RootStore } from "@/plane-web/store/root.store";
// services
import { AuthService } from "@/services/auth.service";
import { UserService } from "@/services/user.service";
// store types
import { ProfileStore, IProfileStore } from "@/store/profile.store";
+// store
+import { CoreRootStore } from "@/store/root.store";
// types
import { 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) {
// stores
this.profile = new ProfileStore(store);
// service