brewlog/tests/server
Jon Seager 766376be12
fix(checkin): use services instead of repos to record timeline events
The check-in handler was calling cafe_repo.insert() and
cup_repo.insert() directly, bypassing the service layer that records
timeline events. Switch to cafe_service.create() and
cup_service.create() so cafes and cups created via check-in appear on
the timeline.

Add timeline tests for cups (existing cafe, new cafe) and brews to
prevent this regression.
2026-02-07 08:28:12 +00:00
..
auth_api.rs test(auth): update tests for passkey migration 2026-02-05 11:00:20 +00:00
backup.rs fix(backup): include brew quick_notes and cups in backup/restore 2026-02-06 18:26:28 +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(tests): add generic server helpers and CRUD test macros 2026-02-06 14:26:54 +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(tests): add generic server helpers and CRUD test macros 2026-02-06 14:26:54 +00:00
datastar.rs refactor(tests): consolidate datastar tests with macro 2026-02-06 14:27: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(tests): add generic server helpers and CRUD test macros 2026-02-06 14:26:54 +00:00
main.rs refactor(tests): add generic server helpers and CRUD test macros 2026-02-06 14:26:54 +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(tests): add generic server helpers and CRUD test macros 2026-02-06 14:26:54 +00:00
roasts_api.rs refactor(tests): add generic server helpers and CRUD test macros 2026-02-06 14:26:54 +00:00
scan_api.rs feat(scan): show cards for existing roasters/roasts during bag scan 2026-02-06 12:27:25 +00:00
test_macros.rs refactor(tests): add generic server helpers and CRUD test macros 2026-02-06 14:26:54 +00:00
timeline.rs fix(checkin): use services instead of repos to record timeline events 2026-02-07 08:28:12 +00:00