diff --git a/apps/console/src/pages/organizations/documents/DocumentListView.tsx b/apps/console/src/pages/organizations/documents/DocumentListView.tsx index 278a8fb92..a26d82261 100644 --- a/apps/console/src/pages/organizations/documents/DocumentListView.tsx +++ b/apps/console/src/pages/organizations/documents/DocumentListView.tsx @@ -45,6 +45,13 @@ import { import PeopleSelector from "@/components/PeopleSelector"; import type { PeopleSelector_organization$key } from "@/components/__generated__/PeopleSelector_organization.graphql"; import { Textarea } from "@/components/ui/textarea"; +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "@/components/ui/select"; const documentListViewQuery = graphql` query DocumentListViewQuery($organizationId: ID!) { @@ -64,6 +71,7 @@ const documentListViewQuery = graphql` id title description + documentType currentPublishedVersion createdAt updatedAt @@ -229,6 +237,17 @@ function DocumentTableRow({ + + + {document.documentType === "POLICY" + ? "Policy" + : document.documentType === "ISMS" + ? "ISMS" + : "Other"} + + {document.owner?.fullName || "Unassigned"} @@ -306,6 +325,7 @@ function CreateDocumentModal({ const [title, setTitle] = useState(""); const [content, setContent] = useState(""); const [ownerId, setOwnerId] = useState(null); + const [documentType, setDocumentType] = useState<"OTHER" | "ISMS" | "POLICY">("POLICY"); const [createDocument, isCreating] = useMutation(createDocumentMutation); @@ -341,6 +361,7 @@ function CreateDocumentModal({ title, content, ownerId, + documentType, }; createDocument({ @@ -443,7 +464,9 @@ function CreateDocumentModal({ >