feat: ℹ️ en Uso; añadir encabezado 'Tus tareas' e itálica en vacíos

Co-authored-by: aider (openrouter/openai/gpt-5) <aider@aider.chat>
webui
brobert 2 weeks ago
parent a3cc9fd640
commit 04a3dd13f7

@ -472,7 +472,7 @@ export class CommandService {
if (items.length === 0) { if (items.length === 0) {
return [{ return [{
recipient: context.sender, recipient: context.sender,
message: `No hay pendientes en ${groupName}.` message: italic(`No hay pendientes en ${groupName}.`)
}]; }];
} }
@ -520,7 +520,7 @@ export class CommandService {
byGroup.set(key, arr); byGroup.set(key, arr);
} }
const sections: string[] = []; const sections: string[] = [bold('Tus tareas')];
for (const [groupId, arr] of byGroup.entries()) { for (const [groupId, arr] of byGroup.entries()) {
const groupName = const groupName =
(groupId && GroupSyncService.activeGroupsCache.get(groupId)) || (groupId && GroupSyncService.activeGroupsCache.get(groupId)) ||
@ -935,7 +935,7 @@ export class CommandService {
if (!m) { if (!m) {
return [{ return [{
recipient: context.sender, recipient: context.sender,
message: 'Uso: `/t configurar diario|l-v|semanal|off [HH:MM]`' message: ' Uso: `/t configurar diario|l-v|semanal|off [HH:MM]`'
}]; }];
} }
const hh = Math.max(0, Math.min(23, parseInt(m[1], 10))); const hh = Math.max(0, Math.min(23, parseInt(m[1], 10)));
@ -945,7 +945,7 @@ export class CommandService {
if (!freq) { if (!freq) {
return [{ return [{
recipient: context.sender, recipient: context.sender,
message: 'Uso: `/t configurar diario|l-v|semanal|off [HH:MM]`' message: ' Uso: `/t configurar diario|l-v|semanal|off [HH:MM]`'
}]; }];
} }
const ensured = ensureUserExists(context.sender, this.dbInstance); const ensured = ensureUserExists(context.sender, this.dbInstance);

Loading…
Cancel
Save