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
This commit is contained in:
Jon Seager 2026-02-04 16:01:03 +00:00
parent fa5386c671
commit 706a1fd131
No known key found for this signature in database
2 changed files with 3 additions and 6 deletions

View file

@ -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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",

View file

@ -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",
};