From 706a1fd131695eed65e6120fa050294b82b65670 Mon Sep 17 00:00:00 2001 From: Jon Seager Date: Wed, 4 Feb 2026 16:01:03 +0000 Subject: [PATCH] fix(timeline): use consistent "Added" labels and simplify cup title - Change "Brewed" to "Brew Added" and "Cup" to "Cup Added" for consistency - Simplify cup timeline title to just the roast name --- src/infrastructure/repositories/cups.rs | 5 +---- src/presentation/web/views/timeline.rs | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/infrastructure/repositories/cups.rs b/src/infrastructure/repositories/cups.rs index b7666d5..ca90500 100644 --- a/src/infrastructure/repositories/cups.rs +++ b/src/infrastructure/repositories/cups.rs @@ -162,10 +162,7 @@ impl CupRepository for SqlCupRepository { let cup_with_details = Self::to_domain_with_details(details_record); let details_json = Self::details_for_cup(&cup_with_details)?; - let title = format!( - "{} at {}", - cup_with_details.roast_name, cup_with_details.cafe_name - ); + let title = cup_with_details.roast_name.clone(); query( "INSERT INTO timeline_events (entity_type, entity_id, action, occurred_at, title, details_json, tasting_notes_json, slug, roaster_slug, brew_data_json) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", diff --git a/src/presentation/web/views/timeline.rs b/src/presentation/web/views/timeline.rs index 82f9820..eedd986 100644 --- a/src/presentation/web/views/timeline.rs +++ b/src/presentation/web/views/timeline.rs @@ -63,9 +63,9 @@ impl TimelineEventView { ("bag", "added") => "Bag Added", ("bag", "finished") => "Bag Finished", ("gear", "added") => "Gear Added", - ("brew", "brewed") => "Brewed", + ("brew", "brewed") => "Brew Added", ("cafe", "added") => "Cafe Added", - ("cup", "added") => "Cup", + ("cup", "added") => "Cup Added", _ => "Event", };