refactor: enhance components modularity and introduce new UI componenets (#6192)
* feat: add navigation dropdown component * chore: enhance title/ description loader and componenet modularity * chore: issue store filter update * chore: added few icons to ui package * chore: improvements for tabs componenet * chore: enhance sidebar modularity * chore: update issue and router store to add support for additional issue layouts * chore: enhanced cycle componenets modularity * feat: added project grouping header for cycles list * chore: enhanced project dropdown componenet by adding multiple selection functionality * chore: enhanced rich text editor modularity by taking members ids as props for mentions * chore: added functionality to filter disabled layouts in issue-layout dropdown * chore: added support to pass project ids as props in project card list * feat: multi select project modal * chore: seperate out project componenet for reusability * chore: command pallete store improvements * fix: build errors
This commit is contained in:
parent
9ad8b43408
commit
54f828cbfa
82 changed files with 1044 additions and 320 deletions
|
|
@ -1,12 +1,26 @@
|
|||
import { makeObservable } from "mobx";
|
||||
import { computed, makeObservable } from "mobx";
|
||||
// types / constants
|
||||
import { BaseCommandPaletteStore, IBaseCommandPaletteStore } from "@/store/base-command-palette.store";
|
||||
|
||||
export type ICommandPaletteStore = IBaseCommandPaletteStore;
|
||||
export interface ICommandPaletteStore extends IBaseCommandPaletteStore {
|
||||
// computed
|
||||
isAnyModalOpen: boolean;
|
||||
}
|
||||
|
||||
export class CommandPaletteStore extends BaseCommandPaletteStore implements ICommandPaletteStore {
|
||||
constructor() {
|
||||
super();
|
||||
makeObservable(this, {});
|
||||
makeObservable(this, {
|
||||
// computed
|
||||
isAnyModalOpen: computed,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks whether any modal is open or not in the base command palette.
|
||||
* @returns boolean
|
||||
*/
|
||||
get isAnyModalOpen(): boolean {
|
||||
return Boolean(super.getCoreModalsState());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
12
web/ce/store/issue/team-views/filter.store.ts
Normal file
12
web/ce/store/issue/team-views/filter.store.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { IProjectViewIssuesFilter, ProjectViewIssuesFilter } from "@/store/issue/project-views";
|
||||
import { IIssueRootStore } from "@/store/issue/root.store";
|
||||
|
||||
// @ts-nocheck - This class will never be used, extending similar class to avoid type errors
|
||||
export type ITeamViewIssuesFilter = IProjectViewIssuesFilter;
|
||||
|
||||
// @ts-nocheck - This class will never be used, extending similar class to avoid type errors
|
||||
export class TeamViewIssuesFilter extends ProjectViewIssuesFilter implements IProjectViewIssuesFilter {
|
||||
constructor(_rootStore: IIssueRootStore) {
|
||||
super(_rootStore);
|
||||
}
|
||||
}
|
||||
2
web/ce/store/issue/team-views/index.ts
Normal file
2
web/ce/store/issue/team-views/index.ts
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
export * from "./filter.store";
|
||||
export * from "./issue.store";
|
||||
13
web/ce/store/issue/team-views/issue.store.ts
Normal file
13
web/ce/store/issue/team-views/issue.store.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import { IProjectViewIssues, ProjectViewIssues } from "@/store/issue/project-views";
|
||||
import { IIssueRootStore } from "@/store/issue/root.store";
|
||||
import { ITeamViewIssuesFilter } from "./filter.store";
|
||||
|
||||
// @ts-nocheck - This class will never be used, extending similar class to avoid type errors
|
||||
export type ITeamViewIssues = IProjectViewIssues;
|
||||
|
||||
// @ts-nocheck - This class will never be used, extending similar class to avoid type errors
|
||||
export class TeamViewIssues extends ProjectViewIssues implements IProjectViewIssues {
|
||||
constructor(_rootStore: IIssueRootStore, teamViewFilterStore: ITeamViewIssuesFilter) {
|
||||
super(_rootStore, teamViewFilterStore);
|
||||
}
|
||||
}
|
||||
12
web/ce/store/issue/team/filter.store.ts
Normal file
12
web/ce/store/issue/team/filter.store.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { IProjectIssuesFilter, ProjectIssuesFilter } from "@/store/issue/project";
|
||||
import { IIssueRootStore } from "@/store/issue/root.store";
|
||||
|
||||
// @ts-nocheck - This class will never be used, extending similar class to avoid type errors
|
||||
export type ITeamIssuesFilter = IProjectIssuesFilter;
|
||||
|
||||
// @ts-nocheck - This class will never be used, extending similar class to avoid type errors
|
||||
export class TeamIssuesFilter extends ProjectIssuesFilter implements IProjectIssuesFilter {
|
||||
constructor(_rootStore: IIssueRootStore) {
|
||||
super(_rootStore);
|
||||
}
|
||||
}
|
||||
2
web/ce/store/issue/team/index.ts
Normal file
2
web/ce/store/issue/team/index.ts
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
export * from "./filter.store";
|
||||
export * from "./issue.store";
|
||||
13
web/ce/store/issue/team/issue.store.ts
Normal file
13
web/ce/store/issue/team/issue.store.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import { IProjectIssues, ProjectIssues } from "@/store/issue/project";
|
||||
import { IIssueRootStore } from "@/store/issue/root.store";
|
||||
import { ITeamIssuesFilter } from "./filter.store";
|
||||
|
||||
// @ts-nocheck - This class will never be used, extending similar class to avoid type errors
|
||||
export type ITeamIssues = IProjectIssues;
|
||||
|
||||
// @ts-nocheck - This class will never be used, extending similar class to avoid type errors
|
||||
export class TeamIssues extends ProjectIssues implements IProjectIssues {
|
||||
constructor(_rootStore: IIssueRootStore, teamIssueFilterStore: ITeamIssuesFilter) {
|
||||
super(_rootStore, teamIssueFilterStore);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue