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:
parent
fa5386c671
commit
706a1fd131
2 changed files with 3 additions and 6 deletions
|
|
@ -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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue