From 8f8005dca1253f69e302c02f51e5c15c6d51d17b Mon Sep 17 00:00:00 2001 From: borja Date: Thu, 23 Oct 2025 10:15:54 +0200 Subject: [PATCH] creo que he quitado que diga sin responsable cada vez para que solo muestre el icono y listo --- src/services/command.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/services/command.ts b/src/services/command.ts index 525e3b6..af2d60f 100644 --- a/src/services/command.ts +++ b/src/services/command.ts @@ -316,7 +316,7 @@ export class CommandService { const rendered = items.map((t) => { const isOverdue = t.due_date ? t.due_date < todayYMD : false; const datePart = t.due_date ? ` — ${isOverdue ? `${ICONS.warn} ` : ''}${ICONS.date} ${formatDDMM(t.due_date)}` : ''; - return `- ${codeId(t.id, t.display_code)} ${t.description || '(sin descripción)'}${datePart} — ${ICONS.unassigned} sin responsable`; + return `- ${codeId(t.id, t.display_code)} ${t.description || '(sin descripción)'}${datePart} — ${ICONS.unassigned}`; }); const total = TaskService.countGroupUnassigned(context.groupId); @@ -397,7 +397,7 @@ export class CommandService { const renderedUnassigned = unassigned.map((t) => { const isOverdue = t.due_date ? t.due_date < todayYMD : false; const datePart = t.due_date ? ` — ${isOverdue ? `${ICONS.warn} ` : ''}${ICONS.date} ${formatDDMM(t.due_date)}` : ''; - return `- ${codeId(t.id, t.display_code)} ${t.description || '(sin descripción)'}${datePart} — ${ICONS.unassigned} sin responsable`; + return `- ${codeId(t.id, t.display_code)} ${t.description || '(sin descripción)'}${datePart} — ${ICONS.unassigned}`; }); sections.push(...renderedUnassigned); @@ -426,7 +426,7 @@ export class CommandService { const renderedUnassigned = unassigned.map((t) => { const isOverdue = t.due_date ? t.due_date < todayYMD : false; const datePart = t.due_date ? ` — ${isOverdue ? `${ICONS.warn} ` : ''}${ICONS.date} ${formatDDMM(t.due_date)}` : ''; - return `- ${codeId(t.id, t.display_code)} ${t.description || '(sin descripción)'}${datePart} — ${ICONS.unassigned} sin responsable`; + return `- ${codeId(t.id, t.display_code)} ${t.description || '(sin descripción)'}${datePart} — ${ICONS.unassigned}`; }); sections.push(...renderedUnassigned); @@ -488,7 +488,7 @@ export class CommandService { ); const owner = (t.assignees?.length || 0) === 0 - ? `${ICONS.unassigned} sin responsable` + ? `${ICONS.unassigned}` : `${t.assignees!.length > 1 ? '👥' : '👤'} ${names.join(', ')}`; const isOverdue = t.due_date ? t.due_date < todayYMD : false; const datePart = t.due_date ? ` — ${isOverdue ? `${ICONS.warn} ` : ''}${ICONS.date} ${formatDDMM(t.due_date)}` : ''; @@ -539,7 +539,7 @@ export class CommandService { ); const owner = (t.assignees?.length || 0) === 0 - ? `${ICONS.unassigned} sin responsable` + ? `${ICONS.unassigned}` : `${t.assignees!.length > 1 ? '👥' : '👤'} ${names.join(', ')}`; const isOverdue = t.due_date ? t.due_date < todayYMD : false; const datePart = t.due_date ? ` — ${isOverdue ? `${ICONS.warn} ` : ''}${ICONS.date} ${formatDDMM(t.due_date)}` : ''; @@ -1253,7 +1253,7 @@ export class CommandService { // 1) Ack al creador con formato compacto const dueFmt = formatDDMM(dueDate); const ownerPart = assignmentUserIds.length === 0 - ? `${ICONS.unassigned} sin responsable${groupName ? ` (${groupName})` : ''}` + ? `${ICONS.unassigned} ${groupName ? ` (${groupName})` : ''}` : `${assignmentUserIds.length > 1 ? '👥' : '👤'} ${assignedDisplayNames.join(', ')}`; const ackLines = [ `${ICONS.create} ${codeId(taskId, createdTask?.display_code)} ${description || '(sin descripción)'}`,