Skip to content

feat(ServicePatterns): separate (no school) services - #3446

Merged
thecristen merged 1 commit into
mainfrom
cbj/school-trips
Aug 21, 2026
Merged

feat(ServicePatterns): separate (no school) services#3446
thecristen merged 1 commit into
mainfrom
cbj/school-trips

Conversation

@thecristen

Copy link
Copy Markdown
Collaborator

Scope

Asana Ticket: 🛜 🐞 Daily Schedules sometimes doesn't show school trips

Implementation

The current code merges together typical services to show a clean dropdown menu.

image

The typical services can encompass service across multiple route patterns, some of those which aren't typical. One example is 37-B-1, which powers our very occasional school trips on the 37 (typicality of 3). This also has not concept of which stops are actually being served or not - services relate to routes, and route patterns further describe how stops along the route are (or are not) served at a given time.

Anyway, our code was combining Monday - Thursday schedules (no school) into Monday - Thursday schedules but the underlying datepicker picks the next valid service date, which across the combined services is today (well, yesterday), which isn't actually served at our school-trip-only stops (yet!). Altogether creating a confusing experience.

Because of its behavior in selecting dates which don't have a school trip, it can't show said trip.
The quickest way to resolve this is to stop letting the "(no school)" services get merged into the otherwise identical school version of the service, and show them both separately to avoid ambiguity.

Screenshots

Before | After

image
Before After
image image
Can't see school Fridays! image

How to test

Try it on your favorite routes!

Note - unfortunately, there's still bugs with respect to showing the entire school trip! The aforementioned example doesn't show stops from Forest Hills to Avenue Louis Pasteur. This'll hopefully be resolved in a future PR.

image

@thecristen
thecristen requested a review from a team as a code owner August 21, 2026 15:39
@thecristen
thecristen requested a review from jlucytan August 21, 2026 15:39

@lvachon1 lvachon1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚌!

@thecristen
thecristen merged commit 835ea83 into main Aug 21, 2026
29 checks passed
@thecristen
thecristen deleted the cbj/school-trips branch August 21, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants