Speed up lead board load and polish lead detail/list UX.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-19 12:08:45 +03:30
co-authored by Cursor
parent dbb61ff870
commit e90f9f9538
8 changed files with 225 additions and 90 deletions
+3 -1
View File
@@ -181,7 +181,9 @@ export class LeadsImportService {
const job = await this.prisma.leadImportJob.findUnique({ where: { id } });
if (!job) return;
const stages = await this.stages.list(job.organizationId);
const stages = await this.stages.list(job.organizationId, {
withLeadCounts: false,
});
const defaultStageId = stages[0]?.id;
if (!defaultStageId) {
await this.prisma.leadImportJob.update({