@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.
- package/dist/CrmContext.d.ts +32 -0
- package/dist/CrmContext.d.ts.map +1 -0
- package/dist/CrmPage.d.ts +13 -0
- package/dist/CrmPage.d.ts.map +1 -0
- package/dist/cascade.d.ts +13 -0
- package/dist/cascade.d.ts.map +1 -0
- package/dist/components/CrmGeneralSettings.d.ts +3 -0
- package/dist/components/CrmGeneralSettings.d.ts.map +1 -0
- package/dist/components/CrmOnboarding.d.ts +5 -0
- package/dist/components/CrmOnboarding.d.ts.map +1 -0
- package/dist/components/PipelineSettings.d.ts +3 -0
- package/dist/components/PipelineSettings.d.ts.map +1 -0
- package/dist/components/QuoteStatusDropdown.d.ts +8 -0
- package/dist/components/QuoteStatusDropdown.d.ts.map +1 -0
- package/dist/data/index.d.ts +3 -0
- package/dist/data/index.d.ts.map +1 -0
- package/dist/data/mock.d.ts +9 -0
- package/dist/data/mock.d.ts.map +1 -0
- package/dist/data/supabase.d.ts +9 -0
- package/dist/data/supabase.d.ts.map +1 -0
- package/dist/data/types.d.ts +32 -0
- package/dist/data/types.d.ts.map +1 -0
- package/dist/index.cjs +4601 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +72 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4595 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/tenant.d.ts +3 -0
- package/dist/lib/tenant.d.ts.map +1 -0
- package/dist/locales/en.d.ts +2 -0
- package/dist/locales/en.d.ts.map +1 -0
- package/dist/locales/index.d.ts +2 -0
- package/dist/locales/index.d.ts.map +1 -0
- package/dist/locales/pt-BR.d.ts +2 -0
- package/dist/locales/pt-BR.d.ts.map +1 -0
- package/dist/registries.d.ts +3 -0
- package/dist/registries.d.ts.map +1 -0
- package/dist/schema/index.d.ts +1036 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/store.d.ts +43 -0
- package/dist/store.d.ts.map +1 -0
- package/dist/types.d.ts +238 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/views/ActivityListView.d.ts +3 -0
- package/dist/views/ActivityListView.d.ts.map +1 -0
- package/dist/views/DashboardView.d.ts +9 -0
- package/dist/views/DashboardView.d.ts.map +1 -0
- package/dist/views/DealSidebar.d.ts +9 -0
- package/dist/views/DealSidebar.d.ts.map +1 -0
- package/dist/views/LeadDetailView.d.ts +8 -0
- package/dist/views/LeadDetailView.d.ts.map +1 -0
- package/dist/views/LeadFormView.d.ts +5 -0
- package/dist/views/LeadFormView.d.ts.map +1 -0
- package/dist/views/LeadListView.d.ts +6 -0
- package/dist/views/LeadListView.d.ts.map +1 -0
- package/dist/views/PipelineView.d.ts +8 -0
- package/dist/views/PipelineView.d.ts.map +1 -0
- package/dist/views/QuoteDetailView.d.ts +8 -0
- package/dist/views/QuoteDetailView.d.ts.map +1 -0
- package/dist/views/QuoteFormView.d.ts +7 -0
- package/dist/views/QuoteFormView.d.ts.map +1 -0
- package/dist/views/QuoteListView.d.ts +7 -0
- package/dist/views/QuoteListView.d.ts.map +1 -0
- package/dist/views/dashboardWidgets.d.ts +11 -0
- package/dist/views/dashboardWidgets.d.ts.map +1 -0
- package/package.json +55 -0
- package/src/CrmContext.tsx +30 -0
- package/src/CrmPage.tsx +152 -0
- package/src/README.md +97 -0
- package/src/cascade.ts +24 -0
- package/src/components/CrmGeneralSettings.tsx +36 -0
- package/src/components/CrmOnboarding.tsx +52 -0
- package/src/components/PipelineSettings.tsx +45 -0
- package/src/components/QuoteStatusDropdown.tsx +214 -0
- package/src/data/index.ts +2 -0
- package/src/data/mock.ts +426 -0
- package/src/data/supabase.ts +634 -0
- package/src/data/types.ts +50 -0
- package/src/index.ts +240 -0
- package/src/lib/tenant.ts +4 -0
- package/src/locales/en.ts +292 -0
- package/src/locales/index.ts +7 -0
- package/src/locales/pt-BR.ts +292 -0
- package/src/migrations/001_crm_base.sql +73 -0
- package/src/migrations/002_activities.sql +33 -0
- package/src/migrations/003_crm_views_rls.sql +61 -0
- package/src/migrations/004_seed_default_pipeline.sql +31 -0
- package/src/registries.ts +88 -0
- package/src/schema/index.ts +102 -0
- package/src/store.ts +375 -0
- package/src/types.ts +280 -0
- package/src/views/ActivityListView.tsx +183 -0
- package/src/views/DashboardView.tsx +12 -0
- package/src/views/DealSidebar.tsx +414 -0
- package/src/views/LeadDetailView.tsx +264 -0
- package/src/views/LeadFormView.tsx +56 -0
- package/src/views/LeadListView.tsx +81 -0
- package/src/views/PipelineView.tsx +299 -0
- package/src/views/QuoteDetailView.tsx +408 -0
- package/src/views/QuoteFormView.tsx +489 -0
- package/src/views/QuoteListView.tsx +101 -0
- package/src/views/dashboardWidgets.tsx +248 -0
package/src/index.ts
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import type { PluginManifest, PluginScope, VerticalId } from '@fayz-ai/core'
|
|
3
|
+
import type { EntityLookupMap } from '@fayz-ai/saas'
|
|
4
|
+
import { CrmPage } from './CrmPage'
|
|
5
|
+
import { createCrmDashboardWidgets } from './views/dashboardWidgets'
|
|
6
|
+
import { CrmContextProvider, type ResolvedCrmConfig } from './CrmContext'
|
|
7
|
+
import type { CrmDataProvider } from './data/types'
|
|
8
|
+
import { createMockCrmProvider } from './data/mock'
|
|
9
|
+
import { createSafeDataProvider, registerTranslations } from '@fayz-ai/core'
|
|
10
|
+
import { createSupabaseCrmProvider } from './data/supabase'
|
|
11
|
+
import { createCrmStore } from './store'
|
|
12
|
+
import { crmRegistries } from './registries'
|
|
13
|
+
import { crmLocales } from './locales'
|
|
14
|
+
import { CrmGeneralSettings } from './components/CrmGeneralSettings'
|
|
15
|
+
import { PipelineSettings } from './components/PipelineSettings'
|
|
16
|
+
|
|
17
|
+
// ---------------------------------------------------------------------------
|
|
18
|
+
// Public types
|
|
19
|
+
// ---------------------------------------------------------------------------
|
|
20
|
+
|
|
21
|
+
export interface CrmPluginLabels {
|
|
22
|
+
pageTitle: string
|
|
23
|
+
pageSubtitle: string
|
|
24
|
+
dashboard: string
|
|
25
|
+
pipeline: string
|
|
26
|
+
leads: string
|
|
27
|
+
leadsNew: string
|
|
28
|
+
leadsList: string
|
|
29
|
+
deals: string
|
|
30
|
+
quotes: string
|
|
31
|
+
quotesNew: string
|
|
32
|
+
quotesList: string
|
|
33
|
+
activities: string
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface CrmPluginOptions {
|
|
37
|
+
modules?: {
|
|
38
|
+
quotes?: boolean
|
|
39
|
+
activities?: boolean
|
|
40
|
+
pipeline?: boolean
|
|
41
|
+
}
|
|
42
|
+
labels?: Partial<CrmPluginLabels>
|
|
43
|
+
currency?: { code?: string; locale?: string; symbol?: string }
|
|
44
|
+
leadSources?: Array<{ value: string; label: string }>
|
|
45
|
+
dealStages?: Array<{ name: string; color: string; probability: number }>
|
|
46
|
+
activityTypes?: Array<{ value: string; label: string; icon?: string }>
|
|
47
|
+
itemTypes?: Array<{ value: string; label: string }>
|
|
48
|
+
dataProvider?: CrmDataProvider
|
|
49
|
+
navPosition?: number
|
|
50
|
+
navSection?: 'main' | 'secondary'
|
|
51
|
+
scope?: PluginScope
|
|
52
|
+
verticalId?: VerticalId
|
|
53
|
+
/** Entity lookups for cross-plugin references (e.g., product/service search in quotes) */
|
|
54
|
+
entityLookups?: EntityLookupMap
|
|
55
|
+
/** Contact/person lookup for client search in quotes and leads */
|
|
56
|
+
contactLookup?: import('@fayz-ai/saas').EntityLookup
|
|
57
|
+
/** Client conversion config — when a lead is approved, CRM converts the person
|
|
58
|
+
* to a client by updating `persons.kind` and creating the extension table record.
|
|
59
|
+
* @example { archetypeKind: 'customer', extensionTable: 'clients', fkColumn: 'person_id' } */
|
|
60
|
+
clientConversion?: {
|
|
61
|
+
/** The archetype kind to set on persons.kind (e.g., 'customer') */
|
|
62
|
+
archetypeKind: string
|
|
63
|
+
/** Extension table name (e.g., 'clients') in public schema */
|
|
64
|
+
extensionTable: string
|
|
65
|
+
/** FK column pointing to persons.id (e.g., 'person_id') */
|
|
66
|
+
fkColumn: string
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// ---------------------------------------------------------------------------
|
|
71
|
+
// Defaults
|
|
72
|
+
// ---------------------------------------------------------------------------
|
|
73
|
+
|
|
74
|
+
const DEFAULT_LABELS: CrmPluginLabels = {
|
|
75
|
+
pageTitle: 'Sales',
|
|
76
|
+
pageSubtitle: 'CRM, leads, deals, and pipeline management',
|
|
77
|
+
dashboard: 'Dashboard',
|
|
78
|
+
pipeline: 'Pipeline',
|
|
79
|
+
leads: 'Leads',
|
|
80
|
+
leadsNew: 'New',
|
|
81
|
+
leadsList: 'List',
|
|
82
|
+
deals: 'Deals',
|
|
83
|
+
quotes: 'Quotes',
|
|
84
|
+
quotesNew: 'New',
|
|
85
|
+
quotesList: 'List',
|
|
86
|
+
activities: 'Activities',
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
const DEFAULT_CURRENCY = { code: 'BRL', locale: 'pt-BR', symbol: 'R$' }
|
|
90
|
+
|
|
91
|
+
const DEFAULT_ITEM_TYPES = [
|
|
92
|
+
{ value: 'service', label: 'Service' },
|
|
93
|
+
{ value: 'product', label: 'Product' },
|
|
94
|
+
{ value: 'other', label: 'Other' },
|
|
95
|
+
]
|
|
96
|
+
|
|
97
|
+
// ---------------------------------------------------------------------------
|
|
98
|
+
// Config resolver
|
|
99
|
+
// ---------------------------------------------------------------------------
|
|
100
|
+
|
|
101
|
+
function resolveConfig(options?: CrmPluginOptions): ResolvedCrmConfig {
|
|
102
|
+
return {
|
|
103
|
+
modules: {
|
|
104
|
+
quotes: options?.modules?.quotes !== false,
|
|
105
|
+
activities: options?.modules?.activities !== false,
|
|
106
|
+
pipeline: options?.modules?.pipeline !== false,
|
|
107
|
+
},
|
|
108
|
+
labels: { ...DEFAULT_LABELS, ...options?.labels },
|
|
109
|
+
currency: { ...DEFAULT_CURRENCY, ...options?.currency },
|
|
110
|
+
itemTypes: options?.itemTypes ?? DEFAULT_ITEM_TYPES,
|
|
111
|
+
entityLookups: options?.entityLookups ?? {},
|
|
112
|
+
contactLookup: options?.contactLookup,
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// ---------------------------------------------------------------------------
|
|
117
|
+
// Factory
|
|
118
|
+
// ---------------------------------------------------------------------------
|
|
119
|
+
|
|
120
|
+
export function createCrmPlugin(options?: CrmPluginOptions): PluginManifest {
|
|
121
|
+
const config = resolveConfig(options)
|
|
122
|
+
registerTranslations(crmLocales)
|
|
123
|
+
const provider = options?.dataProvider ?? createSafeDataProvider(
|
|
124
|
+
() => createSupabaseCrmProvider({ clientConversion: options?.clientConversion }),
|
|
125
|
+
() => createMockCrmProvider(),
|
|
126
|
+
)
|
|
127
|
+
const store = createCrmStore(provider)
|
|
128
|
+
|
|
129
|
+
const PageComponent: React.FC<any> = () =>
|
|
130
|
+
React.createElement(CrmPage, { config, provider, store, registries: crmRegistries })
|
|
131
|
+
|
|
132
|
+
const dashboardWidgets = createCrmDashboardWidgets({ config, provider, store })
|
|
133
|
+
|
|
134
|
+
return {
|
|
135
|
+
id: 'crm',
|
|
136
|
+
name: config.labels.pageTitle,
|
|
137
|
+
icon: 'Filter',
|
|
138
|
+
version: '1.0.0',
|
|
139
|
+
scope: options?.scope ?? 'universal',
|
|
140
|
+
verticalId: options?.verticalId,
|
|
141
|
+
defaultEnabled: true,
|
|
142
|
+
dependencies: [],
|
|
143
|
+
declaredFeatures: [
|
|
144
|
+
{ id: 'sales', label: config.labels.pageTitle, group: config.labels.pageTitle },
|
|
145
|
+
{ id: 'crm.leads', label: config.labels.leads, group: config.labels.pageTitle },
|
|
146
|
+
{ id: 'crm.quotes', label: config.labels.quotes, group: config.labels.pageTitle },
|
|
147
|
+
{ id: 'crm.pipeline', label: config.labels.pipeline, group: config.labels.pageTitle },
|
|
148
|
+
],
|
|
149
|
+
navigation: [
|
|
150
|
+
{
|
|
151
|
+
section: options?.navSection ?? 'main',
|
|
152
|
+
position: options?.navPosition ?? 5,
|
|
153
|
+
label: config.labels.pageTitle,
|
|
154
|
+
route: '/sales',
|
|
155
|
+
icon: 'Filter',
|
|
156
|
+
permission: { feature: 'sales', action: 'read' as const },
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
routes: [
|
|
160
|
+
{
|
|
161
|
+
path: '/sales',
|
|
162
|
+
component: PageComponent,
|
|
163
|
+
permission: { feature: 'sales', action: 'read' as const },
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
widgets: [],
|
|
167
|
+
dashboardWidgets,
|
|
168
|
+
aiTools: [
|
|
169
|
+
{
|
|
170
|
+
id: 'crm.count-customers',
|
|
171
|
+
name: 'countCustomers',
|
|
172
|
+
description: 'Returns the number of active customers/clients.',
|
|
173
|
+
icon: 'Users',
|
|
174
|
+
mode: 'read' as const,
|
|
175
|
+
category: 'Sales',
|
|
176
|
+
parameters: {
|
|
177
|
+
type: 'object' as const,
|
|
178
|
+
properties: {
|
|
179
|
+
status: { type: 'string' as const, enum: ['active', 'inactive', 'all'] },
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
suggestions: [
|
|
183
|
+
{ label: 'How many customers do we have?', verticalId: 'beauty' as const },
|
|
184
|
+
{ label: 'How many clients do we have?', verticalId: 'services' as const },
|
|
185
|
+
{ label: 'How many patients today?', verticalId: 'health' as const },
|
|
186
|
+
{ label: 'Who are my top customers?' },
|
|
187
|
+
],
|
|
188
|
+
permission: { feature: 'sales', action: 'read' as const },
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
id: 'crm.list-leads',
|
|
192
|
+
name: 'listLeads',
|
|
193
|
+
description: 'Lists leads with optional filters.',
|
|
194
|
+
icon: 'Target',
|
|
195
|
+
mode: 'read' as const,
|
|
196
|
+
category: 'Sales',
|
|
197
|
+
parameters: {
|
|
198
|
+
type: 'object' as const,
|
|
199
|
+
properties: {
|
|
200
|
+
source: { type: 'string' as const, description: 'Lead source filter' },
|
|
201
|
+
status: { type: 'string' as const, enum: ['new', 'contacted', 'qualified', 'lost'] },
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
permission: { feature: 'sales', action: 'read' as const },
|
|
205
|
+
suggestions: [
|
|
206
|
+
{ label: 'Show new leads from this week' },
|
|
207
|
+
{ label: 'Which leads need follow-up?' },
|
|
208
|
+
{ label: "What's our conversion rate?" },
|
|
209
|
+
],
|
|
210
|
+
},
|
|
211
|
+
],
|
|
212
|
+
registries: crmRegistries,
|
|
213
|
+
settings: [
|
|
214
|
+
{
|
|
215
|
+
id: 'crm',
|
|
216
|
+
label: 'Sales & CRM',
|
|
217
|
+
icon: 'Filter',
|
|
218
|
+
component: (() => {
|
|
219
|
+
const Tab: React.FC = () =>
|
|
220
|
+
React.createElement(CrmContextProvider, { config, provider, store },
|
|
221
|
+
React.createElement(
|
|
222
|
+
'div',
|
|
223
|
+
{ style: { display: 'flex', flexDirection: 'column', gap: '20px' } },
|
|
224
|
+
React.createElement(CrmGeneralSettings),
|
|
225
|
+
React.createElement(PipelineSettings),
|
|
226
|
+
),
|
|
227
|
+
)
|
|
228
|
+
Tab.displayName = 'CrmSettingsTab'
|
|
229
|
+
return Tab
|
|
230
|
+
})() as unknown as React.ComponentType<unknown>,
|
|
231
|
+
order: 12,
|
|
232
|
+
permission: { feature: 'sales', action: 'read' as const },
|
|
233
|
+
},
|
|
234
|
+
],
|
|
235
|
+
locales: crmLocales,
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export type { CrmDataProvider } from './data/types'
|
|
240
|
+
export type { ResolvedCrmConfig } from './CrmContext'
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
// crm.* — merged plugin-own + saas-core central i18n
|
|
2
|
+
export const en: Record<string, string> = {
|
|
3
|
+
"crm.activities.activitiesLogged": "Activities are logged from lead and deal interactions",
|
|
4
|
+
"crm.activities.all": "All",
|
|
5
|
+
"crm.activities.completedFilter": "Completed",
|
|
6
|
+
"crm.activities.done": "Done",
|
|
7
|
+
"crm.activities.noActivities": "No activities",
|
|
8
|
+
"crm.activities.noActivitiesOfType": "No activities of type \"{{type}}\"",
|
|
9
|
+
"crm.activities.overdue": "overdue",
|
|
10
|
+
"crm.activities.overdueLabel": "Overdue",
|
|
11
|
+
"crm.activities.pending": "pending",
|
|
12
|
+
"crm.activities.pendingFilter": "Pending",
|
|
13
|
+
"crm.activities.title": "Activities",
|
|
14
|
+
"crm.dashboard.activeDeals": "{{count}} active deals",
|
|
15
|
+
"crm.dashboard.avgDealValue": "Avg deal value",
|
|
16
|
+
"crm.dashboard.leadsCount": "{{count}} leads",
|
|
17
|
+
"crm.dashboard.quotesCount": "{{count}} quotes",
|
|
18
|
+
"crm.dashboard.conversionRate": "Conversion Rate",
|
|
19
|
+
"crm.dashboard.conversionRateLabel": "Conversion rate",
|
|
20
|
+
"crm.dashboard.createFirstLead": "Create your first lead to see the funnel",
|
|
21
|
+
"crm.dashboard.dealsWon": "Deals won this month",
|
|
22
|
+
"crm.dashboard.leadToDeal": "Lead to deal",
|
|
23
|
+
"crm.dashboard.newThisMonth": "{{count}} new this month",
|
|
24
|
+
"crm.dashboard.noLeadsYet": "No leads yet. Capture your first lead to get started.",
|
|
25
|
+
"crm.dashboard.noPipelineData": "No pipeline data yet",
|
|
26
|
+
"crm.dashboard.noQuotesYet": "No quotes yet.",
|
|
27
|
+
"crm.dashboard.openPipeline": "Open Pipeline",
|
|
28
|
+
"crm.dashboard.overdueCount": "{{count}} overdue",
|
|
29
|
+
"crm.dashboard.pendingTasks": "Pending Tasks",
|
|
30
|
+
"crm.dashboard.performance": "Performance",
|
|
31
|
+
"crm.dashboard.pipelineOverview": "Pipeline Overview",
|
|
32
|
+
"crm.dashboard.pipelineValue": "Pipeline Value",
|
|
33
|
+
"crm.dashboard.recentLeads": "Recent Leads",
|
|
34
|
+
"crm.dashboard.recentQuotes": "Recent Quotes",
|
|
35
|
+
"crm.dashboard.revenueWon": "Revenue won",
|
|
36
|
+
"crm.dashboard.totalDeals": "{{count}} total deals",
|
|
37
|
+
"crm.dashboard.totalLeads": "Total Leads",
|
|
38
|
+
"crm.dealSidebar.activitiesAppear": "Activities will appear here as they are logged",
|
|
39
|
+
"crm.dealSidebar.activity": "Activity",
|
|
40
|
+
"crm.dealSidebar.assignedTo": "Assigned to",
|
|
41
|
+
"crm.dealSidebar.contact": "Contact",
|
|
42
|
+
"crm.dealSidebar.created": "Created",
|
|
43
|
+
"crm.dealSidebar.deal": "Deal",
|
|
44
|
+
"crm.dealSidebar.dealNotFound": "Deal not found",
|
|
45
|
+
"crm.dealSidebar.expectedClose": "Expected close",
|
|
46
|
+
"crm.dealSidebar.noActivities": "No activities yet",
|
|
47
|
+
"crm.dealSidebar.noQuotes": "No quotes linked",
|
|
48
|
+
"crm.dealSidebar.notes": "Notes",
|
|
49
|
+
"crm.dealSidebar.overview": "Overview",
|
|
50
|
+
"crm.dealSidebar.probability": "Probability",
|
|
51
|
+
"crm.dealSidebar.quotes": "Quotes",
|
|
52
|
+
"crm.dealSidebar.quotesAppear": "Quotes created for this lead will appear here",
|
|
53
|
+
"crm.dealSidebar.stage": "Stage",
|
|
54
|
+
"crm.dealSidebar.tags": "Tags",
|
|
55
|
+
"crm.dealSidebar.updated": "Updated",
|
|
56
|
+
"crm.dealSidebar.value": "Value",
|
|
57
|
+
"crm.dealSidebar.viewLeadProfile": "View Full Lead Profile",
|
|
58
|
+
"crm.leadDetail.assignedTo": "Assigned to",
|
|
59
|
+
"crm.leadDetail.backToList": "Back to list",
|
|
60
|
+
"crm.leadDetail.company": "Company",
|
|
61
|
+
"crm.leadDetail.contactInfo": "Contact Information",
|
|
62
|
+
"crm.leadDetail.createQuote": "Create Quote",
|
|
63
|
+
"crm.leadDetail.created": "Created",
|
|
64
|
+
"crm.leadDetail.dealStatus": "Deal status",
|
|
65
|
+
"crm.leadDetail.dealValue": "Deal value",
|
|
66
|
+
"crm.leadDetail.details": "Details",
|
|
67
|
+
"crm.leadDetail.email": "Email",
|
|
68
|
+
"crm.leadDetail.leadNotFound": "Lead not found",
|
|
69
|
+
"crm.leadDetail.leads": "Leads",
|
|
70
|
+
"crm.leadDetail.loading": "Loading...",
|
|
71
|
+
"crm.leadDetail.notFound": "Not found",
|
|
72
|
+
"crm.leadDetail.notes": "Notes",
|
|
73
|
+
"crm.leadDetail.phone": "Phone",
|
|
74
|
+
"crm.leadDetail.pipeline": "Pipeline",
|
|
75
|
+
"crm.leadDetail.probability": "Probability",
|
|
76
|
+
"crm.leadDetail.quotes": "Quotes",
|
|
77
|
+
"crm.leadDetail.source": "Source",
|
|
78
|
+
"crm.leadDetail.stage": "Stage",
|
|
79
|
+
"crm.leadDetail.tags": "Tags",
|
|
80
|
+
"crm.leadDetail.updated": "Updated",
|
|
81
|
+
"crm.leadDetail.value": "Value",
|
|
82
|
+
"crm.leadForm.cancel": "Cancel",
|
|
83
|
+
"crm.leadForm.company": "Company",
|
|
84
|
+
"crm.leadForm.companyPlaceholder": "Company name",
|
|
85
|
+
"crm.leadForm.email": "Email",
|
|
86
|
+
"crm.leadForm.emailPlaceholder": "email@example.com",
|
|
87
|
+
"crm.leadForm.name": "Name *",
|
|
88
|
+
"crm.leadForm.namePlaceholder": "Contact name",
|
|
89
|
+
"crm.leadForm.notes": "Notes",
|
|
90
|
+
"crm.leadForm.notesPlaceholder": "Additional notes...",
|
|
91
|
+
"crm.leadForm.phone": "Phone",
|
|
92
|
+
"crm.leadForm.phonePlaceholder": "+55 11 99999-9999",
|
|
93
|
+
"crm.leadForm.save": "Save",
|
|
94
|
+
"crm.leadForm.saving": "Saving...",
|
|
95
|
+
"crm.leadForm.subtitle": "Capture a new lead",
|
|
96
|
+
"crm.leadForm.title": "New Lead",
|
|
97
|
+
"crm.leads.captureFirst": "Capture your first lead",
|
|
98
|
+
"crm.leads.contactCol": "Contact",
|
|
99
|
+
"crm.leads.name": "Name",
|
|
100
|
+
"crm.leads.newLead": "New Lead",
|
|
101
|
+
"crm.leads.noLeads": "No leads yet",
|
|
102
|
+
"crm.leads.searchPlaceholder": "Search leads...",
|
|
103
|
+
"crm.leads.source": "Source",
|
|
104
|
+
"crm.leads.statusCol": "Status",
|
|
105
|
+
"crm.leads.title": "Leads",
|
|
106
|
+
"crm.page.logActivity": "Log Activity",
|
|
107
|
+
"crm.page.logActivityDesc": "Record a call, email, or note",
|
|
108
|
+
"crm.page.newDeal": "New Deal",
|
|
109
|
+
"crm.page.newDealDesc": "Create a deal from pipeline",
|
|
110
|
+
"crm.page.newLead": "New Lead",
|
|
111
|
+
"crm.page.newLeadDesc": "Capture a new lead",
|
|
112
|
+
"crm.page.newQuote": "New Quote",
|
|
113
|
+
"crm.page.newQuoteDesc": "Send a proposal",
|
|
114
|
+
"crm.page.settingsSubtitle": "Configure pipeline, lead management, and registries",
|
|
115
|
+
"crm.page.settingsTitle": "Sales & CRM Settings",
|
|
116
|
+
"crm.pipeline.dropHere": "Drop here",
|
|
117
|
+
"crm.pipeline.moveFailed": "Failed to move deal",
|
|
118
|
+
"crm.pipeline.movedTo": "Moved to {{stage}}",
|
|
119
|
+
"crm.pipeline.noDeals": "No deals",
|
|
120
|
+
"crm.pipeline.subtitle": "Drag deals between stages",
|
|
121
|
+
"crm.pipeline.title": "Pipeline",
|
|
122
|
+
"crm.quoteDetail.backToList": "Back to list",
|
|
123
|
+
"crm.quoteDetail.client": "Client",
|
|
124
|
+
"crm.quoteDetail.date": "Date",
|
|
125
|
+
"crm.quoteDetail.description": "Description",
|
|
126
|
+
"crm.quoteDetail.discount": "Discount",
|
|
127
|
+
"crm.quoteDetail.edit": "Edit",
|
|
128
|
+
"crm.quoteDetail.send": "Send",
|
|
129
|
+
"crm.quoteDetail.sending": "Sending...",
|
|
130
|
+
"crm.quoteDetail.sendPrint": "Print",
|
|
131
|
+
"crm.quoteDetail.sendEmail": "Send by E-mail",
|
|
132
|
+
"crm.quoteDetail.sendWhatsApp": "Send by WhatsApp",
|
|
133
|
+
"crm.quoteDetail.approve": "Approve",
|
|
134
|
+
"crm.quoteDetail.approving": "Approving...",
|
|
135
|
+
"crm.quoteDetail.reject": "Reject",
|
|
136
|
+
"crm.quoteDetail.rejecting": "Rejecting...",
|
|
137
|
+
"crm.quoteDetail.confirmReject": "Confirm Rejection",
|
|
138
|
+
"crm.quoteDetail.rejectDescription": "Provide a reason for rejecting this quote.",
|
|
139
|
+
"crm.quoteDetail.rejectReasonPlaceholder": "Reason for rejection...",
|
|
140
|
+
"crm.quoteDetail.invoiceCreated": "Invoice created from this quote",
|
|
141
|
+
"crm.quoteDetail.items": "Items",
|
|
142
|
+
"crm.quoteDetail.loading": "Loading...",
|
|
143
|
+
"crm.quoteDetail.notFound": "Quote not found",
|
|
144
|
+
"crm.quoteDetail.notes": "Notes",
|
|
145
|
+
"crm.quoteDetail.paymentConditions": "Payment Conditions",
|
|
146
|
+
"crm.quoteDetail.qty": "Qty",
|
|
147
|
+
"crm.quoteDetail.quoteNumber": "Quote {{number}}",
|
|
148
|
+
"crm.quoteDetail.rejectionReason": "Rejection reason",
|
|
149
|
+
"crm.quoteDetail.subtotal": "Subtotal",
|
|
150
|
+
"crm.quoteDetail.title": "Quotes",
|
|
151
|
+
"crm.quoteDetail.total": "Total",
|
|
152
|
+
"crm.quoteDetail.unitPrice": "Unit Price",
|
|
153
|
+
"crm.quoteDetail.validUntil": "Valid Until",
|
|
154
|
+
"crm.quoteDetail.viewInvoice": "View Invoice",
|
|
155
|
+
"crm.quoteForm.addFirstItem": "Add your first item",
|
|
156
|
+
"crm.quoteForm.addItem": "Add Item",
|
|
157
|
+
"crm.quoteForm.cancel": "Cancel",
|
|
158
|
+
"crm.quoteForm.client": "Client",
|
|
159
|
+
"crm.quoteForm.description": "Description",
|
|
160
|
+
"crm.quoteForm.discount": "Discount",
|
|
161
|
+
"crm.quoteForm.done": "Done",
|
|
162
|
+
"crm.quoteForm.editSubtitle": "Update this proposal",
|
|
163
|
+
"crm.quoteForm.editTitle": "Edit Quote",
|
|
164
|
+
"crm.quoteForm.itemCount": "{{count}} items",
|
|
165
|
+
"crm.quoteForm.itemDescriptionPlaceholder": "Item description",
|
|
166
|
+
"crm.quoteForm.loading": "Loading...",
|
|
167
|
+
"crm.quoteForm.newSubtitle": "Create a proposal for your client",
|
|
168
|
+
"crm.quoteForm.newTitle": "New Quote",
|
|
169
|
+
"crm.quoteForm.noDescription": "No description",
|
|
170
|
+
"crm.quoteForm.noItems": "No items added",
|
|
171
|
+
"crm.quoteForm.errNoItems": "Add at least one item before saving.",
|
|
172
|
+
"crm.quoteForm.notes": "Notes",
|
|
173
|
+
"crm.quoteForm.notesPlaceholder": "Internal observations...",
|
|
174
|
+
"crm.quoteForm.paymentConditions": "Payment Conditions",
|
|
175
|
+
"crm.quoteForm.paymentConditionsPlaceholder": "e.g. 50% upfront, 50% on delivery",
|
|
176
|
+
"crm.quoteForm.qty": "Qty",
|
|
177
|
+
"crm.quoteForm.quoteDate": "Quote Date",
|
|
178
|
+
"crm.quoteForm.quoteDetails": "Quote Details",
|
|
179
|
+
"crm.quoteForm.quoteItems": "Quote Items",
|
|
180
|
+
"crm.quoteForm.saveChanges": "Save Changes",
|
|
181
|
+
"crm.quoteForm.saveQuote": "Save Quote",
|
|
182
|
+
"crm.quoteForm.saving": "Saving...",
|
|
183
|
+
"crm.quoteForm.searchClient": "Search client...",
|
|
184
|
+
"crm.quoteForm.addAsLead": "Add as lead",
|
|
185
|
+
"crm.quoteForm.selectItemType": "Select item type:",
|
|
186
|
+
"crm.quoteForm.statusApproved": "Approved",
|
|
187
|
+
"crm.quoteForm.statusDraft": "Draft",
|
|
188
|
+
"crm.quoteForm.statusExpired": "Expired",
|
|
189
|
+
"crm.quoteForm.statusRejected": "Rejected",
|
|
190
|
+
"crm.quoteForm.statusSent": "Sent",
|
|
191
|
+
"crm.quoteForm.total": "Total",
|
|
192
|
+
"crm.quoteForm.unitPrice": "Unit Price",
|
|
193
|
+
"crm.quoteForm.validUntil": "Valid Until",
|
|
194
|
+
"crm.quotes.amount": "Amount",
|
|
195
|
+
"crm.quotes.contact": "Contact",
|
|
196
|
+
"crm.quotes.createFirst": "Create your first quote",
|
|
197
|
+
"crm.quotes.date": "Date",
|
|
198
|
+
"crm.quotes.newQuote": "New Quote",
|
|
199
|
+
"crm.quotes.noQuotes": "No quotes yet",
|
|
200
|
+
"crm.quotes.quotesCount": "{{count}} quotes",
|
|
201
|
+
"crm.quotes.status": "Status",
|
|
202
|
+
"crm.quotes.title": "Quotes",
|
|
203
|
+
"crm.quickActions.newLead": "New Lead",
|
|
204
|
+
"crm.quickActions.newLeadDesc": "Capture a new lead",
|
|
205
|
+
"crm.quickActions.newDeal": "New Deal",
|
|
206
|
+
"crm.quickActions.newDealDesc": "Create a deal from pipeline",
|
|
207
|
+
"crm.quickActions.newQuote": "New Quote",
|
|
208
|
+
"crm.quickActions.newQuoteDesc": "Send a proposal",
|
|
209
|
+
"crm.quickActions.logActivity": "Log Activity",
|
|
210
|
+
"crm.quickActions.logActivityDesc": "Record a call, email, or note",
|
|
211
|
+
"crm.settingsPage.title": "Sales & CRM Settings",
|
|
212
|
+
"crm.settingsPage.subtitle": "Configure pipeline, lead management, and registries",
|
|
213
|
+
"crm.settingsPage.pipeline": "Pipeline",
|
|
214
|
+
"crm.onboarding.welcome": "Welcome to Sales & CRM",
|
|
215
|
+
"crm.onboarding.description": "Track leads, manage your sales pipeline, and close more deals.",
|
|
216
|
+
"crm.onboarding.sources.title": "Lead Sources",
|
|
217
|
+
"crm.onboarding.sources.description": "Default sources (Instagram, WhatsApp, Google, etc.) are ready. Customize them in Settings.",
|
|
218
|
+
"crm.onboarding.pipeline.title": "Sales Pipeline",
|
|
219
|
+
"crm.onboarding.pipeline.description": "Your default pipeline with 7 stages is set up. Customize stages and probabilities anytime.",
|
|
220
|
+
"crm.onboarding.startSelling": "Start selling",
|
|
221
|
+
"crm.onboarding.getStarted": "Get Started",
|
|
222
|
+
"crm.onboarding.next": "Next",
|
|
223
|
+
"crm.onboarding.skip": "Skip setup",
|
|
224
|
+
"crm.settings.leadManagement": "Lead Management",
|
|
225
|
+
"crm.settings.leadManagementDesc": "How leads are captured and handled",
|
|
226
|
+
"crm.settings.autoAssign": "Auto-assign leads",
|
|
227
|
+
"crm.settings.autoAssignDesc": "Automatically assign new leads to available team members",
|
|
228
|
+
"crm.settings.requireSource": "Require lead source",
|
|
229
|
+
"crm.settings.requireSourceDesc": "Make source selection mandatory when capturing leads",
|
|
230
|
+
"crm.settings.leadScoring": "Lead scoring",
|
|
231
|
+
"crm.settings.leadScoringDesc": "Automatically score leads based on engagement signals",
|
|
232
|
+
"crm.settings.duplicateDetection": "Duplicate detection",
|
|
233
|
+
"crm.settings.duplicateDetectionDesc": "Warn when a lead with the same email or phone already exists",
|
|
234
|
+
"crm.settings.deals": "Deals",
|
|
235
|
+
"crm.settings.dealsDesc": "Deal pipeline behavior",
|
|
236
|
+
"crm.settings.autoCreateDeal": "Auto-create deal on conversion",
|
|
237
|
+
"crm.settings.autoCreateDealDesc": "Create a deal automatically when a lead is qualified",
|
|
238
|
+
"crm.settings.requireCloseDate": "Require expected close date",
|
|
239
|
+
"crm.settings.requireCloseDateDesc": "Make expected close date mandatory on deals",
|
|
240
|
+
"crm.settings.rottingDeals": "Rotting deals warning",
|
|
241
|
+
"crm.settings.rottingDealsDesc": "Highlight deals that haven't been updated in X days",
|
|
242
|
+
"crm.settings.weightedPipeline": "Weighted pipeline value",
|
|
243
|
+
"crm.settings.weightedPipelineDesc": "Calculate pipeline value using stage probability",
|
|
244
|
+
"crm.settings.quotes": "Quotes",
|
|
245
|
+
"crm.settings.quotesDesc": "Quote and proposal behavior",
|
|
246
|
+
"crm.settings.autoNumberQuotes": "Auto-number quotes",
|
|
247
|
+
"crm.settings.autoNumberQuotesDesc": "Automatically generate sequential quote numbers",
|
|
248
|
+
"crm.settings.defaultValidity": "Default validity (30 days)",
|
|
249
|
+
"crm.settings.defaultValidityDesc": "New quotes expire after 30 days by default",
|
|
250
|
+
"crm.settings.requireApproval": "Require approval",
|
|
251
|
+
"crm.settings.requireApprovalDesc": "Quotes need manager approval before sending",
|
|
252
|
+
"crm.settings.notifications": "Notifications",
|
|
253
|
+
"crm.settings.notificationsDesc": "Alerts and reminders",
|
|
254
|
+
"crm.settings.overdueAlerts": "Overdue activity alerts",
|
|
255
|
+
"crm.settings.overdueAlertsDesc": "Notify when activities pass their due date",
|
|
256
|
+
"crm.settings.stageChangeAlerts": "Deal stage change alerts",
|
|
257
|
+
"crm.settings.stageChangeAlertsDesc": "Notify when deals move to a new stage",
|
|
258
|
+
"crm.settings.newLeadNotif": "New lead notification",
|
|
259
|
+
"crm.settings.newLeadNotifDesc": "Alert team when a new lead is captured",
|
|
260
|
+
"crm.pipelineSettings.title": "Pipeline Stages",
|
|
261
|
+
"crm.pipelineSettings.description": "Define stages that deals move through. Drag to reorder.",
|
|
262
|
+
"crm.pipelineSettings.probability": "Probability",
|
|
263
|
+
"crm.pipelineSettings.winStage": "Win stage",
|
|
264
|
+
"crm.pipelineSettings.lossStage": "Loss stage",
|
|
265
|
+
"crm.pipelineSettings.customizationNote": "Pipeline stage customization (add, remove, reorder, edit colors and probabilities) will be available when connected to the database.",
|
|
266
|
+
"crm.title": "CRM",
|
|
267
|
+
"crm.deals.title": "Deals",
|
|
268
|
+
"crm.deals.create": "New Deal",
|
|
269
|
+
"crm.deals.value": "Value",
|
|
270
|
+
"crm.deals.stage": "Stage",
|
|
271
|
+
"crm.deals.probability": "Probability",
|
|
272
|
+
"crm.deals.expectedClose": "Expected Close",
|
|
273
|
+
"crm.deals.empty": "No deals yet",
|
|
274
|
+
"crm.leads.create": "New Lead",
|
|
275
|
+
"crm.leads.status": "Status",
|
|
276
|
+
"crm.leads.convertToDeal": "Convert to Deal",
|
|
277
|
+
"crm.contacts.title": "Contacts",
|
|
278
|
+
"crm.contacts.create": "New Contact",
|
|
279
|
+
"crm.quotes.create": "New Quote",
|
|
280
|
+
"crm.quotes.edit": "Edit Quote",
|
|
281
|
+
"crm.quotes.items": "Items",
|
|
282
|
+
"crm.quotes.addItem": "Add Item",
|
|
283
|
+
"crm.quotes.subtotal": "Subtotal",
|
|
284
|
+
"crm.quotes.discount": "Discount",
|
|
285
|
+
"crm.quotes.total": "Total",
|
|
286
|
+
"crm.quotes.save": "Save Quote",
|
|
287
|
+
"crm.quotes.saving": "Saving...",
|
|
288
|
+
"crm.quotes.send": "Send Quote",
|
|
289
|
+
"crm.quotes.loading": "Loading...",
|
|
290
|
+
"crm.settings.title": "CRM Settings",
|
|
291
|
+
"crm.settings.pipeline": "Pipeline Stages",
|
|
292
|
+
}
|