task-ep.1.2
This commit is contained in:
@@ -7,6 +7,7 @@ import { Badge } from '@/components/ui/badge';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
|
||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
|
||||
import { RecentActivitiesPanel } from '@/features/crm/activities/components/recent-activities-panel';
|
||||
import { AuditLogTab } from '@/features/crm/components/audit-log-tab';
|
||||
import { formatDateTime } from '@/lib/date-format';
|
||||
import { formatNumber } from '@/lib/number-format';
|
||||
@@ -112,6 +113,12 @@ export function LeadDetail({
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
<RecentActivitiesPanel
|
||||
items={data.recentActivities}
|
||||
description='New activity records and legacy lead follow-ups shown together.'
|
||||
emptyMessage='No recent activity or lead follow-up yet.'
|
||||
/>
|
||||
|
||||
<Tabs defaultValue='followups' className='space-y-4'>
|
||||
<TabsList>
|
||||
<TabsTrigger value='followups'>Follow-ups</TabsTrigger>
|
||||
|
||||
@@ -213,6 +213,7 @@ export interface LeadDetailResponse {
|
||||
message: string;
|
||||
lead: LeadDetail;
|
||||
followups: LeadFollowupSummary[];
|
||||
recentActivities: ActivityTimelineItem[];
|
||||
referenceData: LeadReferenceData;
|
||||
}
|
||||
|
||||
@@ -223,3 +224,4 @@ export interface LeadMutationSuccessResponse {
|
||||
followup?: LeadFollowupSummary;
|
||||
}
|
||||
import type { CrmAuditLogRecord } from '@/features/crm/audit-log/types';
|
||||
import type { ActivityTimelineItem } from '@/features/crm/activities/api/types';
|
||||
|
||||
Reference in New Issue
Block a user