fix: add TRAINING document type to fix Documents page crash
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run

- Added TRAINING to DocumentType union in documentsApi.ts
- Added TRAINING to TYPE_CONFIG in DocumentsPage.tsx
- Updated ROADMAP.md version to 0.3.0
This commit is contained in:
fullsizemalt 2025-12-17 02:19:08 -08:00
parent 999ecc4492
commit ac50b7a9d9
3 changed files with 4 additions and 3 deletions

View file

@ -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
---

View file

@ -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 {

View file

@ -14,6 +14,7 @@ const TYPE_CONFIG: Record<DocumentType, { icon: LucideIcon; badge: string; label
FORM: { icon: ClipboardList, badge: 'badge-accent', label: 'Form' },
CHECKLIST: { icon: Check, badge: 'badge-success', label: 'Checklist' },
GUIDE: { icon: HelpCircle, badge: 'badge-warning', label: 'Guide' },
TRAINING: { icon: Book, badge: 'badge-success', label: 'Training' },
OTHER: { icon: FileText, badge: 'badge', label: 'Document' }
};