tenantpilot/components/policy-explorer
Ahmed Darrazi 4288bc7884
All checks were successful
Trigger Cloudarix Deploy / call-webhook (push) Successful in 2s
feat(policy-explorer-v2): implement Phase 5 - Bulk CSV Export
 New Features (Tasks T029-T037)
- Client-side CSV export for selected rows
- Server-side CSV export for all filtered results (max 5000)
- RFC 4180 compliant CSV formatting with proper escaping
- UTF-8 BOM for Excel compatibility
- ExportButton dropdown with two export modes
- Warning UI when results exceed 5000 rows
- Loading state with spinner during server export

📦 New Files
- lib/utils/csv-export.ts - CSV generation utilities
- components/policy-explorer/ExportButton.tsx - Export dropdown

🔧 Updates
- PolicyTableToolbar now includes ExportButton
- PolicyExplorerV2Client passes export props
- Filename generation with timestamp and row count

 Zero TypeScript compilation errors
 All Phase 5 tasks complete (T029-T037)
 Ready for Phase 6 (Enhanced Detail View)

Refs: specs/004-policy-explorer-v2/tasks.md Phase 5
2025-12-10 00:30:33 +01:00
..
ColumnVisibilityMenu.tsx feat(policy-explorer-v2): implement MVP Phase 1-3 2025-12-10 00:18:05 +01:00
ExportButton.tsx feat(policy-explorer-v2): implement Phase 5 - Bulk CSV Export 2025-12-10 00:30:33 +01:00
PolicyDetailSheet.tsx feat: Improve policy type badge system with definitive mapping 2025-12-08 11:31:45 +01:00
PolicySearchContainer.tsx fix: Resolve search infinite loop issue 2025-12-07 22:59:07 +01:00
PolicyTable.tsx feat: Improve policy type badge system with definitive mapping 2025-12-08 11:31:45 +01:00
PolicyTableColumns.tsx feat(policy-explorer-v2): implement MVP Phase 1-3 2025-12-10 00:18:05 +01:00
PolicyTablePagination.tsx feat(policy-explorer-v2): implement MVP Phase 1-3 2025-12-10 00:18:05 +01:00
PolicyTableToolbar.tsx feat(policy-explorer-v2): implement Phase 5 - Bulk CSV Export 2025-12-10 00:30:33 +01:00
PolicyTableV2.tsx feat(policy-explorer-v2): implement MVP Phase 1-3 2025-12-10 00:18:05 +01:00
PolicyTypeBadge.tsx feat: Improve policy type badge system with definitive mapping 2025-12-08 11:31:45 +01:00
PolicyTypeFilter.tsx feat(policy-explorer-v2): implement Phase 4 - Enhanced Filtering 2025-12-10 00:28:35 +01:00