chore: update comments and documentation for clarity and consistency across various files

- Translated comments from Spanish to English in vite.config.ts, docker-compose.yml, attendance-risk.ts, analytics.ts, attendance.ts, attendees.ts, enums.ts, groups.ts, and onboarding.ts.
- Improved descriptions for better understanding of code functionality and purpose.
- Ensured uniformity in terminology and phrasing throughout the codebase.
This commit is contained in:
Jose Selesan
2026-10-01 16:06:54 -03:00
parent 01b35691df
commit 69275c37b4
100 changed files with 1121 additions and 1086 deletions

View File

@@ -5,14 +5,14 @@ type VerificationEmailData = { email: string; url: string; name?: string }
type PasswordResetEmailData = { email: string; url: string; name?: string }
type InvitationEmailData = { email: string; url: string; organizationName: string }
// Colores de marca (mismo sistema que la web: index.css de apps/web).
// Brand colors (same system as the web app: index.css in apps/web).
const BRAND_600 = '#2544ea'
const TEXT_STRONG = '#0f172a'
const TEXT_MUTED = '#475569'
const ON_ACCENT = '#ffffff'
const LINK_BG = BRAND_600
// Logotipo embebido como data URI para que los mails no dependan de hosting.
// Logo embedded as a data URI so the emails don't depend on hosting.
function loadLogoTypoDataUri(): string {
try {
const base64 = readFileSync(
@@ -66,7 +66,7 @@ class SMTPEmailProvider implements EmailProvider {
}
private async send(to: string, subject: string, html: string) {
// Sin SMTP configurado (dev) no rompe el flujo: solo registra un aviso
// With no SMTP configured (dev) the flow still doesn't break: it only logs a warning
if (!process.env.EMAIL_SERVER_HOST) {
console.warn(`[email] SMTP no configurado. Email no enviado a ${to}: "${subject}"`)
return
@@ -111,8 +111,8 @@ class SMTPEmailProvider implements EmailProvider {
}
}
// Futuro: proveedores transaccionales (Resend, SendGrid, Postmark).
// Añadir implementaciones y alternar con EMAIL_PROVIDER.
// Future: transactional providers (Resend, SendGrid, Postmark).
// Add implementations and switch between them with EMAIL_PROVIDER.
export function createEmailProvider(): EmailProvider {
return new SMTPEmailProvider()
}