[WEB-2442] feat: Revamp Timeline Layout (#5915)

* chore: added issue relations in issue listing

* chore: added pagination for issue detail endpoint

* chore: bulk date update endpoint

* chore: appended the target date

* chore: issue relation new types defined

* fix: order by and issue filters

* fix: passed order by in pagination

* chore: changed the key for issue dates

* Revamp Timeline Layout

* fix block dragging

* minor ui fixes

* improve auto scroll UX

* remove unused import

* fix timeline layout heights

* modify base timeline store

* Segregate issue relation types

---------

Co-authored-by: NarayanBavisetti <narayan3119@gmail.com>
This commit is contained in:
rahulramesha 2024-10-28 18:03:31 +05:30 committed by GitHub
parent f986bd83fd
commit a88a39fb1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
112 changed files with 2918 additions and 2641 deletions

View file

@ -289,6 +289,7 @@ module.exports = {
},
// scale down font sizes to 90% of default
fontSize: {
"2xs": "0.5625rem",
xs: "0.675rem",
sm: "0.7875rem",
base: "0.9rem",

View file

@ -1,8 +1,8 @@
import { EDurationFilters } from "./enums";
import { IIssueActivity, TIssuePriorities } from "./issues";
import { TIssue } from "./issues/issue";
import { TIssueRelationTypes } from "./issues/issue_relation";
import { TStateGroups } from "./state";
import { TIssueRelationTypes } from "@/plane-web/types";
export type TWidgetKeys =
| "overview_stats"

View file

@ -2,6 +2,7 @@ import { TIssuePriorities } from "../issues";
import { TIssueAttachment } from "./issue_attachment";
import { TIssueLink } from "./issue_link";
import { TIssueReaction } from "./issue_reaction";
import { TIssueRelationTypes } from "@/plane-web/types";
// new issue structure types
@ -40,6 +41,14 @@ export type TBaseIssue = {
is_draft: boolean;
};
export type IssueRelation = {
id: string;
name: string;
project_id: string;
relation_type: TIssueRelationTypes;
sequence_id: number;
};
export type TIssue = TBaseIssue & {
description_html?: string;
is_subscribed?: boolean;
@ -47,6 +56,8 @@ export type TIssue = TBaseIssue & {
issue_reactions?: TIssueReaction[];
issue_attachments?: TIssueAttachment[];
issue_link?: TIssueLink[];
issue_relation?: IssueRelation[];
issue_related?: IssueRelation[];
// tempId is used for optimistic updates. It is not a part of the API response.
tempId?: string;
// sourceIssueId is used to store the original issue id when creating a copy of an issue. Used in cloning property values. It is not a part of the API response.

View file

@ -1,11 +1,6 @@
import { TIssueRelationTypes } from "@/plane-web/types";
import { TIssue } from "./issues";
export type TIssueRelationTypes =
| "blocking"
| "blocked_by"
| "duplicate"
| "relates_to";
export type TIssueRelation = Record<TIssueRelationTypes, TIssue[]>;
export type TIssueRelationMap = {

View file

@ -78,7 +78,8 @@ export type TIssueParams =
| "cursor"
| "per_page"
| "issue_type"
| "layout";
| "layout"
| "expand";
export type TCalendarLayouts = "month" | "week";