Skip to content

feat(ScheduleFinderLive): remove departures immediately on selecting service#3017

Merged
thecristen merged 2 commits intomainfrom
cbj/sf2.0/fast-service-select
Mar 16, 2026
Merged

feat(ScheduleFinderLive): remove departures immediately on selecting service#3017
thecristen merged 2 commits intomainfrom
cbj/sf2.0/fast-service-select

Conversation

@thecristen
Copy link
Collaborator

Scope

Asana Ticket: 📅🔎 Investigate why the loading state for Daily Schedule schedule-change takes so long to appear

Implementation

Selecting another set of schedules to display is not so slow any more. But I figured it could feel even faster if I activated the loading state before fetching the date for the newly selected service.

How to test

On any /departures page, pick another service! Let me know if it's slow!

@thecristen thecristen requested a review from a team as a code owner March 16, 2026 18:27
@thecristen thecristen requested a review from lvachon1 March 16, 2026 18:27
Copy link
Contributor

@lvachon1 lvachon1 left a comment

Choose a reason for hiding this comment

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

This works very well! Even when throttled to 3G I can only see the spinner for a few frames.

We might want to adjust the spinner a bit. At faster speeds the UI quickly flickers down and up as the it briefly appears.

Screen.Recording.2026-03-16.at.3.00.08.PM.mov

Anyway, just a trivial nit-pick, this is super fast!

@thecristen thecristen enabled auto-merge (squash) March 16, 2026 19:39
@thecristen thecristen merged commit b22c573 into main Mar 16, 2026
39 of 40 checks passed
@thecristen thecristen deleted the cbj/sf2.0/fast-service-select branch March 16, 2026 19:41
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