functional issue creation

This commit is contained in:
Oliver Bryan
2025-12-30 05:32:52 +00:00
parent cad3fec8ba
commit daee3fb526
3 changed files with 234 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
import type { IssueResponse, OrganisationResponse, ProjectResponse, UserRecord } from "@issue/shared";
import { useEffect, useRef, useState } from "react";
import { Link } from "react-router-dom";
import { CreateIssue } from "@/components/create-issue";
import { CreateOrganisation } from "@/components/create-organisation";
import { CreateProject } from "@/components/create-project";
import { IssueDetailPane } from "@/components/issue-detail-pane";
@@ -273,6 +274,15 @@ function Index() {
</SelectContent>
</Select>
)}
{selectedOrganisation && selectedProject && (
<CreateIssue
projectId={selectedProject?.Project.id}
completeAction={async () => {
if (!selectedProject) return;
await refetchIssues(selectedProject.Project.key);
}}
/>
)}
</div>
<div className="flex gap-1 items-center">