Add optional activity experience on leads and people with form mapping and filters.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-19 21:04:43 +03:30
co-authored by Cursor
parent e90f9f9538
commit a455ab71ab
19 changed files with 430 additions and 20 deletions
+6
View File
@@ -129,6 +129,12 @@ export function isBirthDateAnswer(label: string): boolean {
return label.trim() === 'تاریخ تولد';
}
/** فیلد سابقه فعالیت روی خود لید/مشتری هست؛ جواب فرم نباید دوباره ردیف بسازد. */
export function isActivityExperienceAnswer(label: string): boolean {
const text = label.trim().replace(/ي/g, 'ی').replace(/ك/g, 'ک');
return /سابقه\s*فعالیت/.test(text);
}
function parseAnswerLine(line: string): LeadNoteRow | null {
const splitAt = line.indexOf(':');
if (splitAt <= 0 || splitAt > 200) return null;