feat: issue link to create relation between issues (#2171)

* feat: issue linking

* fix: search params to filter out selected issue

* style: changed icons

* fix: build error on web-view

* fix: build error

* fix: build error on web-view component
This commit is contained in:
Dakshesh Jain
2023-09-13 19:41:11 +05:30
committed by GitHub
parent 32d08570e7
commit 9bac7cb036
18 changed files with 793 additions and 101 deletions

27
web/types/issues.d.ts vendored
View File

@@ -71,6 +71,15 @@ export interface linkDetails {
url: string;
}
export type IssueRelationType = "duplicate" | "relates_to" | "blocked_by";
export interface IssueRelation {
id: string;
issue: string;
related_issue: string;
relation_type: IssueRelationType;
}
export interface IIssue {
archived_at: string;
assignees: string[];
@@ -78,10 +87,20 @@ export interface IIssue {
assignees_list: string[];
attachment_count: number;
attachments: any[];
blocked_issues: { blocked_issue_detail?: BlockeIssueDetail }[];
blocker_issues: { blocker_issue_detail?: BlockeIssueDetail }[];
blockers_list: string[];
blocks_list: string[];
issue_relations: {
id: string;
issue: string;
issue_detail: BlockeIssueDetail;
relation_type: IssueRelationType;
related_issue: string;
}[];
related_issues: {
id: string;
issue: string;
related_issue_detail: BlockeIssueDetail;
relation_type: IssueRelationType;
related_issue: string;
}[];
bridge_id?: string | null;
completed_at: Date;
created_at: string;

View File

@@ -130,7 +130,7 @@ export interface GithubRepositoriesResponse {
export type TProjectIssuesSearchParams = {
search: string;
parent?: boolean;
blocker_blocked_by?: boolean;
issue_relation?: boolean;
cycle?: boolean;
module?: boolean;
sub_issue?: boolean;