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
+7 -2
View File
@@ -70,8 +70,13 @@ export class LeadsController {
}
@Get('stages')
listStages(@CurrentUser() user: Actor) {
return this.stages.list(user.organizationId);
listStages(
@CurrentUser() user: Actor,
@Query('counts') counts?: string,
) {
return this.stages.list(user.organizationId, {
withLeadCounts: counts !== '0' && counts !== 'false',
});
}
@Post('stages')