mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
2b168edd99
* feat: peak overview for issues * fix: peek spelling * chore: truncate issue property labels * style: full screen view designed * chore: add comment section * chore: copy link and delete options added * chore: update icons --------- Co-authored-by: Aaryan Khandelwal <aaryan610@Aaryans-MacBook-Pro.local>
76 lines
1.9 KiB
TypeScript
76 lines
1.9 KiB
TypeScript
import {
|
|
PeekOverviewHeader,
|
|
PeekOverviewIssueActivity,
|
|
PeekOverviewIssueDetails,
|
|
PeekOverviewIssueProperties,
|
|
TPeekOverviewModes,
|
|
} from "components/issues";
|
|
import { IIssue } from "types";
|
|
|
|
type Props = {
|
|
handleClose: () => void;
|
|
handleDeleteIssue: () => void;
|
|
handleUpdateIssue: (issue: Partial<IIssue>) => Promise<void>;
|
|
issue: IIssue;
|
|
mode: TPeekOverviewModes;
|
|
readOnly: boolean;
|
|
setMode: (mode: TPeekOverviewModes) => void;
|
|
workspaceSlug: string;
|
|
};
|
|
|
|
export const SidePeekView: React.FC<Props> = ({
|
|
handleClose,
|
|
handleDeleteIssue,
|
|
handleUpdateIssue,
|
|
issue,
|
|
mode,
|
|
readOnly,
|
|
setMode,
|
|
workspaceSlug,
|
|
}) => (
|
|
<div className="h-full w-full flex flex-col overflow-hidden">
|
|
<div className="w-full p-5">
|
|
<PeekOverviewHeader
|
|
handleClose={handleClose}
|
|
handleDeleteIssue={handleDeleteIssue}
|
|
issue={issue}
|
|
mode={mode}
|
|
setMode={setMode}
|
|
workspaceSlug={workspaceSlug}
|
|
/>
|
|
</div>
|
|
<div className="h-full w-full px-6 overflow-y-auto">
|
|
{/* issue title and description */}
|
|
<div className="w-full">
|
|
<PeekOverviewIssueDetails
|
|
handleUpdateIssue={handleUpdateIssue}
|
|
issue={issue}
|
|
readOnly={readOnly}
|
|
workspaceSlug={workspaceSlug}
|
|
/>
|
|
</div>
|
|
{/* issue properties */}
|
|
<div className="w-full mt-10">
|
|
<PeekOverviewIssueProperties
|
|
handleDeleteIssue={handleDeleteIssue}
|
|
issue={issue}
|
|
mode={mode}
|
|
onChange={handleUpdateIssue}
|
|
readOnly={readOnly}
|
|
workspaceSlug={workspaceSlug}
|
|
/>
|
|
</div>
|
|
{/* divider */}
|
|
<div className="h-[1] w-full border-t border-custom-border-200 my-5" />
|
|
{/* issue activity/comments */}
|
|
<div className="w-full pb-5">
|
|
<PeekOverviewIssueActivity
|
|
workspaceSlug={workspaceSlug}
|
|
issue={issue}
|
|
readOnly={readOnly}
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|