[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:
Vamsi Krishna 2025-06-19 16:26:32 +05:30 committed by GitHub
parent 8988cf9a85
commit 64fd0b2830
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 381 additions and 172 deletions

View 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) => <></>;

View file

@ -0,0 +1 @@
export * from "@/store/issue/workspace/issue.store";

View file

@ -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);