Files
plane/web/ee/store/root.store.ts
Akshita Goyal 501d43a2c2 [WEB-2846] Feat: stickies (#2014)
* feat: stickies ui

* chore: created crud endpoints for sticky

* feat: integrations

* fix: tooltip

* fix: recents

* fix: inputs

* fix: minor issues

* fix: reduced debounce timer + handled no name

* feat: added formatting options in sticky

* chore: new sticky flow added

* fix: color

* fix: build

* fix: minor fixes

* fix: lint

* fix: resolved review comments

* fix: added empty state

* fix: masonry layout

* fix: added pagination

* fix: masonry layout

* fix: type ignored

* chore: feature flagged

---------

Co-authored-by: NarayanBavisetti <narayan3119@gmail.com>
2024-12-31 17:15:07 +05:30

175 lines
6.8 KiB
TypeScript

// plane web store
import { ICycleStore, CycleStore } from "@/plane-web/store/cycle.store";
import { FeatureFlagsStore, IFeatureFlagsStore } from "@/plane-web/store/feature-flags/feature-flags.store";
import {
IIssuePropertiesActivityStore,
IIssueTypesStore,
IssuePropertiesActivityStore,
IssueTypes,
} from "@/plane-web/store/issue-types";
import {
IWorkspaceNotificationStore,
WorkspaceNotificationStore,
} from "@/plane-web/store/notifications/notifications.store";
import { IPublishPageStore, PublishPageStore } from "@/plane-web/store/pages/publish-page.store";
import { IWorkspacePageStore, WorkspacePageStore } from "@/plane-web/store/pages/workspace-page.store";
import {
ISelfHostedSubscriptionStore,
SelfHostedSubscriptionStore,
} from "@/plane-web/store/subscription/self-hosted-subscription.store";
import {
IWorkspaceSubscriptionStore,
WorkspaceSubscriptionStore,
} from "@/plane-web/store/subscription/subscription.store";
import { ITeamRootStore, TeamRootStore } from "@/plane-web/store/team";
import { TimeLineStore } from "@/plane-web/store/timeline";
import { IWorkspaceFeatureStore, WorkspaceFeatureStore } from "@/plane-web/store/workspace-feature.store";
import {
IProjectFilterStore,
ProjectFilterStore,
IWorkspaceProjectStatesStore,
WorkspaceProjectStatesStore,
} from "@/plane-web/store/workspace-project-states";
import {
IWorkspaceWorklogStore,
WorkspaceWorklogStore,
IWorkspaceWorklogDownloadStore,
WorkspaceWorklogDownloadStore,
} from "@/plane-web/store/workspace-worklog";
// store
import { CoreRootStore } from "@/store/root.store";
// importers
import {
IJiraStore,
JiraStore,
IJiraServerStore,
JiraServerStore,
ILinearStore,
LinearStore,
IAsanaStore,
AsanaStore,
} from "./importers";
// initiative
import { IInitiativeFilterStore, InitiativeFilterStore } from "./initiatives/initiatives-filter.store";
import { IInitiativeStore, InitiativeStore } from "./initiatives/initiatives.store";
// integrations
import {
ISlackStore,
SlackStore,
IGithubStore,
GithubStore,
IGitlabStore,
GitlabStore,
IConnectionStore,
ConnectionStore,
} from "./integrations";
// pi chat
import { IPiChatStore, PiChatStore } from "./pi-chat/pi-chat";
// timeline
import { IProjectStore, ProjectStore } from "./projects/projects";
import { IStickyStore, StickyStore } from "./sticky/sticky.store";
import { ITimelineStore } from "./timeline";
export class RootStore extends CoreRootStore {
workspacePages: IWorkspacePageStore;
publishPage: IPublishPageStore;
workspaceSubscription: IWorkspaceSubscriptionStore;
workspaceWorklogs: IWorkspaceWorklogStore;
workspaceWorklogDownloads: IWorkspaceWorklogDownloadStore;
featureFlags: IFeatureFlagsStore;
selfHostedSubscription: ISelfHostedSubscriptionStore;
workspaceFeatures: IWorkspaceFeatureStore;
workspaceProjectStates: IWorkspaceProjectStatesStore;
projectFilter: IProjectFilterStore;
issueTypes: IIssueTypesStore;
issuePropertiesActivity: IIssuePropertiesActivityStore;
cycle: ICycleStore;
piChat: IPiChatStore;
timelineStore: ITimelineStore;
projectDetails: IProjectStore;
teamRoot: ITeamRootStore;
workspaceNotification: IWorkspaceNotificationStore;
// importers
jiraImporter: IJiraStore;
jiraServerImporter: IJiraServerStore;
linearImporter: ILinearStore;
asanaImporter: IAsanaStore;
// integrations
connections: IConnectionStore;
slackIntegration: ISlackStore;
githubIntegration: IGithubStore;
gitlabIntegration: IGitlabStore;
initiativeFilterStore: IInitiativeFilterStore;
initiativeStore: IInitiativeStore;
stickyStore: IStickyStore;
constructor() {
super();
this.workspacePages = new WorkspacePageStore(this);
this.publishPage = new PublishPageStore(this);
this.workspaceSubscription = new WorkspaceSubscriptionStore(this);
this.workspaceWorklogs = new WorkspaceWorklogStore(this);
this.workspaceWorklogDownloads = new WorkspaceWorklogDownloadStore(this);
this.featureFlags = new FeatureFlagsStore(this);
this.selfHostedSubscription = new SelfHostedSubscriptionStore(this);
this.workspaceFeatures = new WorkspaceFeatureStore(this);
this.workspaceProjectStates = new WorkspaceProjectStatesStore(this);
this.issueTypes = new IssueTypes(this);
this.issuePropertiesActivity = new IssuePropertiesActivityStore(this);
this.projectFilter = new ProjectFilterStore(this);
this.cycle = new CycleStore(this);
this.piChat = new PiChatStore(this);
this.timelineStore = new TimeLineStore(this);
this.projectDetails = new ProjectStore(this);
this.teamRoot = new TeamRootStore(this);
this.workspaceNotification = new WorkspaceNotificationStore(this);
this.stickyStore = new StickyStore();
// importers
this.jiraImporter = new JiraStore(this);
this.jiraServerImporter = new JiraServerStore(this);
this.linearImporter = new LinearStore(this);
this.asanaImporter = new AsanaStore(this);
// integrations
this.connections = new ConnectionStore(this);
this.slackIntegration = new SlackStore(this);
this.githubIntegration = new GithubStore(this);
this.gitlabIntegration = new GitlabStore(this);
this.initiativeFilterStore = new InitiativeFilterStore(this);
this.initiativeStore = new InitiativeStore(this, this.initiativeFilterStore);
}
resetOnSignOut() {
super.resetOnSignOut();
this.workspacePages = new WorkspacePageStore(this);
this.publishPage = new PublishPageStore(this);
this.workspaceSubscription = new WorkspaceSubscriptionStore(this);
this.workspaceWorklogs = new WorkspaceWorklogStore(this);
this.workspaceWorklogDownloads = new WorkspaceWorklogDownloadStore(this);
this.featureFlags = new FeatureFlagsStore(this);
this.selfHostedSubscription = new SelfHostedSubscriptionStore(this);
this.workspaceFeatures = new WorkspaceFeatureStore(this);
this.workspaceProjectStates = new WorkspaceProjectStatesStore(this);
this.issueTypes = new IssueTypes(this);
this.issuePropertiesActivity = new IssuePropertiesActivityStore(this);
this.projectFilter = new ProjectFilterStore(this);
this.cycle = new CycleStore(this);
this.piChat = new PiChatStore(this);
this.timelineStore = new TimeLineStore(this);
this.projectDetails = new ProjectStore(this);
this.teamRoot = new TeamRootStore(this);
this.stickyStore = new StickyStore();
// importers
this.jiraImporter = new JiraStore(this);
this.jiraServerImporter = new JiraServerStore(this);
this.linearImporter = new LinearStore(this);
this.asanaImporter = new AsanaStore(this);
// integrations
this.connections = new ConnectionStore(this);
this.slackIntegration = new SlackStore(this);
this.githubIntegration = new GithubStore(this);
this.gitlabIntegration = new GitlabStore(this);
this.initiativeFilterStore = new InitiativeFilterStore(this);
this.initiativeStore = new InitiativeStore(this, this.initiativeFilterStore);
}
}