rename: کاریز فروش → مسیر فروش, کاریز پروژه → تابلوی پروژه

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-06 20:51:50 +03:30
co-authored by Cursor
parent b3784818fc
commit b4ffef9b6f
29 changed files with 131 additions and 120 deletions
+10 -10
View File
@@ -335,7 +335,7 @@ async function main() {
pipeline = await prisma.pipeline.create({
data: {
organizationId: org.id,
name: 'کاریز فروش',
name: 'مسیر فروش',
isDefault: true,
stages: {
create: DEFAULT_STAGES.map((s, index) => ({
@@ -354,13 +354,13 @@ async function main() {
}
const servicesPipeline = await prisma.pipeline.findFirst({
where: { organizationId: org.id, name: 'کاریز خدمات' },
where: { organizationId: org.id, name: 'مسیر خدمات' },
});
if (!servicesPipeline) {
await prisma.pipeline.create({
data: {
organizationId: org.id,
name: 'کاریز خدمات',
name: 'مسیر خدمات',
isDefault: false,
stages: {
create: DEFAULT_STAGES.map((s, index) => ({
@@ -377,7 +377,7 @@ async function main() {
console.log('Services pipeline already seeded');
}
// کاریز منتظر — مطابق طراحی UI (۳ مرحله + معاملات نمونه)
// مسیر منتظر — مطابق طراحی UI (۳ مرحله + معاملات نمونه)
const WAITING_STAGES = [
{ name: 'پیگیری', isWon: false, isLost: false },
{ name: 'مذاکرات اولیه', isWon: false, isLost: false },
@@ -483,7 +483,7 @@ async function main() {
];
let waitingPipeline = await prisma.pipeline.findFirst({
where: { organizationId: org.id, name: 'کاریز منتظر' },
where: { organizationId: org.id, name: 'مسیر منتظر' },
include: { stages: { orderBy: { position: 'asc' } } },
});
@@ -491,7 +491,7 @@ async function main() {
waitingPipeline = await prisma.pipeline.create({
data: {
organizationId: org.id,
name: 'کاریز منتظر',
name: 'مسیر منتظر',
isDefault: false,
stages: {
create: WAITING_STAGES.map((s, index) => ({
@@ -504,7 +504,7 @@ async function main() {
},
include: { stages: { orderBy: { position: 'asc' } } },
});
console.log('Seeded waiting pipeline (کاریز منتظر)');
console.log('Seeded waiting pipeline (مسیر منتظر)');
} else {
console.log('Waiting pipeline already seeded');
}
@@ -534,7 +534,7 @@ async function main() {
expectedCloseAt: new Date(d.expectedCloseAt),
ownerId: owner?.id,
position: d.position,
tags: ['دمو-کاریز'],
tags: ['دمو-مسیر'],
};
}),
});
@@ -763,7 +763,7 @@ async function main() {
{
organizationId: org.id,
authorId: owner?.id,
body: 'در دمو نوا روی گزارش کاریز خیلی حساس بودند. نسخه چاپی PDF را آماده کنیم.',
body: 'در دمو نوا روی گزارش مسیر فروش خیلی حساس بودند. نسخه چاپی PDF را آماده کنیم.',
noteType: 'call_result',
color: 'sky',
tags: ['دمو'],
@@ -971,7 +971,7 @@ async function main() {
};
await ensure('deal_moved', {
title: 'جابه‌جایی معامله در کاریز',
title: 'جابه‌جایی معامله در مسیر فروش',
body: sampleDeal
? `«${sampleDeal.title}» به مرحله جدید منتقل شد`
: 'یک معامله جابه‌جا شد',