Skip to content

Commit

Permalink
Merge branch 'master' into hp/crowding-frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahpurcell committed Aug 28, 2023
2 parents de688b7 + cd4f330 commit 7af9757
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions assets/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@
"moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */,
"baseUrl": "./src", /* Base directory to resolve non-absolute module names. */
"paths": {
"Components": ["/components"],
"Hooks": ["/hooks"],
"Util": ["/util"],
"Constants": ["/constants"]
"Components/*": ["components/*"],
"Hooks/*": ["hooks/*"],
"Util/*": ["util/*"],
"Constants/*": ["constants/*"]
}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
// "typeRoots": [], /* List of folders to include type definitions from. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ defmodule Screens.V2.CandidateGenerator.Widgets.TrainCrowding do
Prediction.vehicle_status(next_train_prediction) == :incoming_at and
next_train_prediction |> Prediction.stop_for_vehicle() |> fetch_parent_stop_id_fn.() ==
train_crowding.station_id and
next_train_prediction.vehicle.carriages != [] and
not any_alert_makes_this_a_terminal?(alerts, location_context) do
[
%CrowdingWidget{
Expand Down
2 changes: 2 additions & 0 deletions lib/screens/vehicles/vehicle.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ defmodule Screens.Vehicles.Vehicle do
current_status: nil,
trip_id: nil,
stop_id: nil,
parent_stop_id: nil,
occupancy_status: nil,
carriages: nil

Expand All @@ -26,6 +27,7 @@ defmodule Screens.Vehicles.Vehicle do
current_status: current_status,
trip_id: Screens.Trips.Trip.id() | nil,
stop_id: Screens.Stops.Stop.id() | nil,
parent_stop_id: Screens.Stops.Stop.id() | nil,
occupancy_status: occupancy_status,
carriages: list(occupancy_status) | nil
}
Expand Down

0 comments on commit 7af9757

Please sign in to comment.