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
This commit is contained in:
parent
999ecc4492
commit
ac50b7a9d9
3 changed files with 4 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
# 777 Wolfpack Grow Ops Manager - Complete Roadmap
|
# 777 Wolfpack Grow Ops Manager - Complete Roadmap
|
||||||
|
|
||||||
**Version**: 0.2.0
|
**Version**: 0.3.0
|
||||||
**Last Updated**: 2025-12-09
|
**Last Updated**: 2025-12-17
|
||||||
**Team**: 777 Wolfpack
|
**Team**: 777 Wolfpack
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import api from './api';
|
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 type DocumentStatus = 'DRAFT' | 'PENDING_APPROVAL' | 'APPROVED' | 'ARCHIVED';
|
||||||
|
|
||||||
export interface Document {
|
export interface Document {
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@ const TYPE_CONFIG: Record<DocumentType, { icon: LucideIcon; badge: string; label
|
||||||
FORM: { icon: ClipboardList, badge: 'badge-accent', label: 'Form' },
|
FORM: { icon: ClipboardList, badge: 'badge-accent', label: 'Form' },
|
||||||
CHECKLIST: { icon: Check, badge: 'badge-success', label: 'Checklist' },
|
CHECKLIST: { icon: Check, badge: 'badge-success', label: 'Checklist' },
|
||||||
GUIDE: { icon: HelpCircle, badge: 'badge-warning', label: 'Guide' },
|
GUIDE: { icon: HelpCircle, badge: 'badge-warning', label: 'Guide' },
|
||||||
|
TRAINING: { icon: Book, badge: 'badge-success', label: 'Training' },
|
||||||
OTHER: { icon: FileText, badge: 'badge', label: 'Document' }
|
OTHER: { icon: FileText, badge: 'badge', label: 'Document' }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue