forked from github/plane
[WEB-578] feat: projects list filtering and ordering (#3926)
* style: project card UI updated * dev: initialize project filter store and types * chore: implemented filtering logic * chore: implemented ordering * chore: my projects filter added * chore: update created at date filter options * refactor: order by dropdown * style: revert project card UI * fix: project card z-index * fix: members filtering * fix: build errors
This commit is contained in:
committed by
GitHub
parent
c3c6ef8830
commit
69e110f4a8
2
packages/types/src/importer/index.d.ts
vendored
2
packages/types/src/importer/index.d.ts
vendored
@@ -1,7 +1,7 @@
|
||||
export * from "./github-importer";
|
||||
export * from "./jira-importer";
|
||||
|
||||
import { IProjectLite } from "../projects";
|
||||
import { IProjectLite } from "../project";
|
||||
// types
|
||||
import { IUserLite } from "../users";
|
||||
|
||||
|
||||
2
packages/types/src/inbox/inbox-types.d.ts
vendored
2
packages/types/src/inbox/inbox-types.d.ts
vendored
@@ -1,5 +1,5 @@
|
||||
import { TIssue } from "../issues/base";
|
||||
import type { IProjectLite } from "../projects";
|
||||
import type { IProjectLite } from "../project";
|
||||
|
||||
export type TInboxIssueExtended = {
|
||||
completed_at: string | null;
|
||||
|
||||
2
packages/types/src/index.d.ts
vendored
2
packages/types/src/index.d.ts
vendored
@@ -2,7 +2,7 @@ export * from "./users";
|
||||
export * from "./workspace";
|
||||
export * from "./cycle";
|
||||
export * from "./dashboard";
|
||||
export * from "./projects";
|
||||
export * from "./project";
|
||||
export * from "./state";
|
||||
export * from "./issues";
|
||||
export * from "./modules";
|
||||
|
||||
2
packages/types/src/project/index.ts
Normal file
2
packages/types/src/project/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from "./project_filters";
|
||||
export * from "./projects";
|
||||
25
packages/types/src/project/project_filters.d.ts
vendored
Normal file
25
packages/types/src/project/project_filters.d.ts
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
export type TProjectOrderByOptions =
|
||||
| "sort_order"
|
||||
| "name"
|
||||
| "-name"
|
||||
| "created_at"
|
||||
| "-created_at"
|
||||
| "members_length"
|
||||
| "-members_length";
|
||||
|
||||
export type TProjectDisplayFilters = {
|
||||
my_projects?: boolean;
|
||||
order_by?: TProjectOrderByOptions;
|
||||
};
|
||||
|
||||
export type TProjectFilters = {
|
||||
access?: string[] | null;
|
||||
lead?: string[] | null;
|
||||
members?: string[] | null;
|
||||
created_at?: string[] | null;
|
||||
};
|
||||
|
||||
export type TProjectStoredFilters = {
|
||||
display_filters?: TProjectDisplayFilters;
|
||||
filters?: TProjectFilters;
|
||||
};
|
||||
@@ -7,7 +7,7 @@ import type {
|
||||
IWorkspace,
|
||||
IWorkspaceLite,
|
||||
TStateGroups,
|
||||
} from ".";
|
||||
} from "..";
|
||||
|
||||
export type TProjectLogoProps = {
|
||||
in_use: "emoji" | "icon";
|
||||
Reference in New Issue
Block a user