brewlog/tests/server
Jon Seager 0030f87eed
refactor(timeline): extract event creation into service layer
Introduce application services that encapsulate entity creation +
timeline event recording. Route handlers call service.create() instead
of repo.insert() + inline timeline construction.

- Add define_simple_service! macro for roaster/cafe/gear services
- Add custom services for roasts, bags, brews, cups (need enrichment
  or cross-entity lookups)
- Add to_timeline_event() methods to all 7 domain entity types
- Remove timeline SQL from 4 repository insert() methods
- Delete brew_timeline_event() helper from brews route handler
- Update backup test to use services (timeline events created naturally)
- Document service layer pattern in CLAUDE.md
2026-02-06 10:42:52 +00:00
..
auth_api.rs test(auth): update tests for passkey migration 2026-02-05 11:00:20 +00:00
backup.rs refactor(timeline): extract event creation into service layer 2026-02-06 10:42:52 +00:00
bags_api.rs fix: ensure bags are closed properly and closures are on the timeline 2025-11-27 14:42:38 +00:00
brews_api.rs feat(brews): add quick notes 2026-02-05 20:42:03 +00:00
cafes_api.rs refactor(cafes): remove notes field from Cafe entity 2026-02-03 21:02:37 +00:00
checkin_api.rs test: add coverage for homepage, check-in, scan, and AI extraction 2026-02-05 19:19:05 +00:00
cups_api.rs refactor(cups): remove rating field 2026-02-05 17:02:42 +00:00
datastar.rs refactor: consolidate entity pages into unified /data and /add views 2026-02-04 20:51:30 +00:00
extraction_api.rs test: add coverage for homepage, check-in, scan, and AI extraction 2026-02-05 19:19:05 +00:00
gear_api.rs refactor(gear): remove notes field from Gear entity 2026-02-02 16:16:54 +00:00
helpers.rs refactor(timeline): extract event creation into service layer 2026-02-06 10:42:52 +00:00
main.rs test: add coverage for homepage, check-in, scan, and AI extraction 2026-02-05 19:19:05 +00:00
nearby_api.rs feat(nearby): add city-based search via Foursquare near param 2026-02-03 20:36:59 +00:00
pages.rs test: add coverage for homepage, check-in, scan, and AI extraction 2026-02-05 19:19:05 +00:00
roasters_api.rs refactor(roasters): remove notes field from Roaster entity 2026-02-03 21:18:48 +00:00
roasts_api.rs feat!: use numeric, database-generated IDs throughout 2025-11-25 18:21:04 +00:00
scan_api.rs test: add coverage for homepage, check-in, scan, and AI extraction 2026-02-05 19:19:05 +00:00
timeline.rs refactor: consolidate entity pages into unified /data and /add views 2026-02-04 20:51:30 +00:00