Phase 1: Workflows UI, Dedup/Merge UI, Import/Export UI, Print/PDF

- Workflows UI: full page with definitions/instances tabs, step editor, instance detail with approve/reject
- Dedup/Merge UI: duplicate detection, side-by-side comparison, field-level merge dialog, merge history
- Import/Export UI: import wizard (dry-run preview), export panel (CSV/XLSX), backend export route added
- Print/PDF: PrintButton component, print.css, integrated in Contacts/Calendar/Reports/ContactDetail
- Backend: GET /api/v1/export endpoint, export_companies_csv() service function
- Routes: /workflows, /contacts/dedup, /import-export registered
- Menu items: Workflows, Import/Export, Duplikate added to automation plugin manifest
- IMPLEMENTATION_PLAN.md: audit-corrected plan for all 14 remaining features
This commit is contained in:
Agent Zero
2026-07-26 02:35:44 +02:00
parent 6d484ed747
commit a3a5a10514
27 changed files with 4288 additions and 5 deletions
+3 -1
View File
@@ -16,6 +16,7 @@ import {
Users,
} from 'lucide-react';
import clsx from 'clsx';
import { PrintButton } from '@/components/common/PrintButton';
import { useToast } from '@/components/ui/Toast';
import {
useReportTemplates,
@@ -213,6 +214,7 @@ export function ReportsPage() {
<BarChart3 className="w-6 h-6 text-primary-600" />
<h1 className="text-2xl font-bold text-secondary-900">{t('reports.title', 'Reports')}</h1>
</div>
<PrintButton targetId="reports-content" filename="leocrm-report" />
</div>
{/* Preset Quick Actions */}
@@ -260,7 +262,7 @@ export function ReportsPage() {
</div>
{/* Main 3-column layout */}
<div className="flex flex-1 gap-4 min-h-0">
<div className="flex flex-1 gap-4 min-h-0" id="reports-content">
{/* Left: Template List */}
<div className="w-64 flex-shrink-0 bg-white rounded-lg shadow-sm border border-secondary-200 flex flex-col" data-testid="template-list-panel">
<div className="flex items-center justify-between p-3 border-b border-secondary-200">