Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(Live.TripPlanner): show form submission while waiting for trips #2196

Merged
merged 3 commits into from
Oct 17, 2024

Conversation

thecristen
Copy link
Collaborator

I wasn't quite satisfied with the current experience of waiting for results. This change simplies the form code a bit, and lets us show the submitted form details immediately (black text), while showing a spinner until the results are retrieved (status of this is shown below the black text).

image

It can also show the error code.

image

The formatting is also adjusted to be closer to the desired output from the Figma mock, though I couldn't figure out how to format dates with suffixes (e.g. October 11th instead of October 11)..

@thecristen thecristen requested a review from a team as a code owner October 11, 2024 17:07
@thecristen thecristen requested review from anthonyshull and removed request for a team October 11, 2024 17:07
Comment on lines 14 to 15
import MbtaMetro.Components.Feedback
import MbtaMetro.Components.Spinner
Copy link
Contributor

Choose a reason for hiding this comment

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

Can combine these MbtaMetro.Components.{Feedback, Spinner}.

@thecristen thecristen merged commit 43dfbd7 into cbj/mode-selector-polish Oct 17, 2024
16 of 17 checks passed
@thecristen thecristen deleted the phases branch October 17, 2024 13:44
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