Commit Graph

6 Commits

Author SHA1 Message Date
503a3ef94c [refactor] simplify app state to a single countdown service
- replace AppState.countdowns vector with countdown_service
- add CountdownService::new(id, label, duration) for configurable initialization
- add CountdownService::default() with default countdown values
- remove unused next_id field and note TODO for multi-countdown support
2026-02-26 12:32:52 +01:00
7817c9c907 feat(countdown): add app state and wire countdown service into Tauri
- add `app_state` module with `ClockAnchor` and `AppState`
  - initialize `AppState` with a default `CountdownService`
  - register app state in Tauri via `.manage(app_state)`
  - extend `CountdownSnapshotDto` epoch fields to `Option<u128>`
  - add countdown model helpers for start/target epoch-ms conversion
  - return optional epoch fields from `CountdownService::snapshot`
  - ignore generated `dist/` directory in `.gitignore`
2026-02-26 12:23:54 +01:00
8517e073ba implemented model, service and dto for countdown. TODO: calculate
start_epoch_ms and target_epoch_ms
2026-02-20 22:37:39 +01:00
42b15a5966 added Zed Project 2026-02-20 19:44:07 +01:00
236cab99ae init Tauri 2026-02-20 19:40:15 +01:00
735cf591a5 init 2026-02-20 19:39:40 +01:00