Repository navigation
feat: países configurables para el envío automático del Holidays Bot - #56
Merged
Merged
Conversation
…ays Bot Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- Tabla HolidaysBotAutoCountry (opt-in) + script de migración idempotente con lista inicial: Argentina, Brasil, Chile, Uruguay, Yemen. - El cron usa esa lista (sin mirar recursos) en vez de "países con recursos". - Modal "Envío automático" en /feriados (solo admin), separado del envío manual. - USA y Estados Unidos se tratan como el mismo país. - Si no se puede leer la lista, la falla queda registrada en "Último envío". Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resumen
HolidaysBotAutoCountry(opt-in: sin fila = no se manda)./feriados(solo admin) con su propio modal, separado del envío manual. El modal manual no cambia.USAyEstados Unidosse tratan como el mismo país (lista, selección y filtro), sin tocar datos.GET/PUT /api/holidays-bot/auto-countries(admin): valida nombres contra países conocidos, errores genéricos hacia la UI.Hay que correr una vez la migración contra Turso de producción (crea la tabla y la siembra con Argentina, Brasil, Chile, Uruguay y Yemen; idempotente y no pisa una lista ya editada):
Sin esa tabla el cron del día 1 falla (visible, sin enviar nada).
Verificación
tsc,next lint,next buildlimpios./feriados→ Envío automático y confirmar la lista inicial.scripts/migrate-feriados-permission.tsen producción (acceso de colaborador a/feriados).🤖 Generated with Claude Code