[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
12
web/ce/components/views/helper.tsx
Normal file
12
web/ce/components/views/helper.tsx
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { EIssueLayoutTypes } from "@plane/constants";
|
||||
import { TWorkspaceLayoutProps } from "@/components/views/helper";
|
||||
|
||||
export type TLayoutSelectionProps = {
|
||||
onChange: (layout: EIssueLayoutTypes) => void;
|
||||
selectedLayout: EIssueLayoutTypes;
|
||||
workspaceSlug: string;
|
||||
};
|
||||
|
||||
export const GlobalViewLayoutSelection = (props: TLayoutSelectionProps) => <></>;
|
||||
|
||||
export const WorkspaceAdditionalLayouts = (props: TWorkspaceLayoutProps) => <></>;
|
||||
1
web/ce/store/issue/workspace/issue.store.ts
Normal file
1
web/ce/store/issue/workspace/issue.store.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from "@/store/issue/workspace/issue.store";
|
||||
|
|
@ -22,6 +22,7 @@ type BlockData = {
|
|||
sort_order: number | null;
|
||||
start_date?: string | undefined | null;
|
||||
target_date?: string | undefined | null;
|
||||
project_id?: string | undefined | null;
|
||||
};
|
||||
|
||||
export interface IBaseTimelineStore {
|
||||
|
|
@ -194,6 +195,7 @@ export class BaseTimeLineStore implements IBaseTimelineStore {
|
|||
sort_order: blockData?.sort_order ?? undefined,
|
||||
start_date: blockData?.start_date ?? undefined,
|
||||
target_date: blockData?.target_date ?? undefined,
|
||||
project_id: blockData?.project_id ?? undefined,
|
||||
};
|
||||
if (this.currentViewData && (this.currentViewData?.data?.startDate || this.currentViewData?.data?.dayWidth)) {
|
||||
block.position = getItemPositionWidth(this.currentViewData, block);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue