Frontend: unified 3-column contacts page (folder tree | list/table/cards | detail), all Rentman fields, ContactPerson CRUD, removed old Contact/Company pages

This commit is contained in:
Agent Zero
2026-07-19 21:30:26 +02:00
parent cf75680583
commit 3177daf47f
25 changed files with 1869 additions and 1592 deletions
@@ -5,8 +5,10 @@ import { MemoryRouter } from 'react-router-dom';
import { DashboardPage } from '@/pages/Dashboard';
vi.mock('@/api/hooks', () => ({
useCompanies: () => ({ data: { items: [], total: 24 }, isLoading: false }),
useContacts: () => ({ data: { items: [], total: 156 }, isLoading: false }),
useUnifiedContacts: (page: number, pageSize: number, search: any, type: string) => ({
data: { items: [], total: type === 'company' ? 24 : 156, page: 1, page_size: 25 },
isLoading: false,
}),
useAuditLog: () => ({
data: {
items: [