brewlog/src/presentation/cli
Jon Seager 0e3847ade9
feat: sync timeline events with entity edits
Add background timeline rebuild task (mirroring stats cache pattern)
that refreshes denormalized timeline event snapshots when entities are
updated. Includes cascade logic so editing a roaster refreshes timeline
events for its roasts, bags, brews, and cups.

- Add update_by_entity/delete_by_entity/delete_all to TimelineEventRepository
- Add TimelineInvalidator with debounced background rebuild task
- Add invalidate() calls to all 7 entity update handlers
- Add delete_by_entity cleanup to define_delete_handler! macro
- Add gear_id filter to BrewFilter for cascade traversal
- Add `brewlog timeline rebuild` CLI command for full rebuild
- Add 5 integration tests for timeline sync behavior
2026-02-15 11:11:07 +00:00
..
backup.rs feat(backup): expose backup/restore via authenticated API endpoints 2026-02-04 19:38:49 +00:00
bags.rs feat: add optional created_at to entity creation and updates 2026-02-07 09:48:20 +00:00
brews.rs feat: add CLI update commands for brews and cups 2026-02-10 19:42:55 +00:00
cafes.rs feat: add optional created_at to entity creation and updates 2026-02-07 09:48:20 +00:00
cups.rs feat: add CLI update commands for brews and cups 2026-02-10 19:42:55 +00:00
gear.rs feat: add optional created_at to entity creation and updates 2026-02-07 09:48:20 +00:00
macros.rs chore(refactor): define macro for get/delete cli commands 2026-02-02 13:00:48 +00:00
mod.rs feat: sync timeline events with entity edits 2026-02-15 11:11:07 +00:00
roasters.rs feat: add optional created_at to entity creation and updates 2026-02-07 09:48:20 +00:00
roasts.rs feat: add optional created_at to entity creation and updates 2026-02-07 09:48:20 +00:00
timeline.rs feat: sync timeline events with entity edits 2026-02-15 11:11:07 +00:00
tokens.rs refactor: simplify NearbyCafeView iterator chain and remove unused _addr parameter 2026-02-13 16:20:23 +00:00