[WEB-4321]chore: workspace views refactor (#7214)
* chore: workspace views reafactor * chore: resolved coderabbit suggestions * chore: added project level workspace filter * chore: added enum for roles * chore: removed redundant type definition * chore: optimised the query --------- Co-authored-by: NarayanBavisetti <narayan3119@gmail.com>
This commit is contained in:
parent
8988cf9a85
commit
64fd0b2830
24 changed files with 381 additions and 172 deletions
2
packages/types/src/layout/gantt.d.ts
vendored
2
packages/types/src/layout/gantt.d.ts
vendored
|
|
@ -9,6 +9,7 @@ export interface IGanttBlock {
|
|||
sort_order: number | undefined;
|
||||
start_date: string | undefined;
|
||||
target_date: string | undefined;
|
||||
project_id: string | undefined;
|
||||
}
|
||||
|
||||
export interface IBlockUpdateData {
|
||||
|
|
@ -25,6 +26,7 @@ export interface IBlockUpdateDependencyData {
|
|||
id: string;
|
||||
start_date?: string;
|
||||
target_date?: string;
|
||||
project_id?: string;
|
||||
}
|
||||
|
||||
export type TGanttViews = "week" | "month" | "quarter";
|
||||
|
|
|
|||
|
|
@ -185,6 +185,7 @@ export const getIssueBlocksStructure = (block: TIssue): IGanttBlock => ({
|
|||
sort_order: block?.sort_order,
|
||||
start_date: block?.start_date ?? undefined,
|
||||
target_date: block?.target_date ?? undefined,
|
||||
project_id: block?.project_id ?? undefined,
|
||||
});
|
||||
|
||||
export const formatTextList = (TextArray: string[]): string => {
|
||||
|
|
@ -260,7 +261,7 @@ export const getComputedDisplayFilters = (
|
|||
displayFilters: IIssueDisplayFilterOptions = {},
|
||||
defaultValues?: IIssueDisplayFilterOptions
|
||||
): IIssueDisplayFilterOptions => {
|
||||
const filters = displayFilters || defaultValues;
|
||||
const filters = !isEmpty(displayFilters) ? displayFilters : defaultValues;
|
||||
|
||||
return {
|
||||
calendar: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue