feat(alarm): complete musical alarm flows
Build & Deploy Pluriwave / Análisis de código (push) Successful in 15s
Build & Deploy Pluriwave / Build APK + AAB release (push) Successful in 4m21s

This commit is contained in:
2026-05-22 00:39:50 +02:00
parent 7f1874f873
commit a3a648c633
25 changed files with 1458 additions and 167 deletions
@@ -0,0 +1,33 @@
# Apply Progress: alarm-clock-module
## 2026-05-22 batch 2
- Added explicit one-shot alarm date support (`fechaUnica`) to the alarm model, JSON persistence and recurrence calculator.
- Replaced demo alarm creation with a real editor sheet: name, date, time, schedule type, weekdays, snooze 3/5/10, volume, internal fallback sound, vacation behavior and current-station capture.
- Added automatic alarm schedule refresh in `EstadoAlarmas`, including persistence recalculation and Android resync.
- Changed the alarm screen from a prominent Android reliability panel to a compact diagnostic action, and added next-execution/skip feedback.
- Generated a premium alarm icon sheet with image_gen, copied the source sheet to `assets/generated/`, sliced transparent app assets to `assets/icons/alarmas/`, and registered the asset directory in `pubspec.yaml`.
## 2026-05-22 completion batch
- Added vacation ranges UI with create/delete flow and alarm cards that explain when vacation pauses affect the next execution.
- Added bundled internal fallback WAV sounds under `assets/audio/` and registered them in `pubspec.yaml`.
- Added `PantallaAlarmaSonando` with stop, snooze 3/5/10, radio attempt, fallback timeout and safe internal looping sound.
- Added native-to-Flutter alarm intent handling so Android alarm firing opens the ringing screen.
- Added silent native pre-notification 30 minutes before alarms, with action to omit the next execution through the app bridge.
- Added Android initial/new-intent delivery over the alarm MethodChannel.
- Verified with `flutter analyze --no-fatal-infos`: no issues.
## Validation notes
- `flutter analyze --no-fatal-infos` passes.
- No build was executed, per project instruction.
- `dart format` still times out in this local environment; source remains analyzer-clean.
## 2026-05-22 worker A vacaciones UI
- Added vacation range management in alarms UI: list current ranges, create range with start/end dates and delete existing ranges.
- Added `EstadoAlarmas.crearRangoVacaciones` and `EstadoAlarmas.eliminarRangoVacaciones` to support UI actions directly.
- Added `ServicioAlarmas.crearRangoVacaciones` and normalization/sorting in `guardarVacaciones` (swaps start/end if needed and stores ordered ranges).
- Added alarm-card messaging for alarms with `sonarEnVacaciones = false`, explicitly showing when vacations are currently pausing execution and when it will resume.
- Tried `flutter analyze --no-fatal-infos` twice in this environment; both attempts timed out (120s and 300s), so this batch could not be analyzer-verified locally.