chore: implemented assigned profiles issues and filters and updated workflow in list layout (#2462)

This commit is contained in:
guru_sainath 2023-10-17 16:23:54 +05:30 committed by GitHub
parent 4bd73630d1
commit 123634f5e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
45 changed files with 2750 additions and 1120 deletions

View file

@ -31,6 +31,7 @@ export interface IProjectStore {
// computed
searchedProjects: IProject[];
workspaceProjects: IProject[];
projectStatesByGroups: IStateResponse | null;
projectStates: IState[] | null;
projectLabels: IIssueLabels[] | null;
@ -119,6 +120,7 @@ export class ProjectStore implements IProjectStore {
// computed
searchedProjects: computed,
workspaceProjects: computed,
projectStatesByGroups: computed,
projectStates: computed,
projectLabels: computed,
@ -176,6 +178,11 @@ export class ProjectStore implements IProjectStore {
);
}
get workspaceProjects() {
if (!this.rootStore.workspace.workspaceSlug) return [];
return this.projects?.[this.rootStore.workspace.workspaceSlug];
}
get joinedProjects() {
if (!this.rootStore.workspace.workspaceSlug) return [];
return this.projects?.[this.rootStore.workspace.workspaceSlug]?.filter((p) => p.is_member);