Skip to content

Commit

Permalink
chore: remove unused/broken BlueBikes widget
Browse files Browse the repository at this point in the history
This feature has been unused since the original Orange Line "surge" it
was developed for in mid-2022, and non-working since July 2023, when the
data fetching was commented out due to persistent crashes (see 9211202).

We should avoid leaving code committed that will never be executed
and/or features available in the admin UI that don't work. Should we
choose to prioritize this feature again, the old code lives on in the
history of the repo for reference.
  • Loading branch information
digitalcora committed Jan 7, 2025
1 parent 98d7c66 commit f661bb2
Show file tree
Hide file tree
Showing 24 changed files with 5 additions and 1,417 deletions.
2 changes: 0 additions & 2 deletions assets/css/pre_fare_v2.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@
@import "v2/simulation_common";
@import "v2/pre_fare/simulation";

@import "v2/blue_bikes";

@import "v2/pre_fare/disruption_diagram/disruption_diagram";

body {
Expand Down
335 changes: 0 additions & 335 deletions assets/css/v2/blue_bikes.scss

This file was deleted.

2 changes: 0 additions & 2 deletions assets/src/apps/v2/pre_fare.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ import MultiScreenPage from "Components/v2/multi_screen_page";
import SimulationScreenPage from "Components/v2/pre_fare/simulation_screen_page";
import SurgeBodyRight from "Components/v2/pre_fare/surge_body_right";
import ShuttleBusInfo from "Components/v2/shuttle_bus_info";
import BlueBikes from "Components/v2/blue_bikes";
import PreFareSingleScreenAlert from "Components/v2/pre_fare_single_screen_alert";

const TYPE_TO_COMPONENT = {
Expand Down Expand Up @@ -81,7 +80,6 @@ const TYPE_TO_COMPONENT = {
cr_departures: CRDepartures,
overnight_cr_departures: OvernightCRDepartures,
shuttle_bus_info: ShuttleBusInfo,
blue_bikes: BlueBikes,
};

const DISABLED_LAYOUT = {
Expand Down
8 changes: 0 additions & 8 deletions assets/src/components/admin/admin_tables.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -334,14 +334,6 @@ const PreFareV2ScreensTable = (): JSX.Element => {
disableFilters: true,
FormCell: FormTextarea,
},
{
Header: "BlueBikes",
accessor: buildAppParamAccessor("blue_bikes"),
mutator: buildAppParamMutator("blue_bikes"),
Cell: EditableTextarea,
disableFilters: true,
FormCell: FormTextarea,
},
{
Header: "Shuttle Bus Info",
accessor: buildAppParamAccessor("shuttle_bus_info"),
Expand Down
Loading

0 comments on commit f661bb2

Please sign in to comment.