feat(automations): historico expandivel com detalhes das acoes
All checks were successful
All checks were successful
- Adiciona linhas expandiveis no historico de execucoes - Mostra detalhes completos de cada acao (destinatarios, assunto, etc.) - Salva mais informacoes no backend para acoes de e-mail - Remove log de progresso do dashboard de reports 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
c2802b1a4d
commit
70cba99424
3 changed files with 279 additions and 39 deletions
|
|
@ -1012,8 +1012,14 @@ async function applyActions(
|
|||
applied.push({
|
||||
type: "SEND_EMAIL",
|
||||
details: {
|
||||
recipients: to,
|
||||
toCount: to.length,
|
||||
subject,
|
||||
messagePreview: message.length > 100 ? `${message.slice(0, 100)}...` : message,
|
||||
ctaTarget: effectiveTarget,
|
||||
ctaLabel,
|
||||
ctaUrl,
|
||||
scheduledAt: Date.now(),
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -161,11 +161,8 @@ async function releaseDashboardLock(ctx: MutationCtx, lockId: Id<"analyticsLocks
|
|||
}
|
||||
}
|
||||
|
||||
function logDashboardProgress(processed: number, tenantId: string) {
|
||||
const rssMb = Math.round((process.memoryUsage().rss ?? 0) / (1024 * 1024));
|
||||
console.log(
|
||||
`[reports] dashboardAggregate tenant=${tenantId} processed=${processed} rssMB=${rssMb}`,
|
||||
);
|
||||
function logDashboardProgress(_processed: number, _tenantId: string) {
|
||||
// Log de progresso removido para reduzir ruido no console
|
||||
}
|
||||
|
||||
function mapToChronologicalSeries(map: Map<string, number>) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue