diff --git a/frontend/components/IssueModal/IssueLinkedIssues.tsx b/frontend/components/IssueModal/IssueLinkedIssues.tsx new file mode 100644 index 0000000..2fef678 --- /dev/null +++ b/frontend/components/IssueModal/IssueLinkedIssues.tsx @@ -0,0 +1,63 @@ +import React from 'react'; +import { CheckIcon, XMarkIcon } from '@heroicons/react/20/solid'; +import { priorityToIcon } from '@/components/Icons'; + +const IssueLinkedIssues = ({ issueId }: { issueId?: string }) => { + // TODO: This is sample data we need to pull from backend + // TODO: Restructure data to group by link type and then map over each group + const blockedIssues = [ + { + id: 1, + key: 'ticket-1', + subject: 'PLACEHOLDER: blocked ticket subject', + priority: 3, + assignee: 'test', + status: 'in progress', + }, + { + id: 2, + key: 'ticket-2', + subject: 'PLACEHOLDER: next ticket name', + priority: 5, + assignee: 'test', + status: 'done', + }, + ]; + + return ( + <> +
Linked Issues
+ {blockedIssues.map(({ id, key, subject, priority, status }) => ( +
+
+
+ +
+
+ {key} +
+
+
+
+ {subject} +
+
+
+
{priorityToIcon(priority)}
+
+ {status} +
+
+ +
+
+
+ ))} + + ); +}; + +export default IssueLinkedIssues; diff --git a/frontend/components/IssueModal/IssueOverview.tsx b/frontend/components/IssueModal/IssueOverview.tsx index b01d926..4e42945 100644 --- a/frontend/components/IssueModal/IssueOverview.tsx +++ b/frontend/components/IssueModal/IssueOverview.tsx @@ -8,6 +8,7 @@ import IssueComments from '@/components/IssueModal/IssueComments'; import ResizeHandle from '@/components/Panels/ResizeHandle'; import IssueStatusDropdown from '@/components/IssueModal/IssueStatusDropdown'; import IssueDetails from '@/components/IssueModal/IssueDetails'; +import IssueLinkedIssues from '@/components/IssueModal/IssueLinkedIssues'; const defaultLayout = [70, 30]; @@ -42,6 +43,9 @@ const IssueOverview = ({
+
+ +
diff --git a/frontend/gql/__generated__/graphql.ts b/frontend/gql/__generated__/graphql.ts index 4c6e33a..b8a2aed 100644 --- a/frontend/gql/__generated__/graphql.ts +++ b/frontend/gql/__generated__/graphql.ts @@ -352,6 +352,8 @@ export type QueryBoardInput = { export type QueryIssueInput = { id?: InputMaybe; projectId?: InputMaybe; + search?: InputMaybe; + searchOperator?: InputMaybe; sortBy?: InputMaybe>>; };