Repository navigation
feat(ScheduleFinderLive): use date picker - #3667
Open
thecristen wants to merge 15 commits into
Open
thecristen wants to merge 15 commits into
thecristen wants to merge 15 commits into
Conversation
This was only used in the recently-removed Schedule Finder modal
# Conflicts: # lib/dotcom_web/live/schedule_finder_live.ex
thecristen
force-pushed
the
cbj/departures-datepicker
branch
from
November 6, 2026 15:45
4ed3b22 to
8272b58
Compare
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Scope
Asana Ticket: Two services tagged as "(Now)"
Implementation
Note
🤖 In my initial research, I had Copilot rewrite the services picker dropdown with different logic, to analyze the active dates for every service, then split/recombine based on common groups of dates. The end result was pretty cool, and solved the double (Now) issue, but the dropdown was arguably even more confusing.
None of that's in this PR, but it did help us commit to trying out this datepicker!
Services.Service.all_valid_dates_for_service/1logic constantly, now we just do it once when parsing, and save it as part of the%Service{}struct.DotcomWeb.ScheduleController.LineControlleronly used services for the now-deleted Schedule Finder modal, so it should've been removed in chore: Remove old SF1.0 code #3654 ... well, now it's deleted hereDotcom.ServicePatterns.services_for_route/1and a bunch of helper functions around thatHow to test (with screenshots)
Deploying on dev-blue so we can play with it on a few different routes. Some fun examples:
/departures/?route_id=CR-Foxboro&stop_id=place-bbsta&direction_id=0A few outbound stops to Foxboro don't have service today, but will soon. Just like before, landing on that page will immediately show you the next scheduled trips. Fun fact there are only two games scheduled within the relevant service date range (not every weekend as the dropdown might suggest):Not all routes have services associated with holiday services. Some of the subways do, e.g. the Red Line: