@fayz-ai/plugin-crm 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/dist/CrmContext.d.ts +32 -0
  2. package/dist/CrmContext.d.ts.map +1 -0
  3. package/dist/CrmPage.d.ts +13 -0
  4. package/dist/CrmPage.d.ts.map +1 -0
  5. package/dist/cascade.d.ts +13 -0
  6. package/dist/cascade.d.ts.map +1 -0
  7. package/dist/components/CrmGeneralSettings.d.ts +3 -0
  8. package/dist/components/CrmGeneralSettings.d.ts.map +1 -0
  9. package/dist/components/CrmOnboarding.d.ts +5 -0
  10. package/dist/components/CrmOnboarding.d.ts.map +1 -0
  11. package/dist/components/PipelineSettings.d.ts +3 -0
  12. package/dist/components/PipelineSettings.d.ts.map +1 -0
  13. package/dist/components/QuoteStatusDropdown.d.ts +8 -0
  14. package/dist/components/QuoteStatusDropdown.d.ts.map +1 -0
  15. package/dist/data/index.d.ts +3 -0
  16. package/dist/data/index.d.ts.map +1 -0
  17. package/dist/data/mock.d.ts +9 -0
  18. package/dist/data/mock.d.ts.map +1 -0
  19. package/dist/data/supabase.d.ts +9 -0
  20. package/dist/data/supabase.d.ts.map +1 -0
  21. package/dist/data/types.d.ts +32 -0
  22. package/dist/data/types.d.ts.map +1 -0
  23. package/dist/index.cjs +4601 -0
  24. package/dist/index.cjs.map +1 -0
  25. package/dist/index.d.ts +72 -0
  26. package/dist/index.d.ts.map +1 -0
  27. package/dist/index.js +4595 -0
  28. package/dist/index.js.map +1 -0
  29. package/dist/lib/tenant.d.ts +3 -0
  30. package/dist/lib/tenant.d.ts.map +1 -0
  31. package/dist/locales/en.d.ts +2 -0
  32. package/dist/locales/en.d.ts.map +1 -0
  33. package/dist/locales/index.d.ts +2 -0
  34. package/dist/locales/index.d.ts.map +1 -0
  35. package/dist/locales/pt-BR.d.ts +2 -0
  36. package/dist/locales/pt-BR.d.ts.map +1 -0
  37. package/dist/registries.d.ts +3 -0
  38. package/dist/registries.d.ts.map +1 -0
  39. package/dist/schema/index.d.ts +1036 -0
  40. package/dist/schema/index.d.ts.map +1 -0
  41. package/dist/store.d.ts +43 -0
  42. package/dist/store.d.ts.map +1 -0
  43. package/dist/types.d.ts +238 -0
  44. package/dist/types.d.ts.map +1 -0
  45. package/dist/views/ActivityListView.d.ts +3 -0
  46. package/dist/views/ActivityListView.d.ts.map +1 -0
  47. package/dist/views/DashboardView.d.ts +9 -0
  48. package/dist/views/DashboardView.d.ts.map +1 -0
  49. package/dist/views/DealSidebar.d.ts +9 -0
  50. package/dist/views/DealSidebar.d.ts.map +1 -0
  51. package/dist/views/LeadDetailView.d.ts +8 -0
  52. package/dist/views/LeadDetailView.d.ts.map +1 -0
  53. package/dist/views/LeadFormView.d.ts +5 -0
  54. package/dist/views/LeadFormView.d.ts.map +1 -0
  55. package/dist/views/LeadListView.d.ts +6 -0
  56. package/dist/views/LeadListView.d.ts.map +1 -0
  57. package/dist/views/PipelineView.d.ts +8 -0
  58. package/dist/views/PipelineView.d.ts.map +1 -0
  59. package/dist/views/QuoteDetailView.d.ts +8 -0
  60. package/dist/views/QuoteDetailView.d.ts.map +1 -0
  61. package/dist/views/QuoteFormView.d.ts +7 -0
  62. package/dist/views/QuoteFormView.d.ts.map +1 -0
  63. package/dist/views/QuoteListView.d.ts +7 -0
  64. package/dist/views/QuoteListView.d.ts.map +1 -0
  65. package/dist/views/dashboardWidgets.d.ts +11 -0
  66. package/dist/views/dashboardWidgets.d.ts.map +1 -0
  67. package/package.json +55 -0
  68. package/src/CrmContext.tsx +30 -0
  69. package/src/CrmPage.tsx +152 -0
  70. package/src/README.md +97 -0
  71. package/src/cascade.ts +24 -0
  72. package/src/components/CrmGeneralSettings.tsx +36 -0
  73. package/src/components/CrmOnboarding.tsx +52 -0
  74. package/src/components/PipelineSettings.tsx +45 -0
  75. package/src/components/QuoteStatusDropdown.tsx +214 -0
  76. package/src/data/index.ts +2 -0
  77. package/src/data/mock.ts +426 -0
  78. package/src/data/supabase.ts +634 -0
  79. package/src/data/types.ts +50 -0
  80. package/src/index.ts +240 -0
  81. package/src/lib/tenant.ts +4 -0
  82. package/src/locales/en.ts +292 -0
  83. package/src/locales/index.ts +7 -0
  84. package/src/locales/pt-BR.ts +292 -0
  85. package/src/migrations/001_crm_base.sql +73 -0
  86. package/src/migrations/002_activities.sql +33 -0
  87. package/src/migrations/003_crm_views_rls.sql +61 -0
  88. package/src/migrations/004_seed_default_pipeline.sql +31 -0
  89. package/src/registries.ts +88 -0
  90. package/src/schema/index.ts +102 -0
  91. package/src/store.ts +375 -0
  92. package/src/types.ts +280 -0
  93. package/src/views/ActivityListView.tsx +183 -0
  94. package/src/views/DashboardView.tsx +12 -0
  95. package/src/views/DealSidebar.tsx +414 -0
  96. package/src/views/LeadDetailView.tsx +264 -0
  97. package/src/views/LeadFormView.tsx +56 -0
  98. package/src/views/LeadListView.tsx +81 -0
  99. package/src/views/PipelineView.tsx +299 -0
  100. package/src/views/QuoteDetailView.tsx +408 -0
  101. package/src/views/QuoteFormView.tsx +489 -0
  102. package/src/views/QuoteListView.tsx +101 -0
  103. package/src/views/dashboardWidgets.tsx +248 -0
package/src/types.ts ADDED
@@ -0,0 +1,280 @@
1
+ // ---------------------------------------------------------------------------
2
+ // CRM/Sales Plugin — Pure TypeScript types
3
+ // Zero dependencies. Generic CRM abstracted from beautyplace.
4
+ // ---------------------------------------------------------------------------
5
+
6
+ // ============================================================
7
+ // ENUMS / LITERALS
8
+ // ============================================================
9
+
10
+ export type LeadStatus = 'new' | 'contacted' | 'qualified' | 'unqualified' | 'converted' | 'lost'
11
+ export type DealStatus = 'open' | 'won' | 'lost'
12
+ export type QuoteStatus = 'draft' | 'sent' | 'approved' | 'rejected' | 'expired'
13
+ export type ActivityType = 'call' | 'email' | 'meeting' | 'note' | 'task' | 'whatsapp' | (string & {})
14
+
15
+ // ============================================================
16
+ // CORE ENTITIES
17
+ // ============================================================
18
+
19
+ export interface Pipeline {
20
+ id: string
21
+ name: string
22
+ isDefault: boolean
23
+ isActive: boolean
24
+ tenantId: string
25
+ createdAt: string
26
+ updatedAt: string
27
+ }
28
+
29
+ export interface PipelineStage {
30
+ id: string
31
+ pipelineId: string
32
+ name: string
33
+ order: number
34
+ color: string
35
+ probability: number
36
+ isWon: boolean
37
+ isLost: boolean
38
+ tenantId: string
39
+ createdAt: string
40
+ }
41
+
42
+ export interface Lead {
43
+ id: string
44
+ name: string
45
+ email?: string
46
+ phone?: string
47
+ company?: string
48
+ sourceId?: string
49
+ sourceName?: string
50
+ status: LeadStatus
51
+ assignedToId?: string
52
+ assignedToName?: string
53
+ pipelineId?: string
54
+ stageId?: string
55
+ stageName?: string
56
+ value?: number
57
+ tags: string[]
58
+ notes?: string
59
+ metadata?: Record<string, unknown>
60
+ tenantId: string
61
+ createdAt: string
62
+ updatedAt: string
63
+ }
64
+
65
+ export interface Deal {
66
+ id: string
67
+ leadId?: string
68
+ title: string
69
+ value: number
70
+ pipelineId: string
71
+ stageId: string
72
+ stageName?: string
73
+ stageColor?: string
74
+ probability: number
75
+ expectedCloseDate?: string
76
+ assignedToId?: string
77
+ assignedToName?: string
78
+ contactId?: string
79
+ contactName?: string
80
+ status: DealStatus
81
+ lostReason?: string
82
+ tags: string[]
83
+ notes?: string
84
+ metadata?: Record<string, unknown>
85
+ tenantId: string
86
+ createdAt: string
87
+ updatedAt: string
88
+ }
89
+
90
+ export interface Activity {
91
+ id: string
92
+ dealId?: string
93
+ leadId?: string
94
+ contactId?: string
95
+ contactName?: string
96
+ activityType: ActivityType
97
+ title: string
98
+ description?: string
99
+ dueDate?: string
100
+ completedAt?: string
101
+ assignedToId?: string
102
+ assignedToName?: string
103
+ tenantId: string
104
+ createdAt: string
105
+ }
106
+
107
+ export interface Quote {
108
+ id: string
109
+ dealId?: string
110
+ leadId?: string
111
+ contactId?: string
112
+ contactName?: string
113
+ quoteNumber: string
114
+ quoteDate: string
115
+ validUntil: string
116
+ status: QuoteStatus
117
+ totalAmount: number
118
+ observations?: string
119
+ paymentConditions?: string
120
+ rejectionReason?: string
121
+ convertedInvoiceId?: string
122
+ items: QuoteItem[]
123
+ tenantId: string
124
+ createdAt: string
125
+ updatedAt: string
126
+ }
127
+
128
+ export interface QuoteItem {
129
+ id: string
130
+ quoteId: string
131
+ itemKind: string
132
+ description: string
133
+ quantity: number
134
+ unitPrice: number
135
+ discount: number
136
+ totalAmount: number
137
+ referenceId?: string
138
+ createdAt: string
139
+ }
140
+
141
+ export interface LeadSource {
142
+ id: string
143
+ name: string
144
+ isActive: boolean
145
+ tenantId: string
146
+ createdAt: string
147
+ }
148
+
149
+ export interface Tag {
150
+ id: string
151
+ name: string
152
+ color: string
153
+ tenantId: string
154
+ createdAt: string
155
+ }
156
+
157
+ // ============================================================
158
+ // INPUT TYPES
159
+ // ============================================================
160
+
161
+ export interface CreateLeadInput {
162
+ name: string
163
+ email?: string
164
+ phone?: string
165
+ company?: string
166
+ sourceId?: string
167
+ value?: number
168
+ notes?: string
169
+ tags?: string[]
170
+ assignedToId?: string
171
+ }
172
+
173
+ export interface CreateDealInput {
174
+ leadId?: string
175
+ title: string
176
+ value: number
177
+ pipelineId: string
178
+ stageId: string
179
+ expectedCloseDate?: string
180
+ contactId?: string
181
+ contactName?: string
182
+ assignedToId?: string
183
+ notes?: string
184
+ tags?: string[]
185
+ }
186
+
187
+ export interface CreateActivityInput {
188
+ dealId?: string
189
+ leadId?: string
190
+ contactId?: string
191
+ activityType: ActivityType
192
+ title: string
193
+ description?: string
194
+ dueDate?: string
195
+ assignedToId?: string
196
+ }
197
+
198
+ export interface CreateQuoteInput {
199
+ dealId?: string
200
+ leadId?: string
201
+ contactId?: string
202
+ contactName?: string
203
+ quoteDate: string
204
+ validUntil: string
205
+ observations?: string
206
+ paymentConditions?: string
207
+ items: Omit<QuoteItem, 'id' | 'quoteId' | 'createdAt'>[]
208
+ }
209
+
210
+ // ============================================================
211
+ // QUERY TYPES
212
+ // ============================================================
213
+
214
+ export interface DateRange { from: string; to: string }
215
+
216
+ export interface LeadQuery {
217
+ status?: LeadStatus | LeadStatus[]
218
+ sourceId?: string
219
+ search?: string
220
+ page?: number
221
+ pageSize?: number
222
+ }
223
+
224
+ export interface DealQuery {
225
+ pipelineId?: string
226
+ stageId?: string
227
+ status?: DealStatus | DealStatus[]
228
+ assignedToId?: string
229
+ search?: string
230
+ page?: number
231
+ pageSize?: number
232
+ }
233
+
234
+ export interface ActivityQuery {
235
+ dealId?: string
236
+ leadId?: string
237
+ activityType?: ActivityType
238
+ completed?: boolean
239
+ dateRange?: DateRange
240
+ page?: number
241
+ pageSize?: number
242
+ }
243
+
244
+ export interface QuoteQuery {
245
+ status?: QuoteStatus | QuoteStatus[]
246
+ contactId?: string
247
+ search?: string
248
+ page?: number
249
+ pageSize?: number
250
+ }
251
+
252
+ export interface PaginatedResult<T> {
253
+ data: T[]
254
+ total: number
255
+ }
256
+
257
+ // ============================================================
258
+ // AGGREGATION
259
+ // ============================================================
260
+
261
+ export interface CrmSummary {
262
+ totalLeads: number
263
+ newLeadsThisMonth: number
264
+ totalDeals: number
265
+ openDealsValue: number
266
+ wonDealsThisMonth: number
267
+ wonDealsValueThisMonth: number
268
+ conversionRate: number
269
+ averageDealValue: number
270
+ pendingActivities: number
271
+ overdueActivities: number
272
+ }
273
+
274
+ export interface FunnelStage {
275
+ stageId: string
276
+ stageName: string
277
+ stageColor: string
278
+ dealCount: number
279
+ totalValue: number
280
+ }
@@ -0,0 +1,183 @@
1
+ import React, { useEffect, useState } from 'react'
2
+ import { Phone, Mail, Users, FileText, CheckSquare, MessageCircle, Check, Clock, Filter, Calendar } from 'lucide-react'
3
+ import { useCrmStore } from '../CrmContext'
4
+ import { useTranslation } from '@fayz-ai/core'
5
+ import { SubpageHeader } from '@fayz-ai/ui'
6
+ import type { ActivityType } from '../types'
7
+
8
+ const TYPE_CONFIG: Record<string, { icon: React.ElementType; color: string; label: string }> = {
9
+ call: { icon: Phone, color: 'bg-info/15 text-info dark:bg-info/20', label: 'Call' },
10
+ email: { icon: Mail, color: 'bg-magic/15 text-magic dark:bg-magic/20', label: 'Email' },
11
+ meeting: { icon: Users, color: 'bg-success-soft text-success-soft-foreground', label: 'Meeting' },
12
+ note: { icon: FileText, color: 'bg-warning/15 text-warning dark:bg-warning/20', label: 'Note' },
13
+ task: { icon: CheckSquare, color: 'bg-pink-100 text-pink-600 dark:bg-pink-500/20 dark:text-pink-400', label: 'Task' },
14
+ whatsapp: { icon: MessageCircle, color: 'bg-success/15 text-success dark:bg-success/20', label: 'WhatsApp' },
15
+ }
16
+
17
+ function ActivitySkeleton() {
18
+ return (
19
+ <div className="space-y-2">
20
+ {[1, 2, 3, 4, 5].map((i) => (
21
+ <div key={i} className="flex items-start gap-3 rounded-lg border bg-card shadow-sm p-4">
22
+ <div className="h-9 w-9 rounded-lg bg-muted/40 animate-pulse shrink-0" />
23
+ <div className="flex-1 space-y-2 pt-0.5">
24
+ <div className="flex items-center gap-2">
25
+ <div className="h-3.5 w-32 rounded bg-muted/40 animate-pulse" />
26
+ <div className="h-4 w-12 rounded-full bg-muted/30 animate-pulse" />
27
+ </div>
28
+ <div className="h-3 w-48 rounded bg-muted/30 animate-pulse" />
29
+ <div className="h-2.5 w-24 rounded bg-muted/20 animate-pulse" />
30
+ </div>
31
+ <div className="h-3 w-16 rounded bg-muted/30 animate-pulse shrink-0" />
32
+ </div>
33
+ ))}
34
+ </div>
35
+ )
36
+ }
37
+
38
+ export function ActivityListView() {
39
+ const t = useTranslation()
40
+ const activities = useCrmStore((s) => s.activities)
41
+ const activitiesLoading = useCrmStore((s) => s.activitiesLoading)
42
+ const fetchActivities = useCrmStore((s) => s.fetchActivities)
43
+ const [typeFilter, setTypeFilter] = useState<string | null>(null)
44
+ const [showCompleted, setShowCompleted] = useState<boolean | null>(null)
45
+
46
+ useEffect(() => {
47
+ fetchActivities({
48
+ activityType: typeFilter as ActivityType | undefined,
49
+ completed: showCompleted ?? undefined,
50
+ })
51
+ }, [typeFilter, showCompleted])
52
+
53
+ const filtered = activities
54
+
55
+ // Stats
56
+ const pendingCount = activities.filter((a) => !a.completedAt).length
57
+ const overdueCount = activities.filter((a) => !a.completedAt && a.dueDate && a.dueDate < new Date().toISOString().slice(0, 10)).length
58
+
59
+ return (
60
+ <div className="space-y-4">
61
+ <SubpageHeader
62
+ title={t('crm.activities.title')}
63
+ subtitle={`${activities.length} ${t('crm.activities.title').toLowerCase()}${pendingCount > 0 ? ` · ${pendingCount} ${t('crm.activities.pending')}` : ''}${overdueCount > 0 ? ` · ${overdueCount} ${t('crm.activities.overdue')}` : ''}`}
64
+ />
65
+
66
+ {/* Filters */}
67
+ <div className="flex flex-col sm:flex-row gap-3 sm:items-center">
68
+ {/* Type filter */}
69
+ <div className="flex gap-1.5 flex-wrap">
70
+ <button
71
+ onClick={() => setTypeFilter(null)}
72
+ className={`rounded-full px-2.5 py-1 text-xs font-medium transition-colors ${typeFilter === null ? 'bg-primary text-primary-foreground' : 'bg-muted/50 text-muted-foreground hover:bg-muted'}`}
73
+ >
74
+ {t('crm.activities.all')}
75
+ </button>
76
+ {Object.entries(TYPE_CONFIG).map(([type, cfg]) => {
77
+ const Icon = cfg.icon
78
+ return (
79
+ <button
80
+ key={type}
81
+ onClick={() => setTypeFilter(typeFilter === type ? null : type)}
82
+ className={`inline-flex items-center gap-1 rounded-full px-2.5 py-1 text-xs font-medium transition-colors ${typeFilter === type ? cfg.color : 'bg-muted/50 text-muted-foreground hover:bg-muted'}`}
83
+ >
84
+ <Icon className="h-3 w-3" />
85
+ {cfg.label}
86
+ </button>
87
+ )
88
+ })}
89
+ </div>
90
+
91
+ <div className="flex-1" />
92
+
93
+ {/* Completion filter */}
94
+ <div className="flex gap-1.5">
95
+ <button
96
+ onClick={() => setShowCompleted(showCompleted === false ? null : false)}
97
+ className={`inline-flex items-center gap-1 rounded-full px-2.5 py-1 text-xs font-medium transition-colors ${showCompleted === false ? 'bg-warning-soft text-warning-soft-foreground' : 'bg-muted/50 text-muted-foreground hover:bg-muted'}`}
98
+ >
99
+ <Clock className="h-3 w-3" /> {t('crm.activities.pendingFilter')}
100
+ </button>
101
+ <button
102
+ onClick={() => setShowCompleted(showCompleted === true ? null : true)}
103
+ className={`inline-flex items-center gap-1 rounded-full px-2.5 py-1 text-xs font-medium transition-colors ${showCompleted === true ? 'bg-success-soft text-success-soft-foreground' : 'bg-muted/50 text-muted-foreground hover:bg-muted'}`}
104
+ >
105
+ <Check className="h-3 w-3" /> {t('crm.activities.completedFilter')}
106
+ </button>
107
+ </div>
108
+ </div>
109
+
110
+ {/* List */}
111
+ {activitiesLoading ? (
112
+ <ActivitySkeleton />
113
+ ) : filtered.length === 0 ? (
114
+ <div className="flex flex-col items-center justify-center py-16 text-center rounded-lg border-2 border-dashed border-muted">
115
+ <div className="flex h-12 w-12 items-center justify-center rounded-2xl bg-muted/30 mb-3">
116
+ <Calendar className="h-5 w-5 text-muted-foreground/40" />
117
+ </div>
118
+ <p className="text-sm text-muted-foreground">{typeFilter ? t('crm.activities.noActivitiesOfType', { type: TYPE_CONFIG[typeFilter]?.label ?? typeFilter }) : t('crm.activities.noActivities')}</p>
119
+ <p className="text-[10px] text-muted-foreground/60 mt-0.5">{t('crm.activities.activitiesLogged')}</p>
120
+ </div>
121
+ ) : (
122
+ <div className="space-y-2">
123
+ {filtered.map((a) => {
124
+ const cfg = TYPE_CONFIG[a.activityType] ?? { icon: FileText, color: 'bg-muted text-muted-foreground', label: a.activityType }
125
+ const Icon = cfg.icon
126
+ const isOverdue = !a.completedAt && a.dueDate && a.dueDate < new Date().toISOString().slice(0, 10)
127
+
128
+ return (
129
+ <div
130
+ key={a.id}
131
+ className={`flex items-start gap-3 rounded-lg border bg-card p-4 transition-colors ${isOverdue ? 'border-destructive/30 dark:border-destructive/20' : ''}`}
132
+ >
133
+ <div className={`flex h-9 w-9 items-center justify-center rounded-lg shrink-0 ${cfg.color}`}>
134
+ <Icon className="h-4 w-4" />
135
+ </div>
136
+ <div className="flex-1 min-w-0 pt-0.5">
137
+ <div className="flex items-center gap-2">
138
+ <p className="text-sm font-medium truncate">{a.title}</p>
139
+ {a.completedAt && (
140
+ <span className="inline-flex items-center gap-0.5 rounded-full bg-success/15 px-1.5 py-0.5 text-[9px] font-medium text-success dark:bg-success/20">
141
+ <Check className="h-2.5 w-2.5" /> {t('crm.activities.done')}
142
+ </span>
143
+ )}
144
+ {isOverdue && (
145
+ <span className="inline-flex items-center gap-0.5 rounded-full bg-destructive/15 px-1.5 py-0.5 text-[9px] font-medium text-destructive dark:bg-destructive/20">
146
+ {t('crm.activities.overdueLabel')}
147
+ </span>
148
+ )}
149
+ </div>
150
+ {a.description && <p className="text-xs text-muted-foreground mt-0.5 line-clamp-2">{a.description}</p>}
151
+ <div className="flex items-center gap-3 mt-1.5 text-[10px] text-muted-foreground/60">
152
+ <span className="capitalize">{cfg.label}</span>
153
+ {a.dueDate && (
154
+ <>
155
+ <span>&middot;</span>
156
+ <span className={isOverdue ? 'text-destructive font-medium' : ''}>Due {a.dueDate}</span>
157
+ </>
158
+ )}
159
+ {a.assignedToName && (
160
+ <>
161
+ <span>&middot;</span>
162
+ <span>{a.assignedToName}</span>
163
+ </>
164
+ )}
165
+ {a.contactName && (
166
+ <>
167
+ <span>&middot;</span>
168
+ <span>{a.contactName}</span>
169
+ </>
170
+ )}
171
+ </div>
172
+ </div>
173
+ <span className="text-[10px] text-muted-foreground shrink-0 pt-1">
174
+ {new Date(a.createdAt).toLocaleDateString()}
175
+ </span>
176
+ </div>
177
+ )
178
+ })}
179
+ </div>
180
+ )}
181
+ </div>
182
+ )
183
+ }
@@ -0,0 +1,12 @@
1
+ import React from 'react'
2
+ import { DashboardCanvas } from '@fayz-ai/ui'
3
+
4
+ /**
5
+ * CRM overview. The KPI cards, charts and recent-data tables are now registered
6
+ * dashboard widgets (see ./dashboardWidgets) and rendered through the shared
7
+ * DashboardCanvas — the same widgets also appear on the global app home. This
8
+ * view simply mounts the CRM-scoped plugin-home surface.
9
+ */
10
+ export function DashboardView() {
11
+ return <DashboardCanvas surface="plugin-home" domain="crm" showHeader={false} className="space-y-6" />
12
+ }