usecrossterm::event::KeyEvent;usecrate::domain::Board;/// Everything that can move the app forward. `update` is the single place that
/// turns these into state changes and effects.
#[derive(Debug)]pubenumAction{
Key(KeyEvent),/// Periodic wake-up: settles the pipeline, expires the toast.
Tick,/// The board changed on disk (external write) and was reloaded. `damaged`
/// carries a footer message when the reloaded file could not be parsed.
Reload {
board: Board,
damaged:Option<String>,},/// The remote board from a finished pull, to merge into the current one. The
/// app merges and saves it, so the sync worker never writes `todos.json`.
Merge(Board),}/// Side effects `update` asks the runtime to perform. `update` never does I/O.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]pubenumEffect{
Save,
Quit,}