chore: issue detail refactor (#6803)
This commit is contained in:
parent
983e0fa081
commit
e8718a84fe
5 changed files with 23 additions and 1 deletions
|
|
@ -0,0 +1,10 @@
|
|||
import { FC } from "react";
|
||||
|
||||
export type TWorkItemAdditionalWidgets = {
|
||||
workspaceSlug: string;
|
||||
projectId: string;
|
||||
workItemId: string;
|
||||
disabled: boolean;
|
||||
};
|
||||
|
||||
export const WorkItemAdditionalWidgets: FC<TWorkItemAdditionalWidgets> = (props) => <></>;
|
||||
1
web/ce/components/issues/issue-detail-widgets/index.ts
Normal file
1
web/ce/components/issues/issue-detail-widgets/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from "./additional-widgets";
|
||||
4
web/ce/store/issue/helpers/base-issue-store.ts
Normal file
4
web/ce/store/issue/helpers/base-issue-store.ts
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
import { TIssue } from "@plane/types";
|
||||
import { getIssueIds } from "@/store/issue/helpers/base-issues-utils";
|
||||
|
||||
export const workItemSortWithOrderByExtended = (array: TIssue[], key?: string) => getIssueIds(array);
|
||||
|
|
@ -11,6 +11,7 @@ import {
|
|||
// hooks
|
||||
import { useIssueDetail } from "@/hooks/store";
|
||||
// Plane-web
|
||||
import { WorkItemAdditionalWidgets } from "@/plane-web/components/issues/issue-detail-widgets";
|
||||
import { useTimeLineRelationOptions } from "@/plane-web/components/relations";
|
||||
|
||||
type Props = {
|
||||
|
|
@ -68,6 +69,13 @@ export const IssueDetailWidgetCollapsibles: FC<Props> = observer((props) => {
|
|||
disabled={disabled}
|
||||
/>
|
||||
)}
|
||||
|
||||
<WorkItemAdditionalWidgets
|
||||
workspaceSlug={workspaceSlug}
|
||||
projectId={projectId}
|
||||
workItemId={issueId}
|
||||
disabled={disabled}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -299,7 +299,6 @@ export const IssueDetailsSidebar: React.FC<Props> = observer((props) => {
|
|||
projectId={projectId}
|
||||
workspaceSlug={workspaceSlug}
|
||||
isEditable={isEditable}
|
||||
isPeekView
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue