From 5c36a3fbce7abeefae14e58dd4f7f98c7d3c5f50 Mon Sep 17 00:00:00 2001 From: Cristen Jones Date: Thu, 26 Dec 2024 17:18:27 -0500 Subject: [PATCH] fix(TripPlanner.ResultsSummary): adjust input summary to match design --- .../trip_planner/results_summary.ex | 21 +++---------------- 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/lib/dotcom_web/components/trip_planner/results_summary.ex b/lib/dotcom_web/components/trip_planner/results_summary.ex index 0eeacce7b8..ac90939179 100644 --- a/lib/dotcom_web/components/trip_planner/results_summary.ex +++ b/lib/dotcom_web/components/trip_planner/results_summary.ex @@ -3,8 +3,6 @@ defmodule DotcomWeb.Components.TripPlanner.ResultsSummary do use DotcomWeb, :component - alias Dotcom.TripPlan.InputForm - def results_summary(assigns) do ~H"""
No trips found. - """ - end - defp itinerary_group_feedback(assigns) do ~H""" - <.feedback kind={:success}> - Found {Enum.count(@itinerary_groups)} {Inflex.inflect( - "way", - Enum.count(@itinerary_groups) - )} to go. - + <.feedback :if={@itinerary_groups == []} kind={:warning}>No trips found. """ end - defp submission_summary(%{from: from, to: to, modes: modes}) do - modes_string = modes.changes |> InputForm.Modes.selected_modes() |> String.downcase() - - "Planning trips from #{from.changes.name} to #{to.changes.name} using #{modes_string}" + defp submission_summary(%{from: from, to: to}) do + "Trips from #{from.changes.name} to #{to.changes.name}" end defp time_summary(%{datetime: datetime, datetime_type: datetime_type}) do