feat(alarms): mover alarmas activas + Resolver a cada room + fix i18n - #105
Merged
Merged
Conversation
- Las alarmas activas (con botón Resolver) se muestran ahora en el detalle del ambiente (/rooms/[id]), donde hay contexto. Se quitaron de /admin/alarms, que mantiene la config de reglas + historial de resueltas. - El botón Resolver aparece sólo a admin/gestor (la acción ya lo exige); staff ve las alarmas pero sin el botón. - i18n: los strings de AlarmEventRow (umbral, aviso WA, Inicio, Resuelta, Resolver, fecha) estaban hardcodeados en español y se mezclaban con la UI en inglés. Ahora van por next-intl (namespace `alarmEvent`) + fecha locale-aware, así siguen el idioma del usuario. - resolveAlarmEvent revalida también /rooms para refrescar al resolver. Nota: los nombres de rooms/sensores vienen de Tuya (datos), no se tocan. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HXHQeq3LpQiRp2zmvXghf2
wikichaves
enabled auto-merge (squash)
July 23, 2026 04:13
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Qué se hizo
Pedido: mover la sección de alarmas activas + botón Resolver a cada room, y arreglar el mix de inglés/español.
/rooms/[id]), con contexto. Se quitaron de/admin/alarms, que mantiene la config de reglas + el historial de resueltas.AlarmEventRow(umbral,aviso WA,Inicio,Resuelta,Resolver, la fecha) estaban hardcodeados en español y se mezclaban con la UI en inglés. Ahora van por next-intl (namespacealarmEvent) + fecha locale-aware, así siguen el idioma del usuario (es/en).resolveAlarmEventrevalida también/roomspara refrescar al resolver.Nota: los nombres de rooms/sensores ("Kids Room", "Cuarto", "Antón Temp"…) vienen de Tuya (datos), no se tocan — si querés unificarlos hay que renombrarlos en Tuya.
Validación
npm run lint✓ ·npx tsc --noEmit✓ ·npm run build✓🤖 Generated with Claude Code
Generated by Claude Code