Add document types filtering and rename ISMS to GOVERNANCE
Adds 5 new document types (PLAN, REGISTER, RECORD, REPORT, TEMPLATE), renames ISMS to GOVERNANCE, and implements type-based filtering across GraphQL, MCP, and frontend. Includes migration, enum updates, filter implementation with SQL array support, and frontend dropdown UI with Relay refetch pattern. Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -1,17 +1,27 @@
|
||||
type Translator = (s: string) => string;
|
||||
|
||||
export const documentTypes = ["OTHER", "ISMS", "POLICY", "PROCEDURE"] as const;
|
||||
export const documentTypes = ["OTHER", "GOVERNANCE", "POLICY", "PROCEDURE", "PLAN", "REGISTER", "RECORD", "REPORT", "TEMPLATE"] as const;
|
||||
|
||||
export function getDocumentTypeLabel(__: Translator, type: string) {
|
||||
switch (type) {
|
||||
case "OTHER":
|
||||
return __("Other");
|
||||
case "ISMS":
|
||||
return __("ISMS");
|
||||
case "GOVERNANCE":
|
||||
return __("Governance");
|
||||
case "POLICY":
|
||||
return __("Policy");
|
||||
case "PROCEDURE":
|
||||
return __("Procedure");
|
||||
case "PLAN":
|
||||
return __("Plan");
|
||||
case "REGISTER":
|
||||
return __("Register");
|
||||
case "RECORD":
|
||||
return __("Record");
|
||||
case "REPORT":
|
||||
return __("Report");
|
||||
case "TEMPLATE":
|
||||
return __("Template");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user