From ac50b7a9d9d53e98d30c725972e9964d862251a4 Mon Sep 17 00:00:00 2001 From: fullsizemalt <106900403+fullsizemalt@users.noreply.github.com> Date: Wed, 17 Dec 2025 02:19:08 -0800 Subject: [PATCH] fix: add TRAINING document type to fix Documents page crash - Added TRAINING to DocumentType union in documentsApi.ts - Added TRAINING to TYPE_CONFIG in DocumentsPage.tsx - Updated ROADMAP.md version to 0.3.0 --- ROADMAP.md | 4 ++-- frontend/src/lib/documentsApi.ts | 2 +- frontend/src/pages/DocumentsPage.tsx | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ROADMAP.md b/ROADMAP.md index 07722ca..ef49c0f 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -1,7 +1,7 @@ # 777 Wolfpack Grow Ops Manager - Complete Roadmap -**Version**: 0.2.0 -**Last Updated**: 2025-12-09 +**Version**: 0.3.0 +**Last Updated**: 2025-12-17 **Team**: 777 Wolfpack --- diff --git a/frontend/src/lib/documentsApi.ts b/frontend/src/lib/documentsApi.ts index 7cff225..5ebb804 100644 --- a/frontend/src/lib/documentsApi.ts +++ b/frontend/src/lib/documentsApi.ts @@ -1,6 +1,6 @@ import api from './api'; -export type DocumentType = 'SOP' | 'POLICY' | 'FORM' | 'CHECKLIST' | 'GUIDE' | 'OTHER'; +export type DocumentType = 'SOP' | 'POLICY' | 'FORM' | 'CHECKLIST' | 'GUIDE' | 'TRAINING' | 'OTHER'; export type DocumentStatus = 'DRAFT' | 'PENDING_APPROVAL' | 'APPROVED' | 'ARCHIVED'; export interface Document { diff --git a/frontend/src/pages/DocumentsPage.tsx b/frontend/src/pages/DocumentsPage.tsx index 2bcc1f4..9a82531 100644 --- a/frontend/src/pages/DocumentsPage.tsx +++ b/frontend/src/pages/DocumentsPage.tsx @@ -14,6 +14,7 @@ const TYPE_CONFIG: Record